youngmon/atlassian-qna huggingface dataset:
Set up Confluence webDav on Localhost
Asked by Matthias:

Hello everyone  
Currently i have to find out a way to automatically import textfiles with links to existing pages into Confluence. My way of approach is simple. I want a python file to copy the file in confluence's WebDav "directory".  
I've sucessfully set up a local instance of Confluence on my computer to test this. But i can't get webDav to work. My instance It runs on a Win7 (64 bit) Machine. Confluence settings are HTTP and Port 80 as it should be.

**Server.xml**

```
&lt;Server port="80" shutdown="SHUTDOWN" debug="0"&gt;&lt;Service name="Tomcat-Standalone"&gt;&lt;Connector port="8090" connectionTimeout="20000" redirectPort="8443"maxThreads="200" minSpareThreads="10"enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8" /&gt;&lt;Engine name="Standalone" defaultHost="localhost" debug="0"&gt;&lt;Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false"&gt;&lt;Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true"&gt;&lt;!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties --&gt;&lt;Manager pathname="" /&gt;&lt;/Context&gt;&lt;/Host&gt;&lt;/Engine&gt;...&lt;/Service&gt;&lt;/Server&gt;
```

<br />

If i'm not mistaken i should be able to acess webDav via windows "mount network drive" but with  
\\\\localhost\\webdav it won't work. The windows webfolder workarround won't work eather.

Im shure its a silly mistake, but i honestly can't find it. i would be grateful if someone could point it out for me.

Thanks  
Matthias


Answers:
author: Matthias
body: Thanks for the tipp David.

Unfortunely it didn't work. But in the end the messing arround with it showed me, that the problem was neather Confluence nor webDAV. Just windows webfolder and windows networkdrive couldn't handle such a path.

If someone encounters the same problem:

<https://confluence.atlassian.com/display/DOC/Configuring+a+WebDAV+client+for+Confluence#ConfiguringaWebDAVclientforConfluence-disablestrictpathchecking> --\> comment section

and

<https://ecosystem.atlassian.net/browse/WBDV-229>

may be helpfull


author: Davin Studer
body: When I connect to our remote server via webdav this is the UNC path that I use.

```
\\{server}\DavWWWRoot\plugins\servlet\confluence\default\
```

So, I would think that you should use ...

```
\\localhost\DavWWWRoot\plugins\servlet\confluence\default\
```


Tags: confluence-administration

localhost

webdav
Users on confluence not appearing on JIRA.
Asked by Charlie of Atlassian:

Users on confluence not appearing on JIRA. JIRA and confluence are set up on two different machines, each using its own in built databases.

We have succeeded in synchronising confluence to jira but we are having issues with synchronising the users.


Answers:
author: Mallmann
body: Hey there,

From your description I understand that you're using the HSQL database, can you confirm it? If so, are you only evaluating these applications or these installations are being used on production already? Remember that we do not support the use of HSQLDB on production, so if you're using it there I'd recommend you to set up them to use an external database.

Regarding the issue you've reported here, it's not clear where you're facing this sync issue since you've mentioned that Confluence sync's to JIRA successfully. Remember that Confluence retrieves users from JIRA not the other way round.

I hope it helps.

Eduardo

comments: author: Charlie of Atlassian
body: Hi Eduardo,I am using the HSQL database and I am using the evaluation versions of these applications.I have created my users on Confluence and have integrated Confluence with JIRA. I have created a user directory and have configured the Atlassian Crowd Server. The synchronisation was successful.But the users from Confluence are not appearing on JIRA. However, when users are added in JIRA, they are only visible on Confluence when the users sign in for the first time.Can't the users that I have added on Confluence be visible on JIRA?


Tags: jira
confluence page restriction
Asked by Neo Say Poh:

Hi,

We are using Confluence 5.5.7. How can I share a page with someone who do not have access to the Space this page is under? I do not wish to change the hierarchy of the space.

Thanks.


Answers:
author: TomC
body: A couple ideas of how to share the content of a page - using existing Confluence functionality - if you don't want to add a user to Space Permissions are (I) copy the page to a space they do have permissions for or (II) export the page to Word or PDF.

Do either of those work? There are no options I'm aware of to have a user see a page dynamically if they don't have permissions in the space. For example, the Include macro will not work for users without permissions in the space where the page is located.

<https://confluence.atlassian.com/plugins/servlet/mobile#content/view/139514>

Good luck!

comments: author: TomC
body: I should have mentioned that one can select Tools\>Copy to copy an entire page (including any associated attachments) to another place in your confluence instance.
Twi instances of Confluence
Asked by Hene:

Hi guys

I woul like to have two instances of confluence like:

intranet1.mycompany.com

intranet2.mycompany.com

what do I have to do to get this result?

Do I need two complete installations, is there a configuration way or anything else I can do?

Thanks Guys

Hene


Answers:
author: Nic Brough -Adaptavist-
body: Yes, you need two separate installations.


author: Hene
body: Thanks for the answers guys. Top!


author: William Zanchet [Atlassian]
body: Hi Hene,  

And to have such address, you would have to set-up an Apache mod_proxy as you can see below:  

<https://confluence.atlassian.com/display/DOC/Using+Apache+with+mod_proxy>  

Cheers,  
WZ


Tags: confluence-administration
Confluence Dashboard Categories tabs are available but spaces are not shown
Asked by Pavan Kumar:

Confluence Dashboard Categories tabs are available but spaces are not shown.

Please see below screenshot

image2015-4-22 10:46:10.png

Please help me to resolve this.

Thanks in Advance.

[](https://community.atlassian.com/t5/Confluence-questions/Confluence-Dashboard-Categories-tabs-are-available-but-spaces/qaq-p/26535?attachment-id=7616){#link_118892ba9168c9}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/4436/1/image2015-4-22%2010%3A46%3A10.png){#display_118892ba9168c9_0}


Answers:
author: Nic Brough -Adaptavist-
body: Do you have access to the spaces? It'll hide ones for which you don't have read access.

I've also seen this happen on older Confluence systems when someone has used unusual characters in the name of a space - it breaks the "get list of spaces" function that populates the dashboard and spaces dropdown, but everything else works fine. (And to fix it, you just rename the space to something that only uses alphanumerics and spaces). Could that have happened?

comments: author: Pavan Kumar
body: Hi Nic,we do have spaces and as an admin i have the access to all the spaces. earlier all the space category tabs are working fine. we did a re-indexing and it failed due to JVM memory issue ( we fixed it by increasing the JVM memory) after fixing JVM memory issue Re-indexing is completed, then we started got this issue.


Tags: confluence-administration
how do i delete images from a gallery?
Asked by Andrew Bonwick:


Answers:
author: Simon Kegel //SEIBERT/MEDIA
body: Hey Andrew,  
You have to delete the attachment itself to get the image out of the gallery.  
On the affected page -\> Tools -\> Attachments -\> Delete.   

Greets  
Simon


author: Scott Davies
body: One cannot seemingly delete an attachment unless they have the 'Remove Attachments' permission. What a dumb implementation.


author: Andrew Bonwick
body: Thanks Simon


author: Andrew Bonwick
body: ah, thank you. Couldn't see for looking


Tags: cloud

confluence-cloud
Deleting a personal space with a home page that throws an error.
Asked by Bob Doppel:

I added a user list macro onto my personal space home page and it is throwing an error (another ticket for another time! :smile: ). I want to delete my space and start all over but cannot see how to do that without going into the space first. I am a system administrator.

Thanks!

Bob


Answers:
author: SoumyaM
body: go to the Spaces---\> Space Directory--\> and click the Space details (exclamation mark on a circle). Click the " delete space" tab. here you go.


Tags: confluence-administration
Display a column in the SQL results as a link to an FTP site
Asked by Network_Services_Manager:

One of the columns I am returning from a SQL query is an link to a file on a FTP server. Is there a way I can make the results be a hyperlink to the file? I am using the Bob Swift SQL add-on


Answers:
author: Bob Swift (personal)
body: Easiest thing to do is use wiki notation and **output=wiki** for the field:

```
select '[link text|' || link_field || ']' ...
```

or

```
select '[' || text_field || '|' || link_field || ']' ...
```

comments: author: sharukh shaik
body: After generating link I required, how can I store it in a separate string

for ex:

my link to be redirected is

<https://wynk.in/music>

But I need it as

WYNK (clickable)

So when i click on WYNK, I should go to <https://wynk.in/music>

I this something possible in SQL? If Yes, can you write full query for me please.

Thanks,

Sharukh


author: Lars Lysenst?en
body: Hi!

I am using the described solution and it works fine but... the link text in my case is long and it dos not look so nice in my table.

++My query:++   
select top 1 '\[http://rem002/arsys/servlet/ViewFormServlet?form=HPD%3aHelp+Desk\&server=REM001.politiet.master.net\&eid=' + Entry_ID + '\]' as test from sql008.arsystem.dbo.HPD_Help_Desk

++My result:++   
[http://rem002/arsys/servlet/ViewFormServlet?form=HPD%3aHelp+Desk\&server=REM001.politiet.master.net\&eid=INC000000002460](http://rem002/arsys/servlet/ViewFormServlet?form=HPD%3aHelp+Desk&server=REM001.politiet.master.net&eid=INC000000002460)

++The result I would like to have:++   
[INC000000002460](http://rem002/arsys/servlet/ViewFormServlet?form=HPD%3aHelp+Desk&server=REM001.politiet.master.net&eid=INC000000002460)

Is there a way to make the link shorter?

comments: author: Bob Swift (personal)
body: Yes, put in link text indicated in the answer. So something like: '\[' \|\| Entry_ID \|\| '\|' \|\| ...


author: Lars Lysenst?en
body: Finaly I got time to look at this again....

Thanks a lot for the feedback, I made some adjustment and now it works as expected.

Is there a easy way to force the link to open in a new window? I have been googling around found that a link can open a new window using javascript in a html-macro but I don' t see how I can use this together width the SQL-macro.


author: Bob Swift (personal)
body: That seems a bit heavy handed, but you can use any macro for a column. Since you are already doing ouput=wiki, then the column would be like:

```
select '{html} ... {html}' ...
```


author: Lars Lysenst?en
body: Thanks a lot, this solved my problem :smile:


author: Gp Singh
body: Hi...can you please share what you did....I have the same issue using hyperlink link in an SQL


author: Lars Lysenst?en
body: Sorry for the late answer, I hope you have solved it out already...   
I did something like this:

select ' {html} \<a href="https://info/pages/viewpage.action?pageId=139136550" target=_blank\> HitMe \</a\> {html}' as 'TestUrl' from MyTable
Give customers access to one Confluence space
Asked by John McGehee:

I want to give customers access to one space, and that's all. So I do this:

1. Create group `customers`. Create customer `mario`. Add mario to `customers`. Add `mario` to no other group, not even `confluence-users`.
2. In Confluence *Global Permissions* , add group `customers` to *Groups* , tick *can use*, deny all other permissions.
3. In the *Space Permissions* for the space I want `mario` to see, grant *view* permission to group `customers`. Make no change to the other spaces.
4. Log in as `mario`. **I can still view every space**, which is unsatisfactory.

This seems like it should be a super simple, ordinary usage of Confluence permissions. What else do I need to do to deny a user access to spaces?

I am using Confluence 5.7 with JIRA 6.4 User Directory.


Answers:
author: John McGehee
body: When anonymous access is denied in *Global Permissions*, a user must log in to see anything at all.

Nonetheless, you can still grant anonymous permissions to a space in *Space Permissions* . This means that ***anyone who is logged in*** has those permissions.


author: Alex Yasurek
body: Are these other spaces that the Mario customer can view open to anonymous? If they are then everyone can see them. If not then it must be a permission issue. Maybe you accidentally added him to another group which has access to all these spaces.


Tags: confluence-administration

permission
how can i get a listing of groups in confluence?
Asked by Bob Doppel:

I want to generate a report that shows a listing of all groups in our Confluence instance. Anyone done anything like this?

Thanks!


Answers:
author: Davin Studer
body: You could do it with a user macro.

```
## Developed by: Davin Studer## Date created: 04/21/2015## @noparams<ul>#foreach($group in $userAccessor.getGroups())    <li>$group</li>#end</ul>
```

comments: author: Mallmann
body: Nice one, Davin! :)


author: Norman Walter
body: Just in case the special characters in Davin's script causes issues like they did for me - this slightly changed version worked flawlessly for me (Confluence version 6.4):

```
## Developed by: Davin Studer
## Date created: 04/21/2015
## @noparams
<ul>
#foreach($group in $userAccessor.getGroups())
<li>$group</li>
#end
</ul>
```

Thanks, [@Davin Studer](/t5/user/viewprofilepage/user-id/781467). Awesome little script.


author: Davin Studer
body: Yeah, unfortunately when these posts were migrated from the old Atlassian Answers site the code blocks were html encoded, which messes up the code. : (


author: Mallmann
body: Hello Bob,

You can get a list of all group names by running a query against your database. For instance:

```
select group_name from cwd_group;
```

It's also possible to retrieve the directory name that this group comes from and other kind of information you might need.

Let me know if that helps! :smile:

Eduardo


author: Panos
body: similarly from the java api

```
public class MyClass extends ConfluenceActionSupport{	private final UserAccessor useraccessor;	public MyClass(UserAccessor userAccessor){		this.useraccessor=userAccessor;	}	public String execute()	{		//do something with		useraccessor.getGroups()	}}
```


author: Bob Doppel
body: Thanks, Eduardo! I'll give it a shot.

Bob


Tags: confluence-administration
confluence trial vs prod or HSQLDB vs external DB
Asked by Chris Riley:

Hello,

We've been setting up a VM with Confluence 5.5.2. One of them had Confluence installed as a production install and using an external database (PostgreSQL). For the other VM we installed Confluence as a trial version using the internal database.

The prod/PostgreSQL install successfully configured LDAP and SMTP Server settings, while the trial/embedded database was not successful at configuring LDAP or SMTP Server.

I'm asking if it is true that one can not configure LDAP and SMTP Server using the trial/embedded database install? One must install the prod/external database version in order to successfully configure LDAP or SMTP Server?

Thanks,

Chris


Answers:
author: Chris Riley
body: Nic, thanks for the quick answer!

Chris


author: Nic Brough -Adaptavist-
body: You should be able to use LDAP and SMTP with the HSQL database - the components are abstracted from each other. (I've certainly had both of them running in test rigs, although I don't remember if I had both of them running at the same time)


Tags: confluence-administration
Received the following HTTP error code from the server:500 when creating an Issue on Confluence
Asked by Swarna Radha:


Answers:
author: rrudnicki
body: Hi Swarna,

Error 500 is pretty generic, so if you could paste a piece of your stack trace could help us to help you :smile:.

Well, I've found this critical bug on Confluence <https://jira.atlassian.com/browse/CONF-36771> related to JIRA issues causing code 500 and this another KB <https://confluence.atlassian.com/display/JIRAKB/Create+issue+fail+with+500+page+exception+in+the+log>.

Can you let us know if this work? If not, please add some logs here.

Regards,

Renato Rudnicki


author: petry
body: Just to be sure, are you creating an Issue in JIRA from Confluence?  
If so, [this troubleshooting guide](https://confluence.atlassian.com/display/KB/Application+Links+Troubleshooting+Guide) should help you to check what can be causing this in your Application Link.

Hope it helps! :smile:

Cheers,  
Andre


author: Roman Samorodov
body: Try to turn on the oauth authentication in both JIRA and Confluence.

In **JIRA** go to **Application Links** click **Edit -\> Outgoing Authentication -\> Oauth** and click **Enable**.

The same steps for **Incoming** **Authentication in JIRA.**

Also you should do the same in **Confluence**.


Tags: jira
Confluence integration
Asked by Pavel:

Dear colleagues,

We've started some PoC project to integrate Confluence with BMC Remedy software. More over I'm a new in concept of integration Confluence at all.

I've read materials from your resources and found that the best way to integrate is using SOAP API web service to create a new article in Confluence. The other part of integration is a most defference. This is a database integration. Out Confluence installation is based upon PostgreSQL. I've connected my Remedy database and Confluence Database by creation of a new view in MS SQL Management Studio. So during my development I need to find a practice table through confluence database wich can join such type of items (The name of article, The description of article, The Create_Date of article, the article_owner, The web-page of Article).

Well I'll be appreciate if you help me witm my questions.

1. How to create a new article in Confluence by SOAP web service ?
2. Need more technical information about database structure and a table wich include columns described above

Thanks,


Answers:
author: Nic Brough -Adaptavist-
body: The best way to do this is to use the REST API, not SOAP (as it is deprecated and will eventually be removed) and certainly never the database - you can **not** write to a Confluence database while the application is running, and it's a good idea not to read it either, as you need to understand the structure, and that changes with upgrades, whereas the APIs tend not to.

To get started with the REST API, have a look at <https://developer.atlassian.com/confdev/confluence-rest-api> - it will also let you do the reads that you probably want.


author: Pavel
body: Well I'm checking REST API calls and have some wrong outputs. Could you please find out what exactly wrong with my request ?

This is for GET opertaion:

http://IPMYSERVER/confluence/rest/api/content/?type=page\&title=??\&expand=space,body.view,version,container

I'm waitind to get detail desription of my article but get :

\<Response xmlns="[http://IPMYSERVER/rest/api/content](http://192.168.204.158/rest/api/content)"\>  
\<_links\>  
\<base\>https://MYSERVER/confluence\</base\>  
\<context\>/confluence\</context\>  
\<self\>http://IPMYSERVER/confluence/rest/api/content\</self\>  
\</_links\>  
\<limit\>20\</limit\>  
\<results/\>  
\<size\>0\</size\>  
\<start\>0\</start\>  
\</Response\>

I need detail list if my article. Am I wrong with my request ?

Could you please to get me some example how to create a new content by POST operation ?

Its better for me to use such kind of request with POST operation:

<http://example.com/rest/api/content?type=blogpost&spaceKey=TST&title=Bacon&postingDay=2014-02-13&expand=space,body.view,version,container>


author: Pavel
body: Nic, thanks for your reply. The problem is that BMC dont support REST API only SOAP.

But I'll ready to test REST also perhaps I can get some integration anyway.
Confluence Re-indexing failed with java.lang.OutOfMemoryError: Java heap space
Asked by Pavan Kumar:

After upgrading to Confluence version 5.5.7

Re-indexing is failing with below error.

**java.lang.OutOfMemoryError: Java heap space**   
**2015-04-18 04:41:37,766 ERROR \[Indexer: 4\] \[confluence.search.lucene.ReindexWorkBatch\] indexCollection Error indexing document**   
**-- referer: [http://xxxxxxxxxxxxxxx/admin/search-indexes.action](http://sfo-wik-03.hq.k.grp/admin/search-indexes.action) \| url: /admin/reindex.action \| userName: xxxxxxx \| action: reindex**   
**java.lang.OutOfMemoryError: GC overhead limit exceeded**

Please help me to resolve this.

Thanks in Advance.


Answers:
author: Mallmann
body: Hello Pavan,

Can you please let us know how much memory is allocated to Confluence? This configuration is set in the *\<confluence-install-directory\>/bin/* *setenv.sh* file, for example:
> -Xms1024m -Xmx1024m -XX:MaxPermSize=256m -XX:+UseG1GC

In case you are running Confluence on a Windows as a service you'll need to check the service settings.

Eduardo

comments: author: Pavan Kumar
body: I Have increased the JVM Memory, it worked for me.Thank you :)


author: Panos
body: try adding -XX:+UseConcMarkSweepGC to the JAVA_OPTS variable in the setenv.sh file.


Tags: confluence-administration
Confluence logs: "Web Metadata cannot be retrieved more than once in a request"
Asked by Joni Nousj?rvi:

I'm seeing the following warning a lot in my Confluence log files:

```
2015-04-21T10:54:18.511 WARN [ajp-bio-8009-exec-31] [com.atlassian.confluence.plugin.webresource.DefaultConfluenceWebResourceManager] getMetadata Web Metadata cannot be retrieved more than once in a request
 -- url: *removed* | userName: anonymous | referer: *removed*
```

Any ideas what could be causing this and how I could get rid of it?


Answers:
author: Hans-J?rgen Hartl
body: Did you get an answer on that somewhere else? Having the same problem...

comments: author: Hans-J?rgen Hartl
body: guess it has something to do with requiring resources and setting metadata multiply


author: Joni Nousj?rvi
body: @Hans-J?rgen Hartl: Nope, I don't have an answer yet. To be honest, I haven't really spent time investigating this since the problem doesn't seem to affect Confluence usage. Still, it's annoying to see logs flooded with these messages.


Tags: confluence-administration
How do I set a specific workflow to documents with a particular label?
Asked by Jane Ward:

We have a bunch of documents with a label, let's call the label "green". What we are trying to do is if a document has the "green" label then apply a review workflow to each document. We also use comala workflows, is this possible?


Answers:
author: Martin James
body: I would also like to know this :smile:


Tags: cloud
How to move or copy Links and Files and not lose file history?
Asked by Chris Tuttle:

I need to move content, links, and files with associated version history from one page to another page in confluence. I understand how to do the copy and paste to another page. What I do not understand is how to keep any associated file versions with the files that are moved over?

Thanks in advance for any help on this topic.


Answers:
author: Guilherme Nedel [Atlassian]
body: Hello Chris,

You can move the entire page to its new destination, and that will carry the [attachments and their versions](https://confluence.atlassian.com/display/CONF51/Attachment+Versions). Is there any particular reason to move solely the attachments and contents? In case you would like to do this in a different manner, that would involve tinkering with the DB or using an external component such as [Attachment Checkout](https://marketplace.atlassian.com/plugins/com.arsenale.plugins.lockpoint).

Also relevant: <https://jira.atlassian.com/browse/CONF-13943>