youngmon/atlassian-qna huggingface dataset:
Confluence REST API
Asked by Raffaele Guasco:

Hi All,  
I'm trying to execute any call to confluence Rest Api from a java class. In the specific to create a space and then to create a page inside it.  
the code to create a space is :  
String spaceBody = "{ \\"key\\":\\"RAID\\", \\"name\\":\\"Raider\\",\\n" +  
"\\"type\\":\\"global\\", \\"description\\":{\\"plain\\": { \\"value\\": \\"Raider Space for raiders\\",\\"representation\\":\\n" +  
"\\"plain\\" }}}'";

String confluencePage = "https://\<my-host\>/wiki/confluence/rest/api/space/";

.......  
URL url = new URL(confluencePage );  
HttpURLConnection connection = (HttpURLConnection) url.openConnection();  
connection.setRequestMethod("POST");  
connection.setDoOutput(true);  
connection.setRequestProperty("Content-Type", "application/json");  
connection.setRequestProperty("Cookie", cookie);

DataOutputStream bodyPage=null;  
bodyPage = new DataOutputStream(connection.getOutputStream());  
bodyPage.writeBytes(spaceBody );  
bodyPage.close();

I receive Ok 200 as response but I can't see any space in confluence created with that name or key.  
Does someone if I need to execute any further step?  
Many thanks


Answers:
author: Stephen Sifers
body: Hello Raffaele,

That fact you are getting a Ok 200 back should mean the space was created. With that said, the permissions on the newly created Space may not be set thus only allowing Administrators access to see it within the Space directory.

You can either check your space directory or run an API call to GET space to see if a result returns. Here is how to check the Space Directory:

1. **Visit the space directory** -- To get to the space directory, choose **Spaces** \> **Space directory** in the Confluence header.
2. **Filter the list of spaces** -- Type part of a space name in the **Filter** field at the top right. That'll quickly narrow down the list of spaces if there are a lot of them.

Here is documentation for [The Space Directory](https://confluence.atlassian.com/doc/the-space-directory-777010843.html).

Along with the [REST API calls for Spaces](https://docs.atlassian.com/ConfluenceServer/rest/6.12.2/#space-spaces).

Please let us know if you do see the space within the space directory or the GET call. If it does display there you will need to set permissions to allow others to see the newly created space.

Regards,  
Stephen Sifers
Something went wrong after loading the editor. Copy your unsaved changes and refresh the page to kee
Asked by albert:

Is there any solution for this? I\`m facing this issue, my confluence version is 6.4 on my own server it was running on MariaDB 5.5 I have upgraded it to mariadb 10.3 (Don\`t blame on database) because of this issue as I thought that cloud be DB, but after upgrade the same. Does anyone has real solutions ?


Answers:
author: Nic Brough -Adaptavist-
body: There's no point telling us not to blame the database. It is known not to work properly.

Move to a supported database, and try again.


Tags: issue
Plug-in for Excel
Asked by Annemiek Beekman:

Where can I find the FireFox plug-in to be able to edit the Office Excel macro which I added in Confluence?


Answers:
author: Aron Gombas _Midori_
body: I think you are looking for the [Atlassian Companion app](https://confluence.atlassian.com/doc/edit-office-files-170494553.html).
Do I need to implement UPM < 2.0 licensing support to fulfill the App Approval Guidelines?
Asked by Fabian Schwarzkopf:

The [App Approval Guidelines](https://developer.atlassian.com/platform/marketplace/app-approval-guidelines/) for server apps contain several points that require marketplace licensing support for UPM \< 2.0.

So the first question is: Do I need to implement this, if I only target Confluence versions that support at least UPM 2.0? This seems to be unnecessary to me but it is not stated clearly.

If it is not necessary, what about this point:
> **App is runnable without the Licensing API being previously installed** : Even though the Licensing API might already be present in your development environment, it may not be previously installed on a customer's environment. Use the [code generation](https://developer.atlassian.com/platform/marketplace/understanding-the-generated-license-api-support) tool to work around this. If it still fails, you may need to consider an [alternate deployment model](https://developer.atlassian.com/platform/marketplace/alternate-deployment-model-for-server-apps).

To me this looks like that even if I don't support \< UPM 2.0, I would need to provide some kind of licensing mechanism. Unfortunately, the 'code generation' links to the 'atlas-create-confluence-plugin-module' with which we could add a LicenseServlet to our project.

The problem with the LicenseServlet is that it is out-dated beyond hope for me.

For example, it depends on "plugin-license-storage-**lib** " which is not supported anymore. This means, even if I update the LicenseServlet to make it compatible with the Spring scanner ComponentImport, it still won't work because of the missing API. Looking at the pom, it adds the 'plugin-license-storage-**plugin**' bundle (which seems to be the newer version) but this does not provide the referenced 'ThirdPartyPluginLicenseStorageManager' and the 'AtlassianMarketplaceUriFactory' classes and therefore cannot be injected in the LicenseServlet.

If I need to implement this, why is the code generation this out-dated and more importantly, where can I find a newer version that actually works?


Answers:
author: Fabian Schwarzkopf
body: > So the first question is: Do I need to implement this, if I only target Confluence versions that support at least UPM 2.0? This seems to be unnecessary to me but it is not stated clearly.

I've contacted the atlassian support directly and was told that it is not necessary. I guess it could be more clearly in the app approval guidelines.


Tags: confluence-server

server
Images suddenly broken - how can we get them back?
Asked by Louise Parry:

I get this error message:

"The attachment you were trying to download could not be found in the attachment file store. Either the file has been deleted manually or there was an error in removing the record of the attachment from Confluence.

If this attachment is no longer required you can delete it from Confluence on the attachments page. Otherwise, you will need to attach a new copy."

So on the page, the images show as broken.

On the space tools \> content tools \> attachments it provides the error message above, but the link to the image is there. Is there any way we can get these images back? We are using Atlassian Confluence 6.2.3


Answers:
author: Brant Schroeder
body: Louise,

You should start here: <https://confluence.atlassian.com/confkb/how-to-resolve-missing-attachments-in-confluence-201761.html>

comments: author: Louise Parry
body: But I can't determine whether the images are there or not so how can I go through the steps?


Tags: confluence-server

server
Can you include a Space of version 6.12 in a Confluence Server 6.4.3?
Asked by frank becker:

Can you include a Space from version 6.12 in a Confluence Server 6.4.3.

I got a space from a Confluence 6.12 server. It was exported XML and 500 mb in size.  
What do I have to consider now? Not that I'm shooting down my Confluence environment 6.4.3.

We have many plugins (e.g. gliffy, workflows, Scroll Vision, Sub Space, Linking , ...) on our server.  
Thanks for the help.


Answers:
author: huvian
body: Hey [@frank becker](/t5/user/viewprofilepage/user-id/2216249),

Unfortunately, it is not possible to import a space from a later version of Confluence into a site running an earlier version. If you need to use this space, you might consider upgrading to 6.12 first.

See here for more guidelines on restoring a space into your instance: <https://confluence.atlassian.com/doc/restoring-a-space-152036.html>

Vivian

comments: author: frank becker
body: Hi Vivian  
Thank you so much for your feedback.

Frank


Tags: confluence-server

server
Setting up a template for a new site
Asked by Fara O'Connor:

I have a site outline that I'd like to add a template so anyone adding a new site can pick this up and have the relevant headings needed.

Online instructions are unclear for "site creation" .. Page templates are easy to see, but the templates for sites are not available.

Please advise.


Answers:
author: Shannon S
body: Fara,

Can you clarify what you mean regarding a new site? Confluence has both [Global and Page templates](https://confluence.atlassian.com/doc/create-a-template-296093779.html), and the global template will apply to the entire Confluence site.

It's not possible to create additional Confluence sites via a single Confluence instance, so it's not clear what you're looking to template exactly.

Regards,

Shannon
User Management
Asked by Sajid Bhatti:

I do not seem to have "User Management" anywhere within my console.

How do i go about getting access to this?


Answers:
author: Yogesh Mude
body: HI [@Sajid Bhatti](/t5/user/viewprofilepage/user-id/2216781)

Welcome to the Community!

To manage Users you should have Jira Admin and Confluence Admin rights respectively.

If you have the admin rights then you can find the User Management on your top right side Cog item, besides to user profile.

comments: author: Sajid Bhatti
body: Hi Yogesh,

Thank you very much for the reply.

I am new within my organisation and should have Jira and Confluence Admin rights. This might be a silly question but how do i go about acquiring these rights and who can issue them to me?.


author: Grigory Salnikov
body: There should be a system administrator or a manager who has this information.


Tags: jira

user-management
Password Hashing
Asked by nobody:

Please confirm which hashing functions used/available for hashing passwords in databases when using database instead of other LDAP integration.

This link is showing SHA1 - surely this is no longer the case? : <https://developer.atlassian.com/server/confluence/password-hash-algorithm/>


Answers:
author: Daniel Eads
body: Hi,

The document you've linked notes that Confluence prior to 3.5 (which was many years ago) used a derivative of SHA1-512.

Embedded Crowd (used in Confluence) currently hashes with [PBKDF2](https://en.wikipedia.org/wiki/PBKDF2) and a round length of 10,000. You can read more about the [specific implementation here](https://passlib.readthedocs.io/en/stable/lib/passlib.hash.atlassian_pbkdf2_sha1.html).

Cheers,  
Daniel

comments: author: nobody
body: Which is also using SHA1

Is there nothing there with something suitable such as SHA2?


author: hari
body: Hi,

We don't use just SHA1 for hashing passwords. The SHA1 mentioned there is the PRF function needed for PBKDF2. We are continuously looking to improve this, but currently do not have immediate plans to change.


author: nobody
body: So you understand you are using broken hash algorithms but do not have immediate plans to change?


author: hari
body: Hi,

Like I mentioned before we are not using plain SHA1 for hashing passwords (for which collision attacks were identified). The SHA1 usage in PBKDF2 is actually a HMAC-SHA1 which is not vulnerable to the same collision attacks as SHA1 hashing algorithm.
Navigation Map Macro does not work
Asked by Oleksandr Kurtanych:

Hi guys!

After Confluence update from 5.9 to 6.10.1 version, Navigation Map Macro does not render new labels. So Tabs with child pages which have the same labels are not displayed  
Please, could someone help?  
![Screenshot_4.jpg](/t5/image/serverpage/image-id/36407i6036CBC922A4E915/image-size/large?v=v2&px=999 "Screenshot_4.jpg")


Answers:
author: Stephen Sifers
body: Hello Alex,

That is rather strange that the Navigation macro stopped showing new labels after a 5.9 to 6.10 upgrade. It does however sound like an indexing issue within Confluence. We would suggest you reindex and see if the Navigation macro is still coming up blank.

Here are steps on completing a reindex for Confluence 6.10.

1. Choose the**cog icon** , then choose **General Configuration**
2. Choose '**Content Indexing** ' under the heading '**Administration**' in the left-hand panel.
3. Choose the '**Rebuild**' button in either the 'Search Index' section.
   * (If the indexes have never been built, its button will indicate 'Build' instead of 'Rebuild.)

Wait for this to complete, during this reindex performance may slow a bit until it completes.

Here is the documentation on [Content Index Administration](https://confluence.atlassian.com/conf610/content-index-administration-952623157.html#ContentIndexAdministration-Rebuildingthesearchindex).

Once that completes, please let us know the outcome. We look forward to your response to resolve this issue for you.

Regards,  
Stephen Sifers


Tags: macro
Confluence Server Connection Timed out
Asked by Andrey Aparinov:

I met problem today, that at some moment the connection to Confluence Cloud server was lost and I can't establish it back. Internet works OK.


Answers:
author: AhmadDanial
body: Hi, Andrey.

Can you please confirm if you are still experiencing the same issue on your issue as of now on Confluence Cloud? I just want to make sure if the problem was reported in the status page - <https://status.atlassian.com/history?filter=4y1btwt092k8,ym9nd5nh9xdk> and if it is resolved already on your end. Thanks.

comments: author: Andrey Aparinov
body: I found that I have this problem only with one page that in my Drafts. Right now I checked and found that everything is OK. Thank you.


author: Andrey Aparinov
body: I did nothing to resolve the problem. I had a local copy of it, so I created new page. I tried to access it from different computers in different places but no success. Now time passed and it works again. So I suppose it was problem on your side.


author: AhmadDanial
body: Hi, Andrey.

Indeed, the issue was coming from our end. Apologies for the inconvenience.

Nevertheless, I am glad to know that the issue is resolved on your end. Feel free to reach out should your run into any other issues in the future. Thanks.


Tags: cloud

confluence-cloud
Not able to install plugins
Asked by juber ahmed:

Hi Team,

Problem accessing add-on file at <https://marketplace.atlassian.com/download/apps/1211245/version/210>

Can you please help, I am getting whenever i am trying to integrate git integration plugin for jira.  
I am doing POC and if things are correct we are going to do it in production.


Answers:
author: Nic Brough -Adaptavist-
body: Are you on Jira Cloud or Jira Server? ( Cloud urls all end with .atlassian.net )

comments: author: juber ahmed
body: I am using jira server


author: Nic Brough -Adaptavist-
body: Ok, which App is it? (the link goes to the App connector which doesn't tell me what the app is)


author: juber ahmed
body: I am trying to install the "git integration" plugon


author: juber ahmed
body: Typos plugin\*


author: Nic Brough -Adaptavist-
body: Typing that into the marketplace gives me many hits. Which one are you looking at?


author: juber ahmed
body: Git integration for jira

Bigbrassbrand.

If that helps let me know else I will give you screen shots..

And thanks for the response much appreciated


author: Nic Brough -Adaptavist-
body: Please, don't make me have to search for info you already have. Link to it.


author: juber ahmed
body: <http://54.190.211.193:8080/plugins/servlet/upm/marketplace/search?q=git%20integration>  

here is the link


author: Nic Brough -Adaptavist-
body: That's useless - it's a link on your system to a search (which, when replicated, still returns many)

Please, just link to the add-on, on the site.


Tags: jira
Confluence startup error: Cannot call sendError() followed by Spring Application context not set
Asked by 91378246:

**Prerequisites**

* Ubuntu Server 18.04
* Confluence Server 6.12.1
* PostgreSQL 10
* Jira and Bitbucket are installed and running without problems

**Installation**

* Database:
  * CREATE ROLE confluenceuser WITH LOGIN PASSWORD 'password' VALID UNTIL 'infinity';
  * CREATE DATABASE confluence WITH ENCODING='UTF8' OWNER=confluenceuser;
* sudo ./atlassian-confluence-6.12.1-x64.bin
* Default values

**First exception (after clicking Next on the setup database step)**

```
java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
```

**Second exception (after stop-confluence, start-confluence)**

```
com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Spring Application context has not been set
```

**What I tried so far**

* Installing on different ports
* Installing not as a service
* Using the docker container provided by Atlassian (same error)
* Reassigning ownership and rights to the install and home directory via chown and chmod
* Installing with Jira and Bitbucket shut down
* Disable JMX
* Using the built in database


Answers:
author: Shannon S
body: Hi Jan,

The following article has ten separate solutions, some of which you may have already tried. I recommend having a look at it, however, as it may help to correct your issue.

* [Confluence does not start due to Spring Application context has not been set](https://confluence.atlassian.com/confkb/confluence-does-not-start-due-to-spring-application-context-has-not-been-set-218278311.html)

Please review it thoroughly and let us know how that goes and if you have any questions or problems regarding it.

Regards,

Shannon


Tags: confluence-server

server
zpl support
Asked by Shay Bloch:

When Confluence will support ZPL (zeplin) links?

now we have to copy / paste the links and can't press on them.


Answers:
author: Nic Brough -Adaptavist-
body: It's not up to Confluence to "support" uri schemes, it's up to your browser.

comments: author: Shay Bloch
body: if I copy paste it to my browser it works, but I need to copy paste it.

Conf. needs to recognized it as a hyperlink, so I won't need to copy paste it.


author: Nic Brough -Adaptavist-
body: I assume you're using it in plain text then. It's not up to Confluence to pull random bits of text out and guess that they might be a link.
When creating a page, I can save it even if no changes are made.
Asked by alm-support_samsung_com:

If there are no changes, improvements will be needed to prevent them from being saved.

The reason for this is that when saved, mail is sent to the user for that page, which means that the user receives unwanted mail.

Please check my question.

Thankyou.


Answers:
author: AhmadDanial
body: Hello there.

I would like to understand the improvement idea you have on your end a little bit better. Can you confirm if you are referring to page create or page edit specifically?

* If you refer to page creation, can you specifically explain what do you mean by no changes? The reason why I am asking is because you need to have at least a Title before you can publish a new page, so that is considered a change already.
* If you refer to page edit, there is a **Notify Watchers**checkbox that you can untick to avoid sending mail notification to users.

Perhaps you can also share a sample email that the watchers receive when this scenario occurred? Looking forward to hear from you.
Re: Re: Edit Office files with the companion app not suff...
Asked by Laura Krieter:

I'm also having issues with the new Companion App. I was editing an excel file

Once I click the Update button the on the browser, I see a message the file was uploaded. The excel file stays open, but the update button in the browser goes away.

If any changes are subsequently made in the open excel doc, I see a message the changes were saved in confluence - but they are NOT saved! This is a **terrible user experience** and will cause many users to lose information. I can't roll this out to my team, as I know they will miss the step and lose their information.

I also used to be able to re-open documents from confluence directly in excel recent file list. This was an incredibly useful ability and allowed me to work naturally. This ability seems to be gone too. I am really considering a move to AirTable or Google docs because the attachment capabilities in Confluence are going backwards not forwards.


Answers:
author: Shannon S
body: Hi Laura,

I separated your answer as a new question, since it's more a new question rather than an answer to the previous one.

The issue you're reporting is known, and it's been logged both for Confluence Server and Cloud:

* [CONFSERVER-56549](https://jira.atlassian.com/browse/CONFSERVER-56549) *Allow Edit with functionality to perform multiple saves and uploads of the document even after clicking upload in the companion app*
* [CONFCLOUD-62098](https://jira.atlassian.com/browse/CONFCLOUD-62098) *Improve Atlassian Companion to allow multiple saves*

I ask that you vote on whichever issue relates to your instance (whether you're using Cloud or Server) and feel free to comment there as well with your feedback.

Thank you again for your input and I hope to see this corrected in the future.

Regards,

Shannon
Unable to Add calendar
Asked by Kristen Davis:

I am trying to add a calendar to my Confluence space and I don't see a calendar option in the macros or next to the Create menu. Are there any calendars that are integrated with Confluence out of the box or do I need to purchase an add-on? Thanks!


Answers:
author: Ollie Guan
body: Hi [@Kristen Davis](/t5/user/viewprofilepage/user-id/1187200),

Have you ever installed the team calendar plugin?For more information, please refer to the following help documentation.

<https://confluence.atlassian.com/teamcal>

comments: author: mayank.bajpai
body: which option do I have to select under the above link?


Tags: confluence-server

server
"Editing Restricted" allows unauthorized creation of child pages
Asked by jsflysrc:

I have admin access to a space. I have changed the access to the top page in this space to "Editing Restricted" and gave permission to Everyone to view and 3 other people to View and Edit. However, everyone can create child pages under this top page. How do I restrict Everyone to be able to create child pages from the top page?


Answers:
author: Fabienne Gerhard
body: Hi [@jsflysrc](/t5/user/viewprofilepage/user-id/2213679) - the only "right" way to restrict adding pages would be to set the space permissions as [@Kian Stack Mumo Systems](/t5/user/viewprofilepage/user-id/853673) mentioned. Just give the groups only a "view" in groups permissions. -\> see [documentation](https://confluence.atlassian.com/doc/space-permissions-overview-139521.html) here

But what could be a sneaky peaky workaround is to just hide the create button with an addon. One of my favourites is [Hide Elements](https://marketplace.atlassian.com/apps/1211757/hideelements-for-confluence?hosting=server&tab=overview) - just add it to your page and it let's you easily hide what you want. Attention - that only hides the element and won't restrict users from creating a page. (Shortcut C would still work) but maybe when users don't see the button they don't get the idea ;)


author: Kian Stack Mumo Systems
body: Jsflysrc,   

You cannot do what you are asking unless you remove the "Add page" permission for the entire space from a majority of the users. Restricting edit permissions on a page does not prevent new pages from being created underneath them.

Thanks,   

Kian
Company wide confluence cost + visibility if you are not a licensed user
Asked by Pam Aboud:

Two questions:

1. We are considering adopting Confluence as our company wiki. We have 300 employees here - who can I get in touch with to discuss costs/options?

2. If we wanted to post something on our Confluence page, is there any way that we can allow that non-users (that do not have a user license) can view that post/content?


Answers:
author: Nic Brough -Adaptavist-
body: 1. There's not that much point in talking to anyone - the prices are at <https://www.atlassian.com/software/confluence/pricing?tab=self-hosted> (You will need to choose between Server and Cloud, but the prices are there)

2. Yes. You can make spaces and then pages within them visible to "anonymous", meaning people who have not logged in can see them.