youngmon/atlassian-qna huggingface dataset:
User profile
Asked by Anderson Hsu:

Dear Support Team,   
How can we setup the restriction for profile maintain by account ? Such as we would like to some accounts can not edit some field as shown as the attachment.

![Screen Shot 2019-01-16 at 8.43.51 PM.png](/t5/image/serverpage/image-id/42760i7F4D5B2EACFD3A6B/image-size/large?v=v2&px=999 "Screen Shot 2019-01-16 at 8.43.51 PM.png")


Answers:
author: Diego
body: Hello there Anderson!

As I understand, you need to keep users from editing **specific profile fields** . With this in mind, I could find an Atlassian Article that takes care of **completely disabling** the option to edit the user profile:

[**How to disable profile editing by users**](https://confluence.atlassian.com/confkb/how-to-disable-profile-editing-by-users-218278031.html)

Further, I could fund another thread here in the Community that approaches a similar topic:  
[**Prevent local users from changing Name \& Email**](https://community.atlassian.com/t5/Answers-Developer-Questions/Prevent-local-users-from-changing-Name-Email/qaq-p/549070)

The plugin referenced there is this:

**[User Profiles for Confluence](https://marketplace.atlassian.com/apps/29106/user-profiles-for-confluence?hosting=datacenter&tab=overview)**

Let us know your thoughts!
unable to logon to Confluence after update JIra
Asked by evi:

after we updated to 6.7.1 we could not connect to Confluence anymore (not even with the recovery admin)


Answers:
author: josh
body: Hi,

This is one of the reasons I always advise against using Jira as a user directory for any other Atlassian application.

If you're unable to log in to Confluence using Confluence's local admin account (which could have a different username/password than Jira's local admin account) you may need to look into restoring access to that account by following the instructions on this doc: [https://confluence.atlassian.com/conf67/restore-passwords-to-recover-admin-user-rights-945103372.html](https://confluence.atlassian.com/conf67/restore-passwords-to-recover-admin-user-rights-945103372.html?) (you may have already done this, not sure)

I would also check the Confluence logs to see what failures are happening when users try to log in, because that also may give some clues as to what's going on. What version of Jira are you using?


Tags: confluence-server

server
Get required version of content properties via REST API
Asked by Pavel:

1. Create a content property on page with

POST /rest/api/content/{id}/property

{ "key": "example-property-key", "value": { "anything": "goes 1" } }

2. Update the same content property with

PUT /rest/api/content/{id}/property/{key}

{ "key": "example-property-key", "value": { "anything": "goes 2" }, "version": { "number": 2, "minorEdit": false, "hidden": false } }

3. How can I get the property with values of the 1st version?

GET /rest/api/content/{id}/property/{key}

GET /rest/api/content/{id}/property

These methods return only 2nd version values.


Answers:
author: Diego
body: Hello there Pavel!  

First, we need to understand that **each time you publish a page** , a new **database entry** is **generated** in the **CONTENT table** in Confluence. Each entry has a **different contentid** value. Also, each content table entry **has a entry in CONTENTPROPERTIES** table as well. So changing the values of keys will **directly affect** that table entry in CONTENTPROPERTIES.   

Now that we know that, we can try to at least get content properties from **previous Page Versions.**   
Since those CONTENT table entries are "connected" only by the lowertitle and prevver columns, we can use the following SQL Query to get the desired information:

```
SELECT * 
FROM content c1
JOIN content c2 ON c1.prevver = c2.contentid 
WHERE c1.contenttype LIKE 'PAGE' AND c1.lowertitle = c2.lowertitle AND c1.lowertitle LIKE 'versions' AND c1.content_status LIKE 'current' AND c1.version = 3
```

The**c1.version** alias is there so that we get the information for the page version that we need. In this case, I used version 3.  
We will now need to check get the ID shown in the query results. Here, I tried to use REST to fetch the content properties for the desired page entry.  

At this point, I was **unable to fetch the results via REST**. The following error message was thrown for me, even though the CONTENTPROPERTIES and CONTENT table entries for the page were there in the database:
> "Cannot find content with id ContentId{id=1081400}"

However, we might still be able to fetch this information via SQL with the following query:

```
SELECT * FROM contentproperties WHERE contentid = 1081400
```

Here, contentid should be the contentid of the **desired page version.**

**For short:**

Changing the values of content properties keys will change the database entry for the current page version and there is no "backup" of this. There are entries of previous page versions that we can fetch via SQL.   

Let us know if this sheds some light on your process!


Tags: atl-adm

confluence-server

rest-api

server
"Invalid character found in the request target" when viewing RSS feeds
Asked by Rilwan Ahmed:

In Confluence 6.11.2, clicking on any **RSS** feed in **Space Tools** \> **Content Tools** \> **RSS Feed** throws the below Error.  

HTTP Status 400 -- Bad Request {#toc-hId-1852467620}
----------------------------------------------------

*** ** * ** ***

**Type** Exception Report

**Message** Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986

**Description** The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

**Exception**

```
java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986	org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:467)	org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:294)	org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)	org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:770)	org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2336)	org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)	java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)	java.lang.Thread.run(Thread.java:748)
```

**Note** The full stack trace of the root cause is available in the server logs.  

Workaround provided in <https://jira.atlassian.com/browse/CONFSERVER-57582> DOESNOT resolve the issue


Answers:
author: Diego
body: Hello there Rilwan!

Would it be possible for you to **share and excerpt** of your **server.xml**file with us?

This file is located under **\<confluence-install\>/conf** path. Please, be careful to not share any **sensitive information** with this screenshot, such as instance URL.

Also, could you clarify if you **restarted Confluence** after applying the workaround to your instance?


Tags: confluence-server

rss

server
When I put any image (e.g. edit, delete symbol) in a line, line breaks from that point in pdf output
Asked by Trilochan Padhan:

Using Confluence 6.1.0, When I put an image (e.g. edit, delete symbol) in a line, line breaks from that point in pdf output. I checked using both png and jpeg format images, but the result remains unchanged

**input confluence page:**

![confluence page (input).PNG](/t5/image/serverpage/image-id/42741iDD767B9CC4A4403D/image-size/large?v=v2&px=999 "confluence page (input).PNG")

<br />

**Output pdf:**

![pdf output.jpg](/t5/image/serverpage/image-id/42742i806138B9C12E9ECD/image-size/large?v=v2&px=999 "pdf output.jpg") .


Answers:
author: Sireesha Dugginapeddi [Appfire]
body: Try removing/deleting this image attachment from the page by navigating to the ***ellipses \> attachments \> select this icon/attachment \> click delete***.

Insert the image again wherever required in the page while editing. This time, make sure you attach a different copy of the image (and not the one you have been using so far). Hoping this would work.

Optionally, try creating a new page and add only this particular line, exporting this new page. This will help you see if the problem is with the page or the PDF Export settings. Once we know where the issue is, we can look into more options to fix it.

Thanks!


author: Sireesha Dugginapeddi [Appfire]
body: Hi [@Trilochan Padhan](/t5/user/viewprofilepage/user-id/2576052),

I am assuming you are talking about PDF export output, in which case please try doing one of the following:

* Insert the image and do not drag/drop it while adding it to the page.
* Re-size the icon/image to me min possible pixels your Confluence page allows you to.

Try the options with a jpeg. Hope that works!

Thanks

Sireesha

comments: author: Trilochan Padhan
body: Thank You Sireesha for your valuable suggestions. But unfortunately still I am getting the same output, i.e. the line still breaks from the image insertion point.

Regards,

Trilochan Padhan


Tags: confluence-server

server
On login I'm being redirected back to the login page with no errors
Asked by Thorsten Schmitt:

Hey guys,

first, here?s my config:

- on-premise Windows Server 2016 domain member

- dedicated MS SQL server 2012

- Confluence Server w. 10 users

Once Confluence has been installed, everything was working as expected.

As soon as I've changed base url from http://localhost:8090 to <http://confluence.mydomain.loc:8090> and restart the server service, I've bee able to access the new url, but when trying to login there?s no error message and login isn?t possible.

Could you please advise what?s my mistake?

Thanks a lot in advance!

Kind Regards

Thorsten


Answers:
author: Tobias Anstett _K15t_
body: Hi [@Thorsten Schmitt](/t5/user/viewprofilepage/user-id/2574931),

Have you already had a look into the 'atlassian-conlfuence.log' file located in your Confluence home directory. And also additionally checked the 'Network' tab in your browsers console? One or the other should point you to the issue.

Best, Tobias


Tags: confluence-server

server
Not able to fetch previous versions of an excel attachment.
Asked by Vishal Raut:

While updating a wiki page (which already had an excel attachment), I copied the link of previous attachment and edited the excel with totally new content. I got to know after publishing the page that confluence keeps deep link of attachments; which means same content got displayed at both places.

I checked the previous versions of the page and restored from last version, but confluence does not version the attachment along with the page. Altogether, the original content of excel is lost for me.

Is there a way to recover the original content; I am not able to see the version control for attachments.


Answers:
author: Tobias Anstett _K15t_
body: Hi [@Vishal Raut](/t5/user/viewprofilepage/user-id/354267),

Both pages and attachments are versioned contents in Confluence. However you are right these are not linked to each other.

If you restore a page from the history it just reverts the page content. Links to attachments or images embedded still point to the latest version of the corresponding attachment.

However as attachments also have a history, you can download a older version of the attachment and afterwards upload it again. This way the older version gets the latest version again and everything is rendered as expected.

Best, Tobias


Tags: attachment

cloud

confluence-cloud

ms-excel

version
Issue getting Synchrony working with an external proxy
Asked by Kieran Bailey:

I am having issues getting confluence to work behind a reverse proxy which is hosted on a different server). What I am getting is when I go to add a new page or edit a page, I get the following message.

"Something went wrong after loading the editor. Copy your unsaved changes and refresh the page to keep editing."

Having a look through I can see that the issue is related to Synchrony. Below is my current nginx proxy settings along with my server.xml config

## nginx Config

server {  
listen DMZ_IP:443;  
server_name confluence.fakedomain.com;  

include /etc/nginx/conf.d/ssl.include;  

access_log /var/log/nginx/confluence.access.log;  
error_log /var/log/nginx/confluence.error.log;  
client_max_body_size 200M;  
location / {  
include /etc/nginx/conf.d/proxy_options.include;  
proxy_set_header X-Forwarded-Host $host;  
proxy_set_header X-Forwarded-Server $host;  
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;  
proxy_pass http://confluence;  
}  
location /synchrony {  
proxy_set_header X-Forwarded-Host $host;  
proxy_set_header X-Forwarded-Server $host;  
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;  
proxy_pass http://confluence/synchrony;  
proxy_http_version 1.1;  
proxy_set_header Upgrade $http_upgrade;  
proxy_set_header Connection "Upgrade";  
}  
}

upstream confluence {  
server INTERNAL_IP:8090;  
}

## server.xml Config

\<Connector port="8090" connectionTimeout="20000" redirectPort="8443"  
maxThreads="48" minSpareThreads="10"  
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"  
protocol="org.apache.coyote.http11.Http11NioProtocol"  
proxyName="confluence.fakedomain.com" proxyPort="443" scheme='https'  
/\>


Answers:
author: Michael Levec
body: Hi.

I am not an nginx expert, but seeing your config, I wondered. You will have to add a port definition for syncrhony (8091) similar to the one you already have for 8090. I am not sure if this is at all possible, because nginx most likely cannot have two ports for the same server as a target.

In Apache, this would look like this:

`# synchrony`  
`proxy_pass `<http://confluence.fakedomain.com:8091/>

Please look here, contains more nginx info:

<https://confluence.atlassian.com/confkb/how-to-use-nginx-to-proxy-requests-for-confluence-313459790.html>

\^There is a good example for your problem

Cheers,

Mike


Tags: confluence-server

nginx

server

synchrony
Problem Avatar User to Migrate Confluence Cloud to Server
Asked by David A.:

After making a migration from Confluence Cloud to Confluence Server, the avatars Atlassian account are not included in the Confluence Server user profiles.

Is there any way to migrate User Avatars from Confluence Cloud to Confluence Server?


Answers:
author: Suren Raj
body: Hi David,

All profile picture in Cloud is sync-up in id.atlassian.com. The avatars are not included on the backup zip and the best way to proceed now would be setting up the profile avatar accordingly.  

<br />

Cheers


Tags: cloud

confluence-cloud

confluence-server
View access for everyone to Confluence Cloud page
Asked by jPlugs:

We use Confluence Cloud for our documentation and wants to give read access to certain spaces for everyone.

Currently, the spaces are configured with read access to Anonymous.

However, this seems to have the disadvantage that sometimes visitors with a cached Atlassian id/login are refused access. Probably because such a visitor is not strictly Anomyous.

How do we configure Confluence Cloud spaces with actually read access for everyone? Users with or without an Atlassian id/login.

Thanks,

Jes


Answers:
author: Jakub Hanak
body: Hello [@jPlugs](/t5/user/viewprofilepage/user-id/565868),

You should also set read access for "confluence-users" group. It can have different name for your instance, but this is the group where you grant access for JIRA users to Confluence.

Best regards,

Jakub

comments: author: jPlugs
body: Thanks Jakub


Tags: cloud

confluence-cloud
How to enable Page Export Options for anonymous / non-authenticated users?
Asked by shehzad.iqbal:

I couldn't find an option to enable anonymous users/visitors to perform "Export to PDF / Word" function on a page/document. I am sure there must be a way to do this because it sounds ridiculous not have such an option.   

Any help will be highly appreciated. Thanks.


Answers:
author: Jakub Hanak
body: Hello [@shehzad.iqbal](/t5/user/viewprofilepage/user-id/2307704),

in the Space permissions setting, there is Anonymous option. Just allow them to "Export space" and they can export any content of the space. See below:

![spaceper.png](https://community.atlassian.com/t5/image/serverpage/image-id/42722i945E8ADD9F197B10/image-size/large?v=v2&px=999 "spaceper.png")Best regards,

Jakub

comments: author: shehzad.iqbal
body: Perfect, thanks for the hint.


Tags: configuration

confluence-app

confluence-server

questions-for-confluence

server

space
How to update and delete the comments for particular page in confluence through rest api service.
Asked by karthick tgi:

Hello Folks,

I need an API service for Update and delete the comments in particular page created in confluence.

I used the API service for Create the Comments in confluence page .

Thanks

Karthick


Answers:
author: Yoga Reddy {Appfire}
body: Hi [@karthick tgi](/t5/user/viewprofilepage/user-id/1221751)

You can achieve this by using third party plugin i.e [Confluence CLI](https://marketplace.atlassian.com/apps/284/confluence-command-line-interface-cli?hosting=server&tab=overview). Please go through the following docs for more info.

<https://bobswift.atlassian.net/wiki/spaces/CSOAP/pages/10584066/Examples>

Thanks

Yoga

To approve a single suggestion, mouse over it and click "?"Click the bubble to approve all of its suggestions.

comments: author: karthick tgi
body: [@Yoga Reddy {Appfire}](/t5/user/viewprofilepage/user-id/676173) thanks for your reply .

But i need an REST api for achieving this. Is there any API please share with me.
Blog post file upload progress bar freezes
Asked by Jishnu:

When attaching a file to a blog post, the progress bar never disappears. ![blog post file attachment issue.JPG](/t5/image/serverpage/image-id/42712i9E84937BEEA4C6D9/image-size/large?v=v2&px=999 "blog post file attachment issue.JPG")

Is there any work arounds available?


Answers:
author: Shannon S
body: Jishnu,

Can you let us know your Confluence version, as well as what errors are appearing in the Confluence server logs when the upload is timing out?

If you are behind a firewall or proxy, could you try bypassing it and see if you're able to upload the attachment?

Does the attachment ever get added to the page, even if you refresh the page later?

Are all users having this issue? Does it occur in all spaces, on various pages? Are you able to replicate this on multiple browsers?

Thank you for your help!

Regards,

Shannon
How to make CRUD operations for the nested comments in particular page on confluence
Asked by karthick tgi:

Hello folks,

I need an API service for Nested comments (Comments -in - Comments) For Create, Update and Delete the nested comments in particular page for confluence.

If have please share with me.

Thanks

Karthick


Answers:
author: Stephen Sifers
body: Hello Karthick,

This is an exciting concept to move comments within Confluence pages. You may access/view comments within a Confluence page via the API. Getting to the data will be a 2 step process. Here is the method I would use for this approach:

1. Call the [GET /rest/api/content](https://docs.atlassian.com/ConfluenceServer/rest/6.14.0/#api/content-getContent); this will allow you to have the Content ID you need for comments
2. Pass the Content ID through to [GET /rest/api/content/{id}/child/comment](https://docs.atlassian.com/ConfluenceServer/rest/6.14.0/#api/content/%7Bid%7D/child-commentsOfContent); this will allow you to have all comments within the Content ID page.

A drawback to this is there is no option within the endpoint to use methods such as POST or DELETE. Meaning, you will only be able to view already created comments within the Confluence pages.

Since you want to Create, Update, and Delete comments when chances are the Java API will better serve you. Here is the documentation for the [Java API.](https://docs.atlassian.com/ConfluenceServer/javadoc/6.14.0/)

Alternatively, you may view marketplace add-ons to see if a solution there may suit your needs. Here is a preset search within the [Atlassian Marketplace for comments](https://marketplace.atlassian.com/search?product=confluence&query=comments).

I hope this provides some direction with your concept. When you have a solution figured out, please share with the rest of so we may learn from your endeavors.

Regards,  
Stephen Sifers


Tags: atl-adm
Update date value in custom field (script post-function)
Asked by bell.chen:

Hi Team

Please clarify how to update the blog post marco to display the date for latest update instead of creation date.

![BL.JPG](/t5/image/serverpage/image-id/42711iB1C2A61C27F2E5B2/image-size/large?v=v2&px=999 "BL.JPG")


Answers:
author: Diego
body: Hello there!

Changing this aspect of the macro is**currently not possible** . However, **sorting by modification date** is possible. You can achieve this by doing the following:
> 1. Access the **desired page**
> 2. Enter **edit mode**
> 3. Insert the **Blog Posts Macro**
> 4. After inserting the macro, **select it**
> 5. Click to **edit**
> 6. Scroll down until you see the **sort by** section
> 7. Select **modified**
> 8. Click to **save**
> 9. Publish the page

Let us know your thoughts on this!


Tags: atl-adm

blog
Advice - Macros?
Asked by Fred CY Wong:

Hi

This must've been asked a million times. What are good macros to use for setting up request and tracking workflows? It should include functionality for submitting, tracking, notification, output to csv, and math operations. This would be use for purchase request, travel request, and etc . . .

thanks

Fred


Answers:
author: Bastian Stehmann
body: Hi [@Fred CY Wong](/t5/user/viewprofilepage/user-id/2573941),

Welcome to the community.

Your requirements are a bit general, but I will give it a try.

First, you should not use confluence, use Jira, Maybe Jira Service Desk.

There you will have nearly all your mentioned requirements fulfilled, except the math operations, out of the box.

For math operations, you can use scripted fields from script runner for example.
BPMN icons are not showing properly
Asked by ebaatar:

Hi,

I am using Draw.io plugin in Conluence, but there is problem with BPMN general icons.

Does anyone know why BPMN general icons such as User Task, Manual Task are not showing properly when I access the Confluence from VDI where there is no internet connection, but only Conluence is allowed to use. However, when I browse the page from the local computer where there is internet, the icons are showing properly.

Screenshots are as follows, and please kindly advise if there is solution for it.

![icons_showing_properly.png](/t5/image/serverpage/image-id/42709i7018E9EC91E4FE6E/image-size/large?v=v2&px=999 "icons_showing_properly.png")![icons_not_displayed.png](/t5/image/serverpage/image-id/42710iCE828ED9193B3F89/image-size/large?v=v2&px=999 "icons_not_displayed.png")


Answers:
author: Marija Radovic
body: Hi Ben,

We will reply to the support ticket you already sent us.

When it comes to a potential issue, it is always better to send one ticket

so we can have all the information at one place.

Regards,

Marija draw.io support