youngmon/atlassian-qna huggingface dataset:
Basic authentication delegation with TMG
Asked by Ole Erik Skare:

Hi!

Is there someone here using TMG as reverse proxy for access to Confluence?

I can access Confluence through TMG, but delegation of credentials does not work, so I get asked for creds. two times. Once for TMG and once for Confluence. Team Calendar subscription from Outlook does not work because of this.

The listener is set to provide HTTP Authentication Basic, and authentication delegation is set to basic authentication. Somehow TMG is unable to pass credentials to Confluence. I have not done any configuration changes to Confluence with regards to this as I do not know what to do.

Some hints would be appreciated :)


Answers:
author: Manse Wolken
body: Well, a bit late maybe...

But this is how it works:

Client -\> (TMG) -\> (IIS on Confluence Server) -\> Confluence (via AJP)

Confluence uses a custom authenticator which enables it to use the remote-user header (and trusting it fully).

The IIS is for authentication of the user (kerberos or NTLM). The TMG will act as a proxy and thus have the users NTLM or kerberos Session (that is why the user only has to authenticate at the TMG).

A different setup would be:

1. Using Apache or an other kerberos enabled web server
2. Using Plugins to enable Confluence to use kerberos directly. (There is at least one provider, because we use this solution for Jira)

Other solutions are, of course, possible.


Tags: authentication

proxy

reverse-proxy
How do I modify the jdbc connection string for Confluence 4.2?
Asked by Jim d:

We are modifying our postgresql server to listen on port 5433 instead of port 5432, so I need to update the jdbc connection string that confluence uses to connect to our database. Where/How do I do this? Is it the web app's administration interface or just a config file somewhere? The docs only seem to cover this when using the installation wizard, not on how to modify an existing installation.


Answers:
author: Thomas Schlegel
body: Hi Jim,

Have a look at this site: <http://confluence.atlassian.com/display/DOC/Migrate+to+Another+Database>

Best regards

Thomas

comments: author: Jim d
body: Thanks Thomas - that's not \*quite\* the right page, but your answer put me on the right track: [http://confluence.atlassian.com/display/DOC/Migrate+to+Another+Database](http://confluence.atlassian.com/display/DOC/Migrate+to+Another+Database.). If you want to edit your answer I'll mark it as corrrect. Thanks again! --Jim


author: Thomas Schlegel
body: You're welcome :-)


Tags: configuration

database-connection
Confluence says there are 13 registered users, but I don't know who they are or how to find out
Asked by Justin Corcoran:

I have a trial license for 10 users so that I can test out confluence for use with our JIRA instance (which has a 100 user license). On initial setup, I set JIRA as the user management tool, so all users seemed to be synced with Confluence. It also asked which group should dictate who gets access to confluence (or at least that's how I interpreted it) and I set that to jira-users. Now, when I try to create a space, I'm not allowed to because I have too many confluence users. I removed EVERYONE but me and the administrator from jira-users and the License Details screen says I have 13 active users (more than I'm allowed). I don't know why it's not 2 users, and I don't know how to find these 13 users so that I can remove/deactivate them.

As a result of this, I'm basically totally unable to use confluence, as I can't add any new spaces/pages.


Answers:
author: Thomas Schlegel
body: Hi,did you create the group "confluence-administrators" in your Jira instance ?I think you know this site: <http://confluence.atlassian.com/display/DOC/Connecting+to+Crowd+or+JIRA+for+User+Management> ?Good LuckThomas


Tags: user
Broken image appears after save works while in edit.
Asked by Brad Taylor:

I am in EDIT on a page. I COPY an image from a VISIO to the clipboard with a CTRL-C and PASTE it into the confluence page editor. If displays very nicely. I save and the page displays with a pale red box, a dark red circle with white line and the text broken image. I go back into edit, and the same broken image shows. I can not remove it, I must restore a previous page to get rid of it.


Answers:
author: Azwandi Mohd Aris
body: After you saved the page, did Confluence save the image as an attachment?

I think there is possibility that Confluence did not save the image as an attachment, but rather just an embed of an image URL/location.
Subspace Configuration in confluence 4
Asked by MPal Pal:

Is the subspace concept removed in confluence 4? I don't see it around anymore :(


Answers:
author: Azwandi Mohd Aris
body: Are you referring to the [Confluence Subspace plugin](https://plugins.atlassian.com/plugins/de.communardo.confluence.plugins.subspace)? If you have just upgraded Confluence, it's possible that the plugin needs an upgrade too.


author: MPal Pal
body: Yep, you are right. I installed the version for 4.2.1 and it works in 4.2.2 as well.

:)


author: Thomas Schlegel
body: There was never a real subspace Concept in Confluence.btw, in case you don't know: please mark answered questions as answered, so they can better be found by other people.Best regardsThomas

comments: author: MPal Pal
body: unfortunately, there is no plugin for version 4.2.2 :(


author: Joe Clark
body: 4.2.2 is a very recent release and fairly similar to 4.2.1 - it is quite possible that the latest version of the Subspace plugin will run fine with Confluence 4.2.2.


Tags: subspace
Formatting with TaskList task descriptions possible?
Asked by Dave_Harrington:

I'd like to be able to use bold, italics, and color on selected text within a given task description using the Dynamic Tasklist macro... Is this possible?

Thanks!


Answers:
author: Joerg Bencke
body: Yes, just do it.

comments: author: Dave_Harrington
body: ah... i was foolishly using the rich text formatting approach (Ctrl-B for bold, etc) instead of the wiki formating \*bold\*, etc....

thanks!!!!


Tags: confluence-app
Url to ping nodes in clustered confluence instalation - F5 load balancer
Asked by Miguel Martinez:

Hi, I would like to know if there is any url to ping the nodes in order to test the availability.

for example something like

http://{confluence-host}/ping.action


Answers:
author: Andy Brook [Plugin People]
body: Hi, meant to say, forgetting API's etc, for an F5 ping even the site favicon would work?

eg: <https://confluence.atlassian.com/favicon.ico>

comments: author: Miguel Martinez
body: Thanks for you answers. Finally I developed a very simple plug-in which uses the rest api extension and returns a message like:

statuts 200 OK.


author: Andy Brook [Plugin People]
body: fair enough, but for the purpose I think is more than needed, you are testing JVM responsiveness.... In any case, that will do nicely, heck you could even put it up on the marketplace as a an F5 ping responder!


author: Andy Brook [Plugin People]
body: It really depends what you're trying to prove, for F5, you may just want to know if its 'probably' there, you could just pull the favicon, <http://confluence.atlassian.com/favicon.ico> and check for a 200 response, if you want to verify more, then perhaps you could lookup a user...

3.4.5 rest docs are at <http://docs.atlassian.com/atlassian-confluence/REST/3.4.5/>


author: Miguel Martinez
body: Many thanks , but I am using confluece 3.4.5 and it doesn't have it url (buildInfo) available.

How do you specify the result type (json or xml)?, by default is Xml.


author: Andy Brook [Plugin People]
body: I would say the [REST API for build info](http://docs.atlassian.com/atlassian-confluence/REST/latest/) would be relatively light:

<http://localhost:8092/rest/prototype/1/buildInfo>

responding with:

```
{"versionNumber":"4.1.6","buildDate":1329649200000,"buildNumber":"3144","bambooBuildNumber":"${bamboo.buildNumber}","revisionNumber":""}
```


Tags: data-center

load-balancer
Disable watcher notifications for single page
Asked by emddudley:

Is it possible to disable watcher notifications for a single page?

I have a restricted wiki page and when I edit it my changes are emailed out to its watchers. I do not want the changes to be emailed out, just for this page.


Answers:
author: Kay Brown
body: There is a checkbox on the bottom of the page that says, Minor Change? No Notifications will be sent. Check the box.

Regards,

Kay

comments: author: emddudley
body: This works, but does not help when someone forgets to uncheck that box.


author: Mirek
body: If you are administrator of the space you can remove the watchers that are currently watching the page.. (Tools \> Manage Watchers). However I think that is not possible to remove people that are watching the whole space..

Give it a try!

Regards,

Mirek


author: Kay Brown
body: The box does not remain checked. It must be checked again each time a change is made if you do not want notifications sent.

Regards,

Kay

comments: author: Renjith Pillai
body: You should be able to do some tweaking by introducing a javascript to make the checkbox always checked. This [thread](/questions/28999/is-it-possible-to-reverse-the-order-in-which-comments-appear) could help you to explore further.


Tags: restriction

watcher
Move a page from space A to Space B without removing from space A
Asked by MPal Pal:

I want to move a page from one space to another. The confluence's "Move" function removes the page from space A and adds it to space B. Is there a way to copy from space to space easily?


Answers:
author: hsuhailah
body: Perhaps you can try out [Copy Page Tree Plugin](https://plugins.atlassian.com/plugins/com.nurago.confluence.plugins.treecopy) or [Copy Partial Space Plugin](https://plugins.atlassian.com/plugins/com.valiantys.confluence.plugin.copypartialspace).

comments: author: MPal Pal
body: Hi Hanis,

The Copy tree plugin should be idea for my requirement but unfortunately my Easy SEO plugin throws an exception when I try to copy the tree node. :(


author: Thomas Schlegel
body: Hi,

why don't you use the "Copy"-Function ? You can change the space for the copy as well.

Best regards

Thomas


Tags: clone

copy

move

space
Confluence user macro programming
Asked by Rumceisz:

Hi All,

I start writing macros but I don't have a clue to this scripting language. Can you suggest a page, tutorial, etc. where I can start learning?

I saw the Confluence documentation but the most stuff is about configuring and not about how to programming. Or maybe I left something out of consideration.

Thanks in advance!

Rumi


Answers:
author: CharlesH
body: There's also this useful presentation from a previous Atlassian Summit! ;)

<http://www.atlassian.com/company/about/events/summit/2010/presentations/collaboration-and-projects/macros-reports-confluence.jsp>


author: Andrew Frayling
body: Hi Rumi,

These are the docs that I use:

* <http://confluence.atlassian.com/display/DOC/Writing+User+Macros>
* <http://confluence.atlassian.com/display/DOC/Guide+to+User+Macro+Templates>
* <https://developer.atlassian.com/display/CONFDEV/Confluence+Objects+Accessible+From+Velocity>
* <http://confluence.atlassian.com/display/DOC/Examples+of+User+Macros>
* <http://confluence.atlassian.com/display/DISC/Shared+User+Macros>
* <http://velocity.apache.org/>

I find the shared user macros really useful as they're a collection of user contributed macros that you can install, pull apart and tweak to see how they work.

Hope that helps?

Andrew.

comments: author: Rumceisz
body: Hi Andrew,

thanks for the documentation! I try to code for the <https://answers.atlassian.com/questions/54728/display-all-the-groups-users-of-each-space>

Have you had time to this?

Thanks again!

Rumi


author: Rumceisz
body: Confluence macro is written in Velocity, right?


author: Andrew Frayling
body: Hi Rumi,

I have spent some more time on it, but (unless I'm missing something) it's not that straight forward so it's going to take me a while.

And, yup, Confluence User Macros are written in Apache Velocity.

Andrew.


author: Rumceisz
body: Hi Andrew,

many thanks for your help!

Regards,  
Rumi


author: Rumceisz
body: Hi Andrew,

I think I found your macro what I need: <http://blog.networkedcollaboration.com/2012/04/28/confluence-space-administrators-remixed/#comment-4247>

I put a comment there.


Tags: user-macro
Best way to block external access to Confluence Tomcat port?
Asked by Graham Hannington:

I'm running Confluence 4.2 on Windows (this particular Confluence installation is running on Windows Server 2003).

I have followed the [Atlassian documentation](http://confluence.atlassian.com/x/ZaYC) to configure Confluence and the Apache HTTP server so that I can access Confluence via the Apache HTTP server at the following URL (using the default HTTP port, 80):

<http://myserver/wiki>

rather than via the Tomcat port:

<http://myserver:8090>

(I feel slightly unclean quoting those URLs without a trailing slash. Feel free to read those URLs as if they have a trailing slash.)

I am "front-ending" Confluence like this - using the Apache HTTP server - because I am introducing some Ajax queries into Confluence pages (using \<script\> elements inside HTML macros) to a REST API served by a different host. To avoid cross-domain scripting errors, I have also configured the Apache HTTP server as a proxy for that other host.

When a user accesses Confluence via the Apache HTTP server - <http://myserver/wiki> - all is good, because the Ajax queries embedded in the Confluence pages refer to a path on the same domain - [http://myserver/rest/..](http://myserver/rest/...). - thus avoiding cross-domain scripting errors. That is, to the browser - thanks to the Apache HTTP server acting as a proxy - both the Confluence page itself and the Ajax queries are using the same domain.

However, if a user accesses Confluence via the "direct Tomcat URL", those Ajax queries fail.

So, I want to block "external" access to <http://myserver:8090> (that is, access from outside the server; I still want the Apache web server - running on that web server - to be able to redirect to port 8090).  

Using the Windows Firewall to block access to port 8090 seems an obvious choice. Any other recommendations?


Answers:
author: Radu Dumitriu
body: Make confluence to listen only on local interface (127.0.0.1). That's the safest way, if httpd runs on the same machine.

comments: author: glennrees
body: like this <http://www.doublecloud.org/2014/01/tomcat-behind-proxy-how-to-block-direct-access/>


author: Graham Hannington
body: I'm embarrassed to admit I don't even remember asking this question. That example makes sense to me, though. Thank you!


author: parthiban subramaniam
body: On your connector settings add these following attributes

`proxyName`

`proxyPort`

<http://tomcat.apache.org/tomcat-6.0-doc/config/http.html>

think that should do, but i'm not sure check .. something i did looong back
How do I customize the search result page?
Asked by Matthew J. Horn:

I've added custom headers and footers and just about everything else to our Confluence site, but I can't find where I would do this for the SERP (Search Engine Result Page). It picks up global styles just fine, but I want to add the header and footer at the very least. Any ideas? Thanks!


Answers:
author: Matthew J. Horn
body: Well, to edit the layouts, I edited the Main Layout and Page Layout site layouts in the Administration's Layouts section. One big thing was that if you comment out too much stuff, and replace it with custom HTML/Velocity code, you might unintentionally hide important aspects of the rendered pages such as the login form on the login/logout page and the contents of the SERP.

One thing that I ran into multiple times is that no matter how careful I was with opening and closing DIV and #if/#else/#end blocks, there appear to be others that are added either higher up or lower down "the chain" of rendering pages. As a result, you have to be very careful when removing or replacing these sorts of enclosures otherwise you can "break" the engine and get runtime errors.

Because our site doesn't use sidebars, I was able to remove a large swath of the global layout (the entire section inside the "sidebar-container" div.

Also of note is that I removed the "assistive-skip-links" section, even though I'm not entirely sure what they do.

One word of caution. I made a change that prevented the login pages from rendering. Then I went to lunch. When I got back, of course, I could not edit the page again until I logged in again, which caused some problems (obviously). To fix this, I had to edit the DECORATOR table in the database and restore the value of the correct decorator's BODY field to a rolled-back version. The SPACEKEY in this table refers to the space, and when the value is "NULL", it refers to the global space (which I figured out by trial and error).

Anyway, these are just a couple of gotchas. Eventually got it working, but it would be so nice to have layout access to the SERPs and other pages, IMHO.

matt


author: Azwandi Mohd Aris
body: Would it be sufficient to just do it in the Custom HTML configuration at [http://YOURCONFLUENCE/admin/viewcustomhtml.action?](http://YOURCONFLUENCE/admin/viewcustomhtml.action) You can insert custom HTML code at 'the end of the HEAD' or 'At end of the BODY'.

comments: author: Matthew J. Horn
body: Turns out the easiest way to modify the SERP is to muck with the global layouts. Also turns out to be a little dangerous... :)


author: Joerg Bencke
body: So Matthew - what did you learn in Detail ?


Tags: search
Using CSS in Confluence 4.1
Asked by Chris Maynard:

I have just started evaluating Confluence and I am having trouble in understanding how Confluence uses CSS.

I can use the Space Adminstrator page to access the CSS and adjust the Heading styles, but how do I add a style to the CSS so that it shows up in the style selection drop-down on the edit page? Any new styles I add do not appear anywhere.

Thanks,

Chris


Answers:
author: David at David Simpson Apps
body: If for example your custom CSS does this:

```
#com-atlassian-confluence strong { color: limegreen; }
```

You'll need to update the style in the TinyMCE-based editor iframe too for your style to be seen when editing.

This can be achieve doing this in the same stylesheet:

```
#tinymce strong { color: limegreen; }
```

The **#tinymce** selector increases the specificity so that the style is not overridden.


author: Chris Maynard
body: Thanks for the answers guys. I will try out your suggestions.

Cheers,

Chris


author: CharlesH
body: Hi,

Your new CSS styles are available to use in page elements which support CSS parameters (like deck/cards, roundrect, etc) but they won't appear in the drop-down list of styles.

If you want other page authors to be aware of the new styles, you could create a page template which uses them.

I'm sure there will be an existing issue raised on this in the public Jira project for Confluence, as its been a long-standing issue.

Regards,

Charles


Tags: css

editor

heading

stylesheet
CSS to control Space Below Table and next line of text
Asked by Craig Hylwa:

CSS to control Space Below Table and next line of text

![](../../upfiles/Screen_Shot_2012-05-17_at_2.00.04_PM_1.png)


Answers:
author: AndreasS
body: You can use something like

```
.confluenceTable {  margin-bottom: 12px;}
```

for 12 pixels additional space below a table.
is 4.1.9 vulnerable?
Asked by Stephen S. Willey:

<http://confluence.atlassian.com/display/DOC/Confluence+Security+Advisory+2012-05-17>

is version 4.1.9 affected? you say 'All versions of Confluence up to and including 4.1.7 are affected by this vulnerability'. but state that the fix for 4.1 is in 4.1.10.

thanks,


Answers:
author: Przemek Bruski
body: "It has been discovered that 4.1.9 contains an incomplete fix and is still vulnerable to a small subset of the issues above. Namely, a logged in administrator is still able to use the Denial of Service exploit. This is a very small risk in most environments and you may be able to treat 4.1.9 as not affected."

The advisory text is now updated.
CSS Table Width
Asked by Craig Hylwa:

Is ist possible to use CSS in a space to make all tables on pages in that space take up 100% of the widith of the page

![](../../../upfiles/Screen_Shot_2012-05-17_at_2.00.04_PM.png)


Answers:
author: Betsy Ostrander
body: Hi Craig,

You can modify the space stylesheet and include this:

.confluenceTable

{

width:100%;

}

This works with Confluence 4.2.1, would expect it's the same in earlier versions.
Use CSS to increase space below heading and next line of text
Asked by Craig Hylwa:

Currently have h2. styled with this CSS

![](../../upfiles/Screen_Shot_2012-05-17_at_11.24.04_AM.png)

I would like to create more space under the border-bottom before the next line of text

![](../../upfiles/Screen_Shot_2012-05-17_at_11.26.19_AM.png)


Answers:
author: Betsy Ostrander
body: You could try

margin-bottom: 10px;

Actually, 10 is not much, probably need 20 or 30 to make a significant difference.
Is there a Confluence team calendars upgrade path?
Asked by JamieA:

Team calendars can import an iCal file, but the old calendars plugin can't seem to export one. Which tells me there is no upgrade path from old to new. Can that really be true?

Has anyone written something to extract the old calendar data to a format suitable for importing to team calendars?


Answers:
author: hsuhailah
body: You can export the old calendar by clicking on "Download" button and this has to be done for each calendars. We have the documentation to migrate old calendars into Team Calendars here: <http://confluence.atlassian.com/display/TEAMCAL/Licensing+and+Installing+Team+Calendars#LicensingandInstallingTeamCalendars-MigratingfromtheoldConfluenceCalendarplugin>

Hope this helps.

comments: author: JamieA
body: Thanks, don't know why I couldn't find that. It kind of sucks that team calendars could not have an upgrade task to do this.


Tags: team-calendars-for-confluence
Is each Personal Space an actual "space"?
Asked by John Alton:

Is each Personal Space an actual Confluence "space"?


Answers:
author: Nic Brough -Adaptavist-
body: Yes. There's no real difference between a personal space and a shared space. Different defaults, funny name/url, and different search weighting (which is wrong for most Confluence users, but that's a different subject). But still a space.

comments: author: John Alton
body: Thanks for that, Nic.

So is it possible for each Personal Space to use a different theme? And have different security (access/interaction) permissions? (And thanks again, in advance).


author: John Alton
body: Excellent. Thank you!


author: Nic Brough -Adaptavist-
body: Yup, same as shared spaces. You'll find the admin screens are just about identical.


Tags: personal-space