youngmon/atlassian-qna huggingface dataset:
Anonymous users can still see "Create" Button
Asked by Jamie Walden:

We're using confluence for our public documentation. I've set the space permission for anonymous users just to "view." However, the "Create" button still appears when a person views the space and isn't logged in.


Answers:
author: Jamie Walden
body: We fixed this problem by deleting the Demo space that comes with confluence. May try that, Jessica.


author: Webadm
body: Hi,

i have the same Problem.

#### Space permissions: {#toc-hId-1281347186}

View Space Permissions - DPSG _ NaMi FAQ - DPSG -- Doku.png

#### Page restrictions: {#toc-hId--1270809775}

PageRestrictions.png

#### Global persmissions: {#toc-hId-472000560}

Global Permissions - DPSG -- Doku.png

Anonymous users still can create pages:

create.png

We user Confluence Version 5.8.10  
[](https://community.atlassian.com/t5/Confluence-questions/Anonymous-users-can-still-see-quot-Create-quot-Button/qaq-p/318234?attachment-id=581){#link_1194b031eb3ee1}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/53761/1/create.png){#display_1194b031eb3ee1_0}  
[](https://community.atlassian.com/t5/Confluence-questions/Anonymous-users-can-still-see-quot-Create-quot-Button/qaq-p/318234?attachment-id=582){#link_1194b031eb3ee1_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/53761/2/Global%20Permissions%20-%20DPSG%20%E2%80%93%20Doku.png){#display_1194b031eb3ee1_2}  
[](https://community.atlassian.com/t5/Confluence-questions/Anonymous-users-can-still-see-quot-Create-quot-Button/qaq-p/318234?attachment-id=583){#link_1194b031eb3ee1_1}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/53761/3/PageRestrictions.png){#display_1194b031eb3ee1_4}  
[](https://community.atlassian.com/t5/Confluence-questions/Anonymous-users-can-still-see-quot-Create-quot-Button/qaq-p/318234?attachment-id=584){#link_1194b031eb3ee1_2}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/53761/4/View%20Space%20Permissions%20-%20DPSG%20_%20NaMi%20FAQ%20-%20DPSG%20%E2%80%93%20Doku.png){#display_1194b031eb3ee1_6}


author: rambabu patina
body: Hi Witt,

May be it is the problem with the page restrictions. Please see weather you given the page permission on your page, follow this steps to check:

*Go to page --\> Clisk on "Tools" --\> And select "Restrictions"*

Here you can see weather they have view or edit permissions.

Hope this helps,

Patina


author: Jessica Witt
body: I am having the same problem. I verified that the anonymous user is not part of the user groups that I have given create spaces permission (confluence administrators and jira administrators), yet anonymous users still have the ability to create pages.


author: Jamie Walden
body: I only can uncheck that for the user groups we have created. How do i do that for anonymous visitors? Thanks for your help.


author: RambanamP
body: you need to check Create Space(s) permission on global permission,

should't grant permission to anonymous users, check this

<https://confluence.atlassian.com/display/DOC/Global+Permissions+Overview>
Confluence Upgrade
Asked by S?bastien TOURNAY:

Hi,

We need to upgrade confluence 3.4.8 to 5.3

Can we do this upgrade ? or we must to upgrade to an other version before 5.3 ?


Answers:
author: Nic Brough -Adaptavist-
body: Just to throw a spanner in the works, upgrading from 3.4 to 4.x is an utter nightmare and I wouldn't try it. Even 3.4 to 4.0 is a pain.

3.4 to 3.5 is very simple though, and 3.5 to 4.anything is also quite easy. I've even done 3.5 to 5.0 on a small simple installation without any significant hiccups (I'd still recommend going via 4 though)

But seriously, go via 3.5.17. I'd test 3.4 to 4.something, but if you have even a hint of a problem, plan for 3.5 first.


author: Matthew J. Horn
body: According to Confluence's docs, don't skip a major version when upgrading. Go from 3.x to 4.x. Then go from 4.x to 5.x More info here:

<https://confluence.atlassian.com/display/DOC/Upgrading+Confluence>


author: RambanamP
body: if you want to move from Confluence 3.x to Confluence 5.x, you should first upgrade from 3.x to 4.x, then from 4.x to 5.x. Note that there is no need for incremental upgrading when moving from one minor or point release to another within the same series. For example, you can move from Confluence 4.0.x directly to Confluence 4.3.x.

check this document for more information

<https://confluence.atlassian.com/display/DOC/Upgrading+Confluence>
AJS.$ equivalent for the ".each" function
Asked by CharlesH:

I've been updating some of my older user macros which called jQuery directly AJS.$ as recommended here: <https://confluence.atlassian.com/display/CONFKB/How+to+Use+JavaScript+in+Confluence>

Some of my code uses the .each function of jQuery.

If I replace "jQuery.each() {...}" with "AJS.$.each() {...}" then a Velocity Parser Exception error is thrown and the macro doesn't work.

If I try "AJS.each() {...}" then there's no sign of an error, but the macro doesn't work.

I've checked this forum and the documentation (<https://developer.atlassian.com/display/AUI/AJS+helper+functions>) but found no examples of how the .each function can be used from AJS.$.

Anyone come across this before and found a solution?

Thanks,

Charles


Answers:
author: RambanamP
body: check this

[https://answers.atlassian.com/questions/21273/how-can-i-populate-a-multi-select-custom-field-with-values-from-an-external-source](/questions/21273/how-can-i-populate-a-multi-select-custom-field-with-values-from-an-external-source)

another example

<https://bitbucket.org/resah/confluence-macro-tutorial/src/208497acc40f0ddc16e9ae4f57b004e8db180588/src/main/resources/js/editor-box.js?at=default>

comments: author: CharlesH
body: Those examples both use AJS.$.each which I've tried, resulting in an error.

I'm running Confluence 4.2.1, so perhaps the AJS library offers support for .each in more recent versions?

I notice other users have been having similar trouble. In this case with the .ajax method - [https://answers.atlassian.com/questions/131487/ajax-calls-breaking-confluence](/questions/131487/ajax-calls-breaking-confluence)

Neither .ajax nor .each work for me. I get a similar error to the one posted in that topic.


author: RambanamP
body: can you share the error message ?


author: CharlesH
body: The error message recorded in the Confluence log file is as follows:

```
Caused by: org.apache.velocity.exception.ParseErrorException: Encountered "," at getRenderedContent[line 86, column 30]Was expecting one of:    <EOF>     "(" ...    <RPAREN> ...    <ESCAPE_DIRECTIVE> ...    <SET_DIRECTIVE> ...    "##" ...    "\\\\" ...    "\\" ...    <TEXT> ...    "*#" ...    "*#" ...    <STRING_LITERAL> ...    <IF_DIRECTIVE> ...    <STOP_DIRECTIVE> ...    <INTEGER_LITERAL> ...    <FLOATING_POINT_LITERAL> ...    <WORD> ...    <BRACKETED_WORD> ...    <IDENTIFIER> ...    <DOT> ...    "{" ...    "}" ...

The line number & position given relates to this line in the user macro:

Old version - works fine:

86              jQuery.each(rows, function(index, row) {
87                row.sortKey = sortKey(AJS.$(row).children('td').eq(column));
88              });


New version - errors:

86              AJS.$.each(rows, function(index, row) {
87                row.sortKey = sortKey(AJS.$(row).children('td').eq(column));
88              });
```


Tags: user-macro
Adding a new space in Confluence
Asked by Bhakti Satalkar:

I want to know, how does one add a new space in Confluence?


Answers:
author: Nic Brough -Adaptavist-
body: With an admin account, click create space.


author: Steve Goldberg
body: In your browser go to http://\[yourconfluencedomain\]/spaces/createspace-start.action


author: Bhakti Satalkar
body: Hey Steve,

I am currently using the evaluation version. Can you please guide me, how to go about in the evaluation version of Confluence?

comments: author: Nic Brough -Adaptavist-
body: Use "create space". I think you need to have a read of <https://confluence.atlassian.com/display/DOC/Getting+Started+as+Confluence+Administrator>


author: Steve Goldberg
body: Well your instance must have an IP address or domain, even if it's just "localhost:8090". If it is that, just go to <http://localhost:8090/spaces/createspace-start.action>


author: Steve Goldberg
body: In your browser
Confluence not starting
Asked by Vilhj?lmur Hallgr?msson:

Hello

I'm suddenly not able to connect to Confluence. In Google Chrome I'm getting "Oops! Google Chrome could not connect to xxxx:8090" Tried restarting the instance and the machine but the problem remains. I have searched Google and the forums but still unsuccessful. I have attached the (atlassian-confluence.log)

Can anyone help me out?


Answers:
author: HosseinA
body: You maye try the link below which can help you out.

<http://www.ghacks.net/2010/06/26/fix-oops-google-chrome-could-not-connect-to-errors/>


author: Christian Czaia _Decadis AG_
body: Hey, I can't help you out, unfortunately...but, you might want to kind of strip your log...Otherwise all your data (SEN, Server ID...)can be used by everyone...

Cheers

Christian


Tags: confluence-administration
Confluence integration with SharePoint
Asked by Katarina Rvovic:

Hi,

I'm researching for academic purposes about Confluence and SharePoint, and I would like to test them together. Is it possible to download trial version of Confluence with SharePoint connector? Will it work with online version of SharePoint(Open Office 365)?

If you could provide me these information.

Thank you very much.


Answers:
author: BillA
body: You can certainly use the free trial but it doesn't work with online SharePoint. You'd need to install SharePoint and Confluence on your own servers. See here for the SharePoint Connector installation guide <https://confluence.atlassian.com/display/SPCON/SharePoint+Connector+Installation+and+Upgrade+Guide>


author: Mick Davidson
body: Katrina,

Have a look at this page from Atlassian's main website: <https://www.atlassian.com/company/contact>

Good luck with your research.
Mail servers configuration
Asked by Alex Rogov:

Dear Support Team,

I need help in mail configuration.

In my configuration I put:

From address ${email}

From Name ${fullname}

and server configuration.

Security settings : User email visibility: public

Tried to send test email.

Got message "Your test message has been sent successfully.

The recepient got message - Subject was correct. The body also correct.

But in email header FROM - Instead email address was: ${email}

Please advice.

Pictures attached.![](../../upfiles/Mail_Configuration1_1.JPG)![](../../upfiles/Mail_Configuration2.JPG)![](../../upfiles/Mail_Configuration3.JPG)

Best Regards,

Alex


Answers:
author: Tiago Comasseto
body: Hi Alex,

You can only specify an email address for the *From address* field (e.g. [jira@example-company.com](mailto:jira@example-company.com)). JIRA will use this value to construct the full 'from' header based on the current user (`"Joe Bloggs (JIRA) <`[jira@example-company.com](mailto:jira@example-company.com)`>"`).

To change the 'from' header, go to **Administration \> System \> General Configuration** and (under **Settings** ), edit the **Email from**field.

Cheers

comments: author: Alex Rogov
body: Hello,

Thank You for responce but I can not find **Email from**field.

I use Confluence version 5.3

I have attached screen with my **General Configuration**

**Please help.**

<br />

Best Regards,

Alex
Unable to delete confluence users
Asked by James Height:

I have had some people leave and need to delete them as confluence users to add new users in but i am unable to as they have edited content. How do i get around this?


Answers:
author: Theinvisibleman
body: Just to add on, you can also deactivate the users directly using the steps [here](https://confluence.atlassian.com/display/DOC/Deleting+or+Deactivating+Users).


author: James Height
body: Thanks!


author: Nic Brough -Adaptavist-
body: It's easier to simply shut their accounts down. Remove them from all the groups and they won't be able to log in, and, more to the point, they won't count towards your licence cap.


Tags: delete
Who is watching my blog?
Asked by Prasad Subraveti:

Who is watching my blog? Any way to find out who the blog watchers are in my confluence instance?.

I want to know who are following my blog.


Answers:
author: Nick Muldoon
body: Hi Prasad,

At Twitter we needed this feature too. We needed to ensure every member of our product, design and engineering organisation (\>1,500 people) were notified of new blog posts in the Engineering space. The Engineering Blog enabled VP's to communicate one-to-many and teams to share details of the technology and features they were working on.

It didn't make sense to ask every new employee to subscribe to the blog in that space. [Better Blogs for Confluence](https://marketplace.atlassian.com/plugins/com.arijea.plugins.betterblogs) is a solution that can keep everyone informed, and do so with ease.

Regards,  
Nicholas Muldoon (ex-Twitter, now [Easy Agile](https://easyagile.com/))


author: Prasad Subraveti
body: @George: It still does not solve the problem of who is watching my space blog. It looks like i need an issue and I created it in JIRA - <https://jira.atlassian.com/browse/CONF-31125>

comments: author: George Dinkov _Botron_
body: I'm not sure what exactly is the problem? The Manage Watchers dialog shows the watchers of the whole space on the right under "Watching this space" (as shown on the screenshot in the link above).


author: John Turner
body: only available to admins


author: George Dinkov _Botron_
body: Hi,

I think this should help - <https://confluence.atlassian.com/display/DOC/Managing+Watchers>

Regards,

George

comments: author: George Dinkov _Botron_
body: I think I see what the problem is now - you're trying to see the watcher of all pages in the space recuresively?

If that's the case, I don't think there is a feature for this currently.


Tags: addon-com.arijea.plugins.betterblogs
Problems with passing $body to a macro in a user macro
Asked by Jonathan Simonoff:

I have a user macro meant to wrap the metadata macro, and am trying to pass $body to the macro. It basically works, except that no matter whether I choose rendered or unrendered, I get visible (evidently escaped) HTML in the output, and the actual body (which is a short bit of plain text) is surrounded by visible HTML p and span tags, so it looks like this:

\<p\>\<span\>This part should be visible, but those tags either shouldn't be there or should be rendered as HTML\</span\>\</p\>

The macro code I'm using is below. (I've tried various permutations, leaving out the plain-text-body or the CDATA tags, and all of them gave me no output.)

```
## @param term:title=Term|type=string|required=true|desc=The term you are defining.<ac:macro ac:name="metadata"><ac:parameter ac:name="0">glossry $paramterm</ac:parameter><ac:plain-text-body><![CDATA[$body]]></ac:plain-text-body></ac:macro>
```


Answers:
author: Jonathan Simonoff
body: I ended up using string functions to remove the extra tags from $body. I'd still love to know why they were showing up.


Tags: user-macro
Metadata Report Macro does not Display Version
Asked by MarkC:

According to the documentation here (<https://comalatech.jira.com/wiki/display/META/Confluence+Metadata+Plugin#ConfluenceMetadataPlugin-Additionalinternalmetadata>), the Metadata plugin should be able to pull in the current version number of a page within a space. However, when I try this in 5.1.2 using the plugin, the Version column is always blank. Is this an error with the plugin?

Does anyone know of another way to return the version of all pages within a single space (or, even better, across every space)?


Answers:
author: Harish Sidhartha
body: i am also facing the same issue. did you get a solution for this issue?

regards

harishsidhartha@gmail.com

comments: author: MarkC
body: I forget why I even asked this question. I don't recall that I ever got it working.


Tags: confluence-administration
Comparing selected page versions error in Confluence
Asked by Rumceisz:

Hi All,

we met an error when trying to compare selected page versions. Could you please help to find the cause of this error?

We have the following error message:

"The following error(s) occured:

An error occured while comparing changes."

Thanks in advance,  
Rumi


Answers:
author: jing_hwa_cheok
body: Hi Rumi,

<br />

Are you using sql-plugin in your Confluence. There are report of similar report which is cause by the SQL Plugin as describe in this [article](https://confluence.atlassian.com/display/CONFKB/Error+When+Comparing+Different+Versions+of+a+Page).

<br />

If you are using the SQL Plugin, please try to disable it and see if the issue persist.

Hope this helps!

Kind Regards,

Jing Hwa
Is there a way to add a Watch button on a page?
Asked by Rhyne Armstrong:

This has been asked before, but the answer wasn't complete. I am trying to add a watch button to a page. I have this with the Theme Builder plugin, but the code is broken in 4.3.7 when you use special characters in the URL. Every time you click the link, it returns you to a "page not found" because it doesn't properly escape the special character in the URL.

I need a workaround for this, because we heavily use special characters, and need to allow users to watch pages.

I think I can use the CLI macro to add the page, but is there a way to create a toggle button so the user can use the same button to watch/unwatch. Or maybe this can be done with a report table with one line with the buttons to watch/unwatch and another line that says "You are currently watching/not watching this page."

Any ideas would be greatly appreciated.


Answers:
author: Matthew J. Horn
body: You could do something like this in a user macro:

\<div class="entity-watching" data-entity-id="$content.getId()" data-entity-type="page"\>\<a class="icon icon-stop-watching" title="Stop watching this space"\>Stop watching this page\</a\>\<a class="icon icon-start-watching hidden" title="Start watching this page"\>Start watching this page\</a\>\<span class="icon icon-wait hidden"\>\</span\>\</div\>


Tags: confluence-administration
Configure Confluence to Use GMail as the Mail Server
Asked by Nacho Cougil:

Hi!

We're trying to setup Confluence (5.2) to use Gmail as our default mail server (SMTP). We actually followed [these instructions](https://confluence.atlassian.com/display/DOC/Setting+Up+a+Mail+Session+for+the+Confluence+Distribution)

The fact is that we didn't move any file (the mail-1.4.5.jar is inside the Confluence WEB-INF/lib directory), and we believe that the configuration file we modified is ok.

When we try to test our Mail configuration inside Confluence we are receiving this error: ERR_CONTENT_DECODING_FAILED ((<http://ourserver/admin/mail/dosendtestemail.action>) and nothing is written in the logfiles.

Take a look at our "server.xml":

```
&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;Resource name="mail/Session"  		    auth="Container"    	 	type="javax.mail.Session"  		    mail.smtp.host="smtp.gmail.com"		    mail.smtp.port="465"		    mail.smtp.auth="true"		    mail.smtp.user="our_account@googleAppsDomain.com"		    password="ourPassword"		    mail.smtp.starttls.enable="true"		    mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"/&gt;                &lt;/Context&gt;            &lt;/Host&gt;        &lt;/Engine&gt;
```

By the way, if we change the JNDI location inside Confluence or in the "server.xml" Confluence reply that can't find it, so seems it's well defined.

So, what can we do? We don't know what's going on.

Cheers,


Answers:
author: HosseinA
body: You may find the link below useful.

<https://confluence.atlassian.com/pages/viewpage.action?pageId=42795030>

I would like to stress that you must Move the files explained in the link to \<Confluence installation dir\>/lib as the first step of configuring mail.

comments: author: Nacho Cougil
body: Thank you Hossein!

Didn't pay attention to the specific folders!

It worked! Only moving a single file.

Thanks!


author: HosseinA
body: Your welcome Nacho


author: Nacho Cougil
body: Hi Eddie.

We tried to enable the debug for this purpose, but we didn't get anything new in the log files (catalina.out, etc).

Yes, I know that can be a problem of spamming, but first of all I'd like to know why we aren't obtaining something in the log input type (and in the logfile) and instead we receive an error directly when we are trying to "Send a test email".

Don't know what's happening...

Kind regards,


author: EddieW
body: Start by adding mail.debug="true" to the resource, and see what gives.

Also you may want to check Google docs for app admins to see if this nugget is true
> "Also, if you find errors using the port 465 please change it to 587. Gmail is blocking port 465 on some networks to avoid spamming"


Tags: confluence-administration
Modifying imported HTML to display code samples like code blocks
Asked by Alan Gray:

I'm importing html code into a confluence page using the HTML macro. Can I modify the html code to display code examples so they display onscreen as if contained inside a code block?


Answers:
author: Davin Studer
body: You could add custom html in Confluence Admin and add a reference to a javascript syxtax highlighter such as this one ...  
[](http://alexgorbatchev.com/SyntaxHighlighter/)<http://alexgorbatchev.com/SyntaxHighlighter/>  

Then it is just a matter of formatting your html in the html macro to work with the syntax highlighter. Is this what you are looking for?

comments: author: Matthew J. Horn
body: For me, it's all about being able to embed external files at page-load time, so that the files can sit in a separate repository.


author: Matthew J. Horn
body: I, too, would like to know if this is possible.


author: Ramon Ramon
body: Did you ever figure this out? We're looking to do the same: create and maintain technical documentation in Confluence, and embed code snippets from sample code that is either stored as an attachment, or stored externally (e.g. in GitHub or similar)


author: EddieW
body: Are you displaying a remote page, or inline HTML?

You could likely do this with some custom CSS to modify the html presentation. <https://confluence.atlassian.com/display/DOC/Styling+Confluence+with+CSS>
How to add authentication to jquery
Asked by Mustafa Abusalah:

I have the below script and I want to add username and password to be able to query confluence:

\<script type="text/javascript"\>

$.ajaxSetup ({

cache: false

});

$(function() {

$("#submit").click(function() {

var request = $.ajax({

type: "POST",

data: JSON.stringify(

{"jsonrpc" : "2.0", "method" : "getSpaces", "params" : \[\], "id": 12345 }

),

//Please change \<confluence-url\> to the relevant url

url: "rpc/json-rpc/confluenceservice-v2",

async: false,

cache: false,

contentType: "application/json",

success: function() {

//alert("success");

}

});

$("#output").html(JSON.stringify(request));

return false;

});

});

\</script\>  
Kindly advice


Answers:
author: RambanamP
body: you have to pass username and password as follows

```
$.ajax({  type: "GET",  url: "URL",  dataType: 'json',  async: false,  username: username,  password: password,  data: '{ "comment" }',  success: function (){    alert('Thanks for your comment!');   }});
```

comments: author: Mustafa Abusalah
body: I tried this it did not work, I'm trying to use basic http authorization as the below:

beforeSend: function(xhr) { xhr.setRequestHeader("Authorization", "Basic " + encodeBase64("username" + ":" + "password")); },

it is not returning error, but also not returning results!!!


author: RambanamP
body: chek this

<http://stackoverflow.com/questions/5507234/how-to-use-basic-auth-and-jquery-and-ajax>


author: Mustafa Abusalah
body: I already saw this.


Tags: jql