youngmon/atlassian-qna huggingface dataset:
SocketException will converting from Twiki to Confluence
Asked by Saravanan Subramanian:

I got the below exception when running the UWC commandline java class

I verified with my admin that the XML RPC is enabled , Borrowers URL for the Confluence Wiki is http://\<servername\>:\<port\>/display/\<spaceName\>, in the conf/confluenceSettings.properties i specify the url = http\\://\<servername\>\\:\<port\>, is this Correct ?

2011-08-09 19:08:10,885 ERROR \[main\] - java.net.SocketException: Unexpected end of file from server

at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:769)

at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)

at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:766)

at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)

at org.apache.xmlrpc.DefaultXmlRpcTransport.sendXmlRpc(DefaultXmlRpcTransport.java:87)

at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72)

at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194)

at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185)

at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178)

at biz.artemis.confluence.xmlrpcwrapper.RemoteWikiBroker.getLoginTokenThrowExceptions(RemoteWikiBroker.java:377)

at biz.artemis.confluence.xmlrpcwrapper.RemoteWikiBroker.checkConnectivity(RemoteWikiBroker.java:1263)

at com.atlassian.uwc.ui.listeners.TestSettingsListener.getConnectionFeedback(TestSettingsListener.java:183)

at com.atlassian.uwc.ui.ConverterEngine.checkConfluenceSettings(ConverterEngine.java:1827)

at com.atlassian.uwc.ui.ConverterEngine.sendPage(ConverterEngine.java:1851)

at com.atlassian.uwc.ui.ConverterEngine.sendPage(ConverterEngine.java:1621)

at com.atlassian.uwc.ui.ConverterEngine.writeHierarchy(ConverterEngine.java:1537)

at com.atlassian.uwc.ui.ConverterEngine.writeHierarchy(ConverterEngine.java:1485)

at com.atlassian.uwc.ui.ConverterEngine.convert(ConverterEngine.java:412)

at com.atlassian.uwc.ui.ConverterEngine.convert(ConverterEngine.java:210)

at com.atlassian.uwc.ui.UWCCommandLineInterface.convert(UWCCommandLineInterface.java:175)

at com.atlassian.uwc.ui.UWCCommandLineInterface.main(UWCCommandLineInterface.java:55)


Answers:
author: Laura Kolker
body: > in the conf/confluenceSettings.properties i specify the url = http\\://\<servername\>\\:\<port\>, is this Correct ?

That should work.

When you run the connection settings test, what error message do you get? (run_cmdline.sh -t conf/confluenceSettings.properties)


Tags: universal-wiki-converter
Problems with contributors-summary macro
Asked by Thomas Zobel:

Hi,

we have a strange problem with the contributors-summary macro. After adding the parameter 'scope=children' see the example below, we got the following error message: 'Error formatting macro: contributors-summary: java.lang.NullPointerException'.

```
{contributors-summary:spaces=xyz|groupby=pages|columns=edits,lastupdates|order=update|reverse=true|limit=10|page=XXX|scope=children}

```

It only happens for one page!! In all other pages the macro works correctly. The log files doesn't help. Do you have an idea?

Thanks in advance,

Thomas

```
 
```


Answers:
author: Joe Clark
body: Hi Thomas,

There should be an exception message logged in your atlassian-confluence.log file. Could you please see if you can post the corresponding exception message here?
Why do I get "Invalid anti-XSRF token provided" when trying to install a Confluence plug-in?
Asked by James Hurne:

We have developed a small, simple plugin for Confluence. However, when we try to install the plugin on Confluence 3.4.9, we are receiving the following error:
> Invalid anti-XSRF token provided. The valid token should be retrieved transparently, but you may want to perform a hard refresh in your browser and try again before creating a support issue.

Why are we getting this error? Is there something wrong in the plugin itself which could cause this error?


Answers:
author: Trupti Kanase
body: @James Hurne : Did you solve this issue? I am having the same problem.


author: Nimesh Biyagamage
body: Okay I think I found the solution to the problem, but this will only work if you have a local installation on your network.(considering the fact you have firewalls and proxy configured).

Instead of using the url starting from https:// you can use the local host and re-try, it works for me.

Let me know if this helps please.


author: Nimesh Biyagamage
body: Hi all,

I am trying to install a free plugin available for JIRA and unfortunately this is giving me an erroe which is as below and we are in need of a quick resolution please. This has been happening many times the hard refresh does not have any impact. Error is as below:

Invalid anti-XSRF token provided. The valid token should be retrieved transparently, but you may want to perform a hard refresh in your browser and try again before creating a support issue.

Please help as this is an urgent request.


author: F K
body: got this error also today, disabling mod_pagespeed in apache helped to solve the problem when using mod_proxy also...


author: Savo Balac
body: I also get that error. Why is it so hard to install a plugin?


author: Gajan UMAPATHY
body: I'm having the same problem.
tweak autowatch settings
Asked by Mark Nixon:

Hi Guys,

Im having drama's with the Autowatch feature in confluence. See here for a background:

<http://confluence.atlassian.com/display/DOC/Subscribing+to+Email+Notifications+of+Updates+to+Confluence+Content>

So individual users seem to be the only people who can turn autowatch on and off....

What I would like is to have users automatically subscribed to posts and pages they CREATE (which autowatch automatically does), but NOT subscribe to any pages that they simply edit.

Why? Because i've been having problems where users clean up some minor spelling and grammar (thanks to no spellcheck in confluence...!!) and become subscribed to updates automatically on that page. I know they can unsubscribe manually, or I can just make sure 'minor update' is selected, but this is hardly elegant.

Anyone have any ideas? If all else fails, is there a way to turn off autowatch alltogether by default?

Thanks

Mark


Answers:
author: Matt
body: Hi Mark - It's not currently possible to do this. It would however be an excellent feature request -- i.e. more granualr notificaqtion options for autowatch. Imagine checkboxes for the following actions for which Aitowatch should be enabled.

* Pages
  * Create
  * Edit
  * Comment
* Blogs
  * Create
  * Edit
  * Comment

I'd recommend creating a feature request on our public issue tracker at [http://jira.atlassian.com](http://jira.atlassian.com )


author: Sherif Mansour
body: There is a workaround to turn off autowatch globally, [it is described here](https://jira.atlassian.com/browse/CONF-22070).

comments: author: Mark Nixon
body: Hi Sherif,

Seems like a lot of people want this sorted! Would be great having a setup similar to what Matt has proposed. What are the chances of seeing this in Confluence 4.0?
Confluence Home Directory
Asked by David Soldan:

Hello,

I want to find the home Directory of my confluence, so i found the path in the admin-console : C:/data/confluence .

Im a bit confused now, because i installed confluence on ubuntu and cant find " C:/ ". Anyone knows where this directory is in ubuntu??

greetings


Answers:
author: Nic Brough -Adaptavist-
body: Gah, no, it doesn't exist.

Forget the admin console and read the system info page in Confluence - that will tell you what it's actually using.

comments: author: David Soldan
body: well i read the system info page... it says **Confluence-Home** c:/confluence/data

what system info page you mean??? i read it in Confluence Admin \> administration \> system information


author: Nic Brough -Adaptavist-
body: When you said "admin console", I ignored it because you could have meant the system info page, or any one of half a dozen other things, and it wasn't clear.

If system info is showing a Windows path and you're running on a Unix box, you've got a broken installation. How did you get it to this state? Importing data into an empty confluence? Creating one from scratch and pasting the wrong path into the home question?

Ideally, I'd ask you to look at the config file in the Confluence home directory next, but you can't because we've got no idea where it is.


author: David Soldan
body: Maybe it's because im running confluence on a vm which is on a server where severeal vm s are tested ... I dont know.

Well i installed confluence with the embedded HSQL Database and followed the instructions.


author: Nic Brough -Adaptavist-
body: Running it on a VM shouldn't do anything like that - the point of virtualisation is that the guest OS still looks like a physical machine and works the same way. It's not that.

What instructions did you follow, and if they're the official ones, why did you paste a windows path into a unix installation? It won't have defaulted or selected it for you
Does the Universal Wiki Coverter work on Win2K SP4?
Asked by Jeff Jeff:

As mentioned above - our TWiki install is on a Win2K server. I tried to run the UWC gui via the uwc.bat file, howvever I only saw the black DOS window appear and stay on screen. The UI never kicked off.

Any assistance is appreciated.


Answers:
author: Laura Kolker
body: Hrm... That's pretty odd. I would expect it to just behave on a Win2K server, provided you have java installed.


Tags: universal-wiki-converter
Filtering comments made within last 7 days: Reporting Plugin
Asked by Daniel Stavrou:

Been trying to use the date-filter macro in the Reporting plug in and can't seem to get a filter to get comments from only the last seven days to appear.

Any help on this issue is greatly appreciated.


Answers:
author: Daniel Stavrou
body: I would but just as I was typing a response I tried a simple minValue parameter and got it. Thank you anyway!

comments: author: Andrew Ardill
body: Dan, can you accept this answer as the solution to your issue? Also, if you are able to write up the solution with slightly more detail it will assist others who have the same issue.


author: Kevin Buchs
body: Could you share more about what you tried? What are the results you are seeing?

comments: author: Andrew Ardill
body: Kevin, this should really be a comment on the original question. You should be able to convert this answer to a question.


Tags: date

filter

report
Searching in Confluence
Asked by Ryan:

Hi,

I know i already sent this question to you but as of today i cannot locate it anywhere.

Anyway, my question is: is it possible to have confluence direct me to the exact location of my search?

example: i have a page (Aircraft) with several sections like Airbus, Stealth, and Tomacat. I used the search box in the upper right corner and typed in Stealth. Is it possible that i may be directed to the Steatlh section? or does confluence show the search results first. From my understanding, the search results are the pages related to the searched topic.

I hope i detailed them nicely. :)

Thanks in advance!


Answers:
author: Kevin Buchs
body: This is not usually possible from a search. You can create links to a specific {anchor} on a page. Two alternatives you might consider are:

1. Make an index page of links to the subjects. This could possibly, sort of, be done automatically via the reporting plug-in or it can be done manually.

2. Break each of the sections of the page example you gave into separate pages. Then use {children} to display the tree. Make the Commercial Aircvrafts be a child page and Airbus be a grandchild, and so forth. The master parent page can be a subject of the search.

Note, you can enhance this via the use of labels or other specific strings on the pages that contain the master indicies or parent view.

If you want more fine-tuned suggestions, share more about your scenario.


author: Colin Goudie
body: I don't think so. Usually your search will always find more than 1 page, so which page does it send you to?

comments: author: Ryan
body: Thank you for your reply.

yes. that is what i am pointing at. the search results points to the pages related to the topic or at least related to the search key word.

but i am asking if confluence can directly point me to the section i am searching for. (the section is only a part of the page not a page itself). in my example, i will be having the following table of contents:

I. Commercial Aircrafts

a. Airbus

II. Fighter Planes

a. Stealth Fighter

b. F16 Tomahawk

from my example above, i have all these topics in one page and i want to search and be directed to the stealth fighter section. is it possible?
Restrict content based on a blacklist of words
Asked by Jean-Paul:

I have a requirement to block / redact or at the very minimum provide the ability to report and alert administrators when certain terms are published within confluence pages. I appreciate that in general this such an approach is not best practice in terms of Wiki openness etc but I need a solution to support corporate governance policies.


Answers:
author: David at David Simpson Apps
body: Sounds like you need WTFilter:<http://codegeist.atlassian.com/entry/167988>


author: Nick Muldoon
body: G'day @Jean-Paul,

[Redaction for Confluence](https://marketplace.atlassian.com/plugins/com.arijea.plugins.redact) provides a more granular level of content visibility, enabling you to hide words or paragraphs **within** a page. Redacted content is not included in page exports or search results, ensuring that sensitive information stays private.

[redaction-for-confluence 1120x548px Marketplace.png](https://marketplace.atlassian.com/plugins/com.arijea.plugins.redact)

May be useful for your scenario.

If you want more details on the add-on contact me via [nick@arijea.com^![](https://jira.atlassian.com/images/icons/mail_small.gif)^](mailto:nick@arijea.com) or +1 415 568 7064.

Regards,  
Nicholas Muldoon  
[Arijea](http://arijea.com/)


author: Kevin Buchs
body: Using the reporting plug-in, you could create a table of violators:

------------------------

Code:

-----------------------

{report-table}

{content-reporter:space=@self}

{or-filter}

{text-filter:content:body\|include=dog,cat}

{text-filter:content:title\|include=dog,cat}

{or-filter}

{content-reporter}

{report-column:title=Title}{report-info:page:title\|link=true}{report-column}

{report-table}  
------------------------  
------------------------  
This only searches a single space (whichever space contains the page with this content. It can search all spaces by changed "@self" to "@all". It may be slow in refreshing, depending upon your volume. It may make more sense to do a database query.  
This example searches for the strings: "cat" and "dog". Replace that with your blacklist.  
I do not know if you can subscribe to the page and it will run automatically. It may be a manual page visit, 1/day or whatever you need.


author: Jim Birch
body: If you are able to hit the database with an sql query, or schedule a report, you could use a variant of this query. Pros: no plugin; cons: sql.
>
> ```
> -- Query to locate current pages containing a specified string-- Jim Birch 2011.01.28select  -- top 100 s.spacekey, c.TITLE, c.CREATOR, c.LASTMODIFIER, c.LASTMODDATE --, bc.body from  dbo.CONTENT cjoin  dbo.BODYCONTENT bcon c.CONTENTID = bc.CONTENTID-- note: spaceid is null on old page versions so join on-- space id selects only current pages.  Nice.join dbo.SPACES son s.SPACEID = c.SPACEIDwhere bc.BODY like '%sometext%' order by s.spacekey, c.title
>
> ```


Tags: addon-com.arijea.plugins.redact
Please help me to find the real location of one css file of Conflunce 3.5.9
Asked by jeff jia:

I want to modify one css file of Conflunce 3.5.9 which is as below:

s/zh/2166/1/5/_/download/superbatch/css/batch.css

Please help me out to find the real location of it on the CentOS 6.0 machine.

Very thanks.


Answers:
author: Penny Wyatt (On Leave to July 2021)
body: This file doesn't exist on the file system - it is created at runtime. It's a batched-up version of all the CSS resources required for a particular request.

comments: author: jeff jia
body: Thanks for your answer.

Now, I want to change the default font-size from 10pt to 9pt to make the page more clear.

how could I modify the content of the css since it is generated at runtime?

Penny could you help me again? Thanks


author: Penny Wyatt (On Leave to July 2021)
body: Rather than making changes to Confluence's files which will be lost next time it's upgraded, it would be safer to apply the custom CSS via the Space Admin section of the web UI.

Full instructions are here - <http://confluence.atlassian.com/display/DOC/Styling+Confluence+with+CSS>
{add-page} - Easy way to have this automatically insert the page link where this was pressed?
Asked by Nick Yarsulik:

I have an "add-page" link that opens up a page template I created. This creates the child page and attaches it to its parent correctly.

I am wondering if it is possible to have this link also replace itself (or add just below itself) the new link to the new child page right where this link was pressed.

Is this possible?

Thanks!

Nick


Answers:
author: Nick Yarsulik
body: I was able to get around this issue by using the "content by label" macro and then simply applying the targeted label within the "add-page" macro.


author: David Peterson
body: If the page will have a fixed name, you can use the {link-page} macro instead, and provide the name. That name can be built based on the parent page also if you like, using 'injection'. For example, if you have a parent page called 'Foo' and you want to add a child called 'Foo - Bar', you could do this:

```
{link-page:%page:title% - Bar|template=Bar Template|live=true}Bar{link-page}
```

When 'Foo - Bar' doesn't exist, it will be a 'create page' link, and when it does, it will link to the page instead.
How can I get a warning when I'm editing an attachment that someone else is already editing?
Asked by Walter Hanig:

When I "edit in Office" an attachment that someone else is already editing, I'd like some sort of warning that tells me that the file is open for editing and who opened it. Is this available in Confluence 3.4?


Answers:
author: Matt
body: Not out-of-the-box. Try the Arsenal Lockpoint plugin: <https://plugins.atlassian.com/plugin/details/36199>

Arsenale Lockpoint for Confluence gives your company an advanced, enterprise-grade solution for controlled checkout and checkin (locking) of Confluence attachments, allowing for exclusive editing of Microsoft Word, Excel, and Powerpoint documents as well as Gliffy diagrams and Balsamiq Mockups.


Tags: attachment
Odd error with the PopKong theme: Invocation of method 'isPersonal' threw exception NullPointer
Asked by Brad Beattie:

I'm investigating an error related to the PopKong theme.

localhost:80/pages/createpage-name.action?templateId=28114950\&parentPageString=Page+Title\&spaceKey=MYSPACE\&fromPageId=62850314\&live=true\&templateName=Case+note

produces this error:

\<\<\< Error occurred during template rendering: Invocation of method 'isPersonal' in class com.burlesontech.popkong.theme.VelocityThemeHelper threw exception java.lang.NullPointerException at pages/main.vmd\[line 97, column 48\]. Contact your administrator for assistance. \>\>\>

Said line refers to \<\<\<$!sitemeshPage.getProperty("page.sidebar")\>\>\> and the ThemeHelper.java seems to be choking on \<\<\<return spaceManager.getSpace(spaceKey).isPersonal();\>\>\>

Look familiar to anyone? I know the theme's been End-Of-Lifed, but I'm curious if anyone else has experienced this error.


Answers:
author: Rodrigo Girardi Adami
body: Hi Brad,

I've tried to find the root cause but I wasn't successful. have you tried to remove and install the plugin again? Also, are you running the latest version of that Plugin in Confluence?

Sorry for not being of much help here.

Regards,

Rodrigo
Reporting plugin question: Reporting on users in certain groups
Asked by Daniel Stavrou:

I am trying to pull up a list of users in a certain group within our Confluence instance. Problem is when I try to apply a filter on the user-report macro I retrieve no one from the users list. Down below is a the snippet I am using to get the user data, filter it, and get the user data I want to present.

{report-block:maxResults=10}

{user-reporter}  
{user-reporter}

{report-body}  
\*Report For User:\* {report-info:user:name}  
\*Full Name:\* {report-info:user:full name}  
\*Groups:\* {report-info:user:groups}  
\*Authored Pages Count:\* {report-info:user:authored pages count}  
----  
{report-body}

{report-empty}  
_No users listed_  
{report-empty}  
{report-block}

discovery_admin is a the group I want to pull user from but I am actually getting nothing out of it. Removing the filter generates a list of all users. There are users in this group for sure, but I my syntax may be incorrect for retrieving them.

Thanks!


Answers:
author: David Peterson
body: Hi Dan,

I'm not sure what filter you were trying to use, as that is probably where the problem lies. However, to get all users from 'discovery_admin', just add the 'group' parameter to your {user-reporter}. Eg:

```
{user-reporter:group=discovery_admin}
```

Hope that helps...

Regards,  
David Peterson  
CustomWare \| Sydney, Australia \| [www.customware.net](http://www.customware.net) \| david.peterson@customware.net  
Australia: +61 2 9900 5700 \| Malaysia: +60 173 283 768 \| US: +1 888 707 0088 (toll free)  
The rocket has launched! [www.trainingrocket.com\</div\<\>\>](http://www.trainingrocket.com%3C/div)

comments: author: Daniel Stavrou
body: Hi David,

I actually have tried that as well. The odd thing is that it produces no results. It actually does not for many of the groups listed that we have. It does work for confluence-administrators (as an example). I also tried using the {User-list} macro to see if it could list out members in different groups and it would not detect groups I would list (such as discovery_admin).

Is there a reason that the plugin may not be picking up on many of the groups we have created in our Confluence instance?

Thanks!


author: Daniel Stavrou
body: Just wanted to add on to that but the difference between some groups is that the User field for when the report successfully reported those in a group (confluence-administrators) was filled with their unique ID (12 digit number) but the other groups that are reporting nothing have members in them but the Name field has lastname/,firstname or a username (jsmith11 for example).

Would this impact the performace of the reporting plugin? Hopefully that all made sense.

Thanks again!


author: David Peterson
body: Hi Dan, not sure why the naming convention would be affecting it. A more likely problem is if you have a mix of different sources for the users, such as LDAP, Active Directory, Crowd, etc. There have been reports of odd behaviour in some of these curcumstances, but I've never been able to test them due to not haveing an appropriate authentication server to test agains...


Tags: app

report
Is it possible to deactivate comments?
Asked by nexnova:

Hi!

Is it possible to deactivate the comment-functions or override the responsible vm and vmd with an plugin?


Answers:
author: justindowning
body: In Permissions (Space or Global), you can make sure Add Comments and Remove Comments is not checked for the groups involved. You can turn it off for the confluence-users group (or Anonymous) if do not want anyone to comment.


author: David at David Simpson Apps
body: You might be interested in...

* This blog post -- [More flexible commenting in Atlassian's Confluence](http://davidsimpson.me/2011/01/23/more-flexible-commenting-in-atlassians-confluence/)
* The documentation on [Confluence Permissions Overview](http://confluence.atlassian.com/display/DOC/Permissions+Overview)

comments: author: Jim Birch
body: Nice comment control macros.


author: Thomas Vlerick
body: To disable the comment, you edit the permission scheme of the space.