youngmon/atlassian-qna huggingface dataset:
Maximum number of rest call to Confluence
Asked by davidosteso:

Hello.

I'm doing several actions (querys, creation of pages, etc) to Confluence via REST.

The firsts actions are executed without problems but when it comes to a certain number of calls the server don't return anything and the application received a timeout.

We have checked the connection settings of the Confluence server and we've extended the maximum number of simultaneous connections and enabled the Remote API.

I've tested on Confluence on Apache and nginx servers with Posgres and SQL Server with the same result.

What's more interesting the error doesn't happen when I tested against my local Confluence.

Do you have any idea of what the problem could be?

All help would be appreciated.

Thanks.


Answers:
author: davidosteso
body: Thanks for your help Rodrigo but that didn't work. I've achieved to locate the operation that throws the Timeout. It's the third attempt to create a label using the REST method.

It's very odd but the second two times the creation is successful but the third the server doesn't retrieve any response. I've tested with different pages and label and the result is the same. I think it's a bug in the API REST.

Post the C# code here:

List\<LabelEntity\> listLabels = new List\<LabelEntity\>();  
listLabels.Add(pLabelEntity);

jsonSerializer.WriteObject(memoryStream, listLabels);  
memoryStream.Position = 0;

string url = Connection.UrlConfluence + "/rest/api/content/" + pIdContent +"/label/";  
url += "?os_authType=basic";

Connect(url, ref request, Definitions.RequestMethod.POST);  
bytesJson = memoryStream.ToArray();  

string respuesta = Encoding.UTF8.GetString(bytesJson, 0, bytesJson.Length);  
request.ContentType = "application/json";  
request.ContentLength = bytesJson.Length;

using (Stream dataStream = request.GetRequestStream())  
{  
dataStream.Write(bytesJson, 0, bytesJson.Length);  
}  
response = (HttpWebResponse)request.GetResponse();

Thanks.


author: Rodrigo Girardi Adami
body: Hi David,

I'm not very familiar with Rest Api Calls. I believe each time you request a rest api command, a connection will be created to the tomcat server.

So if you have a small number of connections set to maxthreads in apache tomcat (server.xml connector), that should be a problem. I would say to test with a bigger size for the threads. If this was done already as you commented in the description, maybe you should test with the latest version of confluence. As far as I know, the limit in within the connector for the tomcat app.

Cheers,

Rodrigo


Tags: confluence-administration
How to grant write-permissions to single child page only?
Asked by Hanna Kutkowska:

Hi,   
let's say I have space with lots of pages and their child pages. Users of this space should have view access only to whole space. But I want to grant one of the person from this group edit access to one child page only (i.e.Child Page 5).

Granting write-permissions for the whole space and then remove write-permissions for all other pages but the specific ones seems to be kind of overkill if you want only grant write-permissions to 2 pages while the whole space consists of possible hundreds of pages. Could you please advise?

Space Example:

\> Main Page 1

* Child Page 1
* Child Page 2

\> Main Page 2

\> Child Page 3

\> Child Page 4

\* Child Page 5

\> Main Page 3

\> Main Page 4


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Unfortunately, the only way is to grant permission to the space and restrict everything except the child page.

comments: author: Hanna Kutkowska
body: Thanks Jobin. Do you know maybe if Atlassian is planning to add such a feature in the future?


author: Jobin Kuruvilla [Adaptavist]
body: Not sure. You might want to check out jira.atlassian.com to find existing feature requests and add one if you don't find one. I am sure this is requested before.


author: Davin Studer
body: If you use the [Confluence Command Line Interface](https://bobswift.atlassian.net/wiki/display/CSOAP/Confluence+Command+Line+Interface) you could automate adding the restrictions to all of the pages on a scheduled basis. That way any new pages will get the restriction if you forget to add it manually. And then on the one page that the users should have access to you could add that restriction as well.


Tags: confluence-administration
In Confluence--moving from space to space/links
Asked by Michael E Bowman:

I am new to Confluence--working on a project for a client. I had the following 2 questions:   

1-If the client uses multiple spaces, is is possible to move a page from one space to another?  
If possible, that could be done by the administrator of the site?  

2-Is is possible to create links that would direct a user from a page from one space to another page  
in the second space? If so, how could that be done?  

Thanks,

Mike Bowman


Answers:
author: Nic Brough -Adaptavist-
body: 1. Yes. In fact, any user can move a page as long as they have the right to **edit** that page in its current space, and the permissions to **create** pages in the target space. (Those are the same permission, but on two spaces)
2. Yes. You can specify links as \[ my link \] in the body of a page. There's also other sneaky options like "include content of page X here in page Y"
Host redirection
Asked by Christof Jegen:

Hello together

Our customer is running JIRA and Confluence on the same Machine (Windows 7). JIRA with port 8080 and Confluence with port 8090. Now he wants to type JIRA or confluence in his browser to get to the right portal. DNS records are existing, but of course the Port-Redirection is somewhere configured in apache tomcat, but where? And what do i have to configure?

Thanks for your answers.

Christof


Answers:
author: Christof Jegen
body: thanks for the very fast answer :smile:

that's not exactly what i mean. other way :smile: is it not possible to config apache, when the url is "wiki" then it has to start the site with port 8090 and when the url is "jira" to go to port 8080?

comments: author: Nic Brough -Adaptavist-
body: Ahh, you want Apache proxypass functions. You set up one for yourserver/wiki that proxies the requests to yourserver/wiki:8090 and another for yourserver/jira that proxies to yourserver/jira:8080Have a look at <https://confluence.atlassian.com/display/DOC/Using+Apache+with+mod_proxy>


author: Christof Jegen
body: thanks a lot, i have a look at it :-)


author: Nic Brough -Adaptavist-
body: You can't run them both on the same port, you're going to need to use a proxy if they're on the same machine.


Tags: confluence-administration
Confluence upgrade from 5.1.4 to 5.5.6 failed
Asked by F:

Hi Team,

When tried to upgrade Confluence 5.1.4 to Confluence 5.5.6 resulted the below error.

2014-10-23 20:32:41,522 ERROR \[localhost-startStop-1\] \[hibernate.tool.hbm2ddl.SchemaUpdate\] execute Unsuccessful: alter table users add id numeric(19,0)  
2014-10-23 20:32:41,522 ERROR \[localhost-startStop-1\] \[hibernate.tool.hbm2ddl.SchemaUpdate\] execute Column names in each table must be unique. Column name 'id' in table 'users' is specified more than once.  
2014-10-23 20:32:41,522 ERROR \[localhost-startStop-1\] \[hibernate.tool.hbm2ddl.SchemaUpdate\] execute could not complete schema update  
java.sql.SQLException: Column names in each table must be unique. Column name 'id' in table 'users' is specified more than once.  
at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)

<br />

Please find the attached log file for more info. Please find a solution for this ASAP


Answers:
author: Deividi Luvison
body: Hey Fahad,

A few questions :smile::

* Which database you are using?
* Can you upload the complete \<Confluence Home\>\\logs\\atlassian.confluence.log?

Lastly just to let you know this is a forum so we can't premise you any ETA on a root cause/solution.

Thanks and Regards,  
David\|Confluence Support Engineer
Having trouble establishing an Application Link between jira and confluence
Asked by Niharika Shrivastava:

Hi!

I am trying to establish an application link between JIRA and confluence, both are on same server and listening to port 8080 and 8090. However I am getting the error :

`javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException`

The server on which both the applications are installed has expired certificate (which could be a probable issue), please correct me if I am wrong.When we access the applications thourgh browser they first give a security warning.

Is there any workaround possible to setup a link between both the application


Answers:
author: David Di Blasio
body: Sounds like your SSL cert isn't in the keystore. Easiest way to fix this would be to install the SSL plug in as it will automatically import the certificate during the SSL handshake. <https://marketplace.atlassian.com/plugins/com.atlassian.jira.plugin.jirasslplugin>The following article has some more information on this scenario if you're interested. <https://confluence.atlassian.com/display/JIRAKB/Unable+to+Connect+to+SSL+Services+due+to+PKIX+Path+Building+Failed+sun.security.provider.certpath.SunCertPathBuilderException>T


author: Nic Brough -Adaptavist-
body: Yes, you need a valid certificate.

comments: author: Niharika Shrivastava
body: Hi Nic, thanks for responding. Is it completely not possible without a valid certificate? is there a work around possible.


author: Nic Brough -Adaptavist-
body: Remove SSL from the system.


Tags: application-link

jira
"Don't show again" automatically checked
Asked by Vitor LC:

Hi.

Is there anyway of having the "Don't show again" option automatically checked at the "What's new" dialog?

Thank you.


Answers:
author: Guilherme Nedel [Atlassian]
body: Hello Vitor, there is a way to disable the add on wholetogether, browse to \<your_domain\>plugins/servlet/upm/manage/all#manage select System from the dropdown menu, search for *Confluence What's New* and select *disable.*

comments: author: Vitor LC
body: Hi Guilherme. Thank you for your reply.In this case I would like to present the What's New to the user just once by default. That is why I would like to have the option automatically checked. Do you know any way of doing it (or any other for this purpose)?Thank you.


Tags: confluence-administration
The user cannot login in confluence-3.2.1_01?
Asked by Willam Won:

The user is normal in LDAP,but can not login in confluence-3.2.1_01?what can i do for solving this problem?


Answers:
author: Nic Brough -Adaptavist-
body: What's the difference between their account and one that can log in? Groups?

What does the log file say when they try to log in?

What error message do they get on screen?

comments: author: Willam Won
body: 1.What's the difference between their account and one that can log in? Groups?The account is the same user comparing with LDAP,because the user sychronized from LDAP.2.What does the log file say when they try to log in?Where to view log file? Can you show the path to view log file?3.What error message do they get on screen?Always prompted to enter verification code.


author: Nic Brough -Adaptavist-
body: 1. No, what is the difference between an account that can log in, and one that can not? Look at two different accounts, not the same one. E.g. I cannot log into your system, but you can. What is the difference between my account and yours (obviously, I don't exist in your LDAP, but that's obvious)2. Have a look in the system information page under admin - that will tell you where the log is3. What do you mean by "verification code"? Their password? Does it loop three times and then ask them for a Captcha? Or have you some form of 2-factor authentication with a verification code?


author: Willam Won
body: The user has sychronized from LDAP.


Tags: confluence-administration
Different domain for customer on confluence instance
Asked by Naama Lev:

Hello all,

I would like to provide our customers accesses to our confluence instance,

However I would like to provide them limited access, and if possible even to separate the database and build them a separate domain

Can you please let me know what is most recommended way to do it?

Thanks

Naama


Answers:
author: Nic Brough -Adaptavist-
body: You don't do it with separation like this.

Confluence has one database. You might do clever things in the background with servers, database schemas and so-on, but whatever you do with that, Confluence reads and writes from/to one single data source.

The "domain" is even more simple. When you use Confluence, it has a "base url" which is the domain and (optionally) a path with in the domain. It has one base url, no more, and no less. There's no way to put it multiple domains because it uses a single domain.

Now, that said, you have a LOT of control within the application. Put your customers into the "can log in" group (usually confluence-users) and then add them to the Space(s) you want them to have access to. Do not add them to the Space(s) they should not have access to. You will probably need to check over the usage of "contluence users" to make sure it's not letting the wrong people into Spaces it shouldn't, but once you've done that, there's not much else needed.


Tags: customer

domain
Uploading jpg files into Confluence
Asked by Michael E Bowman:

I am new to Confluence. When I have uploaded Word documents that contain jpg files, and then look at the  
images in Confluence after upload, those images are not as sharp as the image that was uploaded from the Word document--it is sometimes hard to read text or get exact detail.   

I am getting a fuzzy looking picture. Is there a way to prevent this?


Answers:
author: Davin Studer
body: Not really. Ideally, the goal would be to create real wiki pages instead of uploading Word documents and displaying them in the wiki. If you really need a Word document then you can export the real wiki page to Word or if you need a less editable version then you could export to PDF. Confluence does a fair job of rendering Word, Excel, PowerPoint, and Acrobat files, but it isn't any of those programs so it cannot do all of the features of those programs.
Page versions out of sync with diagrams / images
Asked by meirionhughes:

I have a requirement that any page edits are tracked and as such if I revert to a specific version then all images and diagrams are the same as they were in that version.

For example, Lets say I have a diagram (via any addon it seems) on a page. If I edit the diagram I can get a new page version. But if I go back to the first page version the diagram is of the new version, not the old. All of the popular diagram editor add-ons exhibit this flaw. And from what I've read, its a problem with confluence.

Without the ability to restore the true version of a page, having our documentation on confluence would be effectively useless because we would fail the audit requirement set in UK quality standards (iso 9001).

Is there any way to fix this?


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

It seems that for some add ons (such as Gliffy), the diagram is not versioned as we can see in this other answer:

<https://answers.atlassian.com/questions/55110/how-to-keep-the-versions-of-gliffy-diagrams-in-sync-with-the-wiki-page-versions>

It seems this is not available at the moment. It might be a good idea to check with the plugin vendors if they have any other alternative for this behavior.

Cheers,

Rodrigo
Revision control for drawings?
Asked by meirionhughes:

Am I right in thinking there is no version control for editing diagrams?

I have a page with a diagram, and if I edit that diagram it changes in all previous page versions too...


Answers:
author: Boris
body: Draw.io for Confluence Server plugin adds version control for diagrams starting from version 5.1.0.0.

More on that [here](https://support.draw.io/display/DFCS/2015/05/27/Revision+handling+in+draw.io+for+Confluence+Server+5.1).


author: Rodrigo Girardi Adami
body: Hi Meirion,

In confluence you can only control the page versions. As for diagrams, if you delete and add a new diagram, then you will create a new version for the page and can compare them afterwards. But, AFAIK, there's not specific diagram version control.

Cheers,

Rodrigo


author: Davin Studer
body: Well, sort of. The attachment is versioned, but the pages all point to the most recent version. On the attachments page next to the diagram attachment file there is a little arrow on the left. If you click it you will see the versions. As for getting the page to show the version that was in use when the page was created/updated ... I don't know that that is possible.


Tags: addon-com.mxgraph.confluence.plugins.diagramly
Gilly synchronization fails
Asked by Mikhail Sukmanov:

Hi,

We want to add a Gilly plugin (EduBrite) and have configured syncronization in wiki and in our microsite according to the Gilly instruction. However syncronization failed. We got the following API errors in a Gilly monitoring tab and we have no idea why. We would much appreciate if you could give us advice. API errors.JPG  
[](https://community.atlassian.com/t5/Confluence-questions/Gilly-synchronization-fails/qaq-p/331481?attachment-id=8236){#link_11894a95c69403}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/55944/1/API%20errors.JPG){#display_11894a95c69403_0}


Answers:
author: Ajay Upadhyaya
body: Hi, to do the user-sync from Confluence, make sure you have an existing user with same username (as your current confluence username you are logged in with) in EduBrite LMS and that user has admin role in the LMS.

Reference is available in this article - <http://support.edubrite.com/oltpublish/site/cms.do?view=gilly_usermgmt>


author: Rodrigo Girardi Adami
body: Hi Michael,

I can see some Unauthorized errors in the screenshot. Could it be the some permission issue? I suggest to check the passwords and usernames in the plugin.

It should be a good idea to check with the plugin support if they know what could be happening.

Cheers,

Rodrigo
send email to page plugin - spam from LinkeIn
Asked by Consu:

Hello all,

I wonder if anything like this ever happened to you. I use the Plugin Email To Page and recently I started to receive notifications from LinkedIn ("misterxyz what to add you to his network" kind of notifications)!

Now, I tried to get rid of this things on LinkedIn platform, but they keep crawling in!

Have anyone ever got a problem like this? Any clue how can I solve the issue without having to change the email address used in the plugin?

thanks all for the help!


Answers:
author: Davin Studer
body: You could try putting a spam filter in front of the email receiving system. But ultimately that may not be 100% effective. If you really want to stop it you'll probably need a different email address. You should make it something very obscure so it won't happen again in the future.

Another option, depending upon your email platform, would be to set up an email rule to delete anything that doesn't come from a certain list of email addresses.

comments: author: Consu
body: Thanks David! I will try some spam filter :smile:


Tags: confluence-administration
MS SQL EXPRESS WITH CONFLUENCE
Asked by DM:

Hello, is it possible to connect confluence with a MS sql server 2008 r2 EXPRESS?  


Answers:
author: Wayne Wong
body: Hi Daniel,

Yup, MS sql server 2008 r2 EXPRESS is compatible and I am using the same version :wink:

Thank you.

<br />

Regards,

Wayne Wong


author: DM
body: Thanks but there isn't wrote if its compatible. Only whcih sql server, not which edition


author: Udo Brand
body: see here:<https://confluence.atlassian.com/display/DOC/Supported+Platforms>


Tags: ms-sql
Is it possible to search and replace for a group of pages in confluence?
Asked by Naama Lev:

Hello all,

Is it possible to search and replace for a group of pages in confluence?

Thanks

Naama


Answers:
author: Stephen Deutsch
body: Hi Naama,

The only way I am aware of that is currently available is through the Confluence Command Line Interface (CLI):

<https://bobswift.atlassian.net/wiki/display/CSOAP/How+to+globally+search+and+modify+content>

Unfortunately, it's a paid plugin. Versions prior to 3.0 are free, but not guaranteed to work on newer instances of Confluence.


Tags: replace

search
Search Section Headings
Asked by J:

Hi,

Is it possible for section headings to come up in the Quick Search box?

At the moment it is just picking up the Page Title?

Note: I am using Zen Foundation.

Thanks.


Answers:
author: Darryl
body: Hi Jennifer,

Currently the Confluence search index is structured to returns pages, blogs, attachments, and other "content objects". There is no facility to subdivide results into sections.

Cheers,  
Darryl


Tags: addon-com.zenfoundation

confluence-administration
Confluence 5.4.4 - Change multiple usernames
Asked by Polly Nuth:

I know that we are able to change the username via the web interface in Confluence 5.4.4. However, I would like to script the username change for 300+ users.

Does anyone know which tables will need to be modified for a username change?

We are in the process of adding LDAP and would like to clean up the "non-standard" usernames prior to attaching to LDAP.


Answers:
author: Polly Nuth
body: I have seen that article and I do not believe it is valid for newer versions. If you look at CONTENT.creator, you will see that the data is not plain text as the article suggests.


author: Wayne Wong
body: Hi Polly,

There is one document [here](https://confluence.atlassian.com/display/CONFKB/How+do+I+change+a+username+prior+to+Confluence+5.3) which might able to help you, but this is prior to Confluence 5.3.

I strongly suggest you to test in out on a stagging/test environment before you doing this.

Please kindly backup your database before you modify any data from the database as well.

Thank you.

Regards,

<br />

Wayne Wong


Tags: confluence-administration
Can I limit user mentions per space?
Asked by Patrick Rice:

We've recently rolled out Confluence at a company-wide level, and are working on allowing external access to our Confluence environment to our customers. The problem is that our customers don't necessarily know about one another, and our executive team is concerned about exposure between customers.

While spaces have a great permission system set up, I can't seem to stop users from mentioning each other in different spaces. This means that one customer could mention a user from another customer, essentially showing our customers one another.

That leads to my question - is there a way to limit user mentions per space to ensure that when a user is only allowed to see and edit a single space, they can only mention a subset of users?

Thanks,

Patrick


Answers:
author: Andrew Wolpers [BlackPearl PDM]
body: Unfortunately the only way to limit user mentions is through the global permission "Browse Users," which is sort of an all or nothing option that is no way restricted on space.

It looks like some people have had very similar concerns as yours, with the same goal. Check out [CONF-1882](https://jira.atlassian.com/browse/CONF-1882) for the status of what Atlassian is trying to do about it :smile:

EDIT: After reading the comments on CONF-1882, it looks like Appfusions has created a plugin for this: [http://www.appfusions.com/display/PPARTS/Documentation#Documentation-What'sNewinVersion2](http://www.appfusions.com/display/PPARTS/Documentation#Documentation-What). If you're open to using a plugin to achieve this, the plugin doesn't look half bad. But, I personally have never used it.


Tags: confluence-administration