youngmon/atlassian-qna huggingface dataset:
Can I extend confluence security to cover my external javadoc website?
Asked by Peter Kahn:

Hi all,

I want to publish my javadoc but make restrict access to my confluence users only. I know I could use LDAP and then hook apache and confluence into it. However, then I'd need to find a new mechanism to allow users to change their passwords and override confluence's change password links to use the new mechanism.

Is there a way for other applications to subscribe to confluence security? I thought that confluence and or jira could share authentication which each other even without crowd.

Can I get apache to understand confluence access control and use the users/groups in its access control file?

Thanks

Peter


Answers:
author: Matthew J. Horn
body: I blogged about a possible solution here:

<http://www.confluenza.com/2013/01/04/protect-static-html-pages-using-crowd-and-confluence/>

It ties into Confluence's seraph auth scheme and I think works independent of whether you use Crowd or not.

comments: author: Matthew J. Horn
body: Glad it worked for you. Took me a while to figure out, and now I can't live without it. :)


author: Peter Kahn
body: Excellent. I can access the files only when logged in only after

* store my files in confluence/mycontent/javadoc
* add the following to confluence/WEB-INF/classes/seraph-paths.xml

\<path name="javadoc"\>  
\<url-pattern\>/mycontent/javadoc/\*\</url-pattern\>  
\<role-name\>confluence-users\</role-name\>  
\</path\>  


author: Peter Kahn
body: Now, all I need to do is to get the CSS working so javadoc looks as pretty as it should


author: Peter Kahn
body: Matt, have you worked this kind of content into confluence search?


author: Matthew J. Horn
body: No, that's a sticking point. Right now, we have Confluence search for the doc content and use Doxygen's built in search for the API docs. The latest thinking here is that we'll have to use a search appliance or third-party solution to get "federated" search. If you figure something out (I saw your question about search elsewhere on this site), please post a solution.


author: Peter Kahn
body: Will do. I'm in a unique situation. I can easily use attivio intelligence engine to search confluence and other data since we produce aie. We already have an eat-your-own-dogfood app which does this for our internal site and I got an answer to my question about overriding confluence search box behavior. So, I suspect I'll setup an instance of our product to index our external confluence and other product related information and use that to populate search results.


author: Matthew J. Horn
body: \<Napolean Dynamite voice\>Lucky!\<...\>


Tags: access

external
Remove SiteSpaces from confluence Dashboard
Asked by Vishal Rekala:

How do i remove "SiteSpaces" section from Confluence Dashboard?


Answers:
author: hsuhailah
body: To remove it, you'll need to uninstall the plugin but if you needed the functionality, you can try to hide it from the dashboard using a CSS/JS which can be configured under Confluence Admin \> Stylesheets

comments: author: Vishal Rekala
body: Hanis - I don't see any stylesheets under "Confluence Admin/Stylesheets"

Do i need to write a new CSS?

Thanks!!!


author: hsuhailah
body: Yes, you'll need to write a new CSS/JS that hides it. I can't specifically tell you how to do this as I do not have that plugin installed and tested but you can refer to this document as guidelines: <https://confluence.atlassian.com/display/CONFKB/How+to+Hide+Elements+in+Confluence+Using+CSS+or+JavaScript>


author: Bruna Griebeler
body: Hi Vishal

Have you tried to customize the confluence/decorators/includes/space-navigation.vm?

Try to comment or change the content of this file so the spaces do no appear on the dashboard anymore.

Hope it helps!

Kind Regards

comments: author: Vishal Rekala
body: Hey Bruna -

This is what i see in space-navigation.vm page. Do i need to comment entire page??

#if (!$mode.startsWith("create-")) ## don't render space links for create-page, -blogpost, -comment.

\<content tag="content-navigation"\>

\<div id="navigation" class="content-navigation view"\>

\<ul class="ajs-menu-bar"\>

#menuMacros_renderAddMenu()

\</ul\>

\</div\>

\</content\>

\<content tag="tab-navigation"\>

\<div id="tab-navigation" class="aui-tabs horizontal-tabs"\>

\<ul class="tabs-menu"\>

#foreach ($item in $webInterfaceManager.getDisplayableItems("system.space", $action.webInterfaceContext))

#if ($context == $item.key)

\<li class="menu-item active-tab"\>

#else

\<li class="menu-item"\>

#end

\<a #if($item.link.id) id="${item.link.id}-tab"#end href="$item.link.getDisplayableUrl($req, $action.webInterfaceContext)"\>\<strong\>$item.label.getDisplayableLabel($req, $action.webInterfaceContext)\</strong\>\</a\>

\</li\>

#end

\</ul\>

\</div\>

\</content\>

#end

Thanks!!!


author: Vishal Rekala
body: I am using subspace Add-on, so that is the reason I would like to get rid of "SiteSpaces" section from Confluence Dashboard.


Tags: confluence-administration
Can I replace confluence seatch box with an external search engine?
Asked by Peter Kahn:

How can I put my custom search engine in place of the confluence search engine?

I have an external search engine that indexes both confluence and external sites, such as my javadoc. I used refinedWiki to add an additional search box for my users. However, I'd like to replace the standard confluence search box with my search.

Is it possible to knock out the confluence search box and replace it with my own or redirect the confluence search box or augment it via an api?

Thanks

Peter


Answers:
author: Amalia
body: The simplest and easiest way I can think of is to replace the *action* attribute in the form tag of the search box using JavaScript:

```
&lt;script&gt;AJS.toInit(function(){    AJS.$('#quick-search').attr('action', 'test.jsp');});&lt;/script&gt;
```

Another way is to remove the #quick-search and prepend your own search box

```
&lt;script&gt;AJS.toInit(function(){    AJS.$('#quick-search').remove();    AJS.$('.aui-header-inner .aui-header-secondary .aui-nav li:first').prepend('add your searchbox here');});&lt;/script&gt;
```

comments: author: Kavitha
body: Hi [@Peter Kahn](/t5/user/viewprofilepage/user-id/518652)

and

[@Amalia](/t5/user/viewprofilepage/user-id/781581)

We are also having similar requirement, is it possible to share the code to call the external search engine and format the search results in the confluence please.

Thanks in advance,

Kavitha


Tags: search
Community Bubbles doesn't work after upgrading
Asked by Jonathan Simonoff:

Since upgrading to Confluence 5.1.3, we haven't been able to get community bubbles to work. The commands to change a space into a community are there, but even after doing that, the forum macro doesn't appear in the macro browser, and putting it in via wiki markup gives a "macro not found" message.

The license is still there. I tried uninstalling and re-installing, with no result.

In fumbling around the the web, I ran across that something called "Community Forums" is a paid Adaptavist product. Has Bubbles been replaced by that, so it no longer works? It would be nice if there were something on the Adaptavist site or the Atlassian plugins site that said that if it is true.


Answers:
author: Svante Gustafsson Bj?rkegren
body: Hi Jonathan,

Yes, Adaptavist splitted the Community Bubbles plugin when they started to support Confluence 5

I ran into exactly the same issue a couple of months ago. This was the reply from Adaptavist:

In the Confluence 5 version of Community Bubbles, we have decided to  
separate out and enhance the forums capability as a brand new plugin;  
Community Forums. To enable us to maintain the forums capability with  
patches, enhancements and a full support service, we will be charging  
for the new Community Forums plugin. The other part of the plugin  
remains free(Community Bubbles).  
There isn't any comparison sheet available for these plugins, but as  
it is written above, all the forum related macros are splitted out of  
Bubbles and placed in Forums. The functionality of Community Bubbles  
is different than in Community Forums, we are not planning to  
deprecate any of those.

To keep using the forum related stuff in the old Community Bubbles plugin you will need to purchase the Community Forum plugin.

Kind regards,

// Svante


author: Nic Brough -Adaptavist-
body: There is an announcement/blog at <http://www.adaptavist.com/w/community-forums-for-confluence-community-bubbles/> which confirms what you suspect about the replacement of Bubbles with Community Forums

On the problem side, as Zulfadli says, start with a look at the version of the plugin, and what version of Confluence did you come from?


author: Zul NS _Atlassian_
body: May I know you have upgraded from what version to Confluence 5.1.3? Along with Community Bubbles version.


Tags: confluence-administration
how do I add a user?
Asked by Julio Valdez:

I thought I had admin privileges to add a user (confluence) but I don't see this anywhere. I'm covering for the admin in charge of normally handling these requests. How can I figure out if he granted me admin rights?

Thanks in advance.


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Are you able to see the "Confluence Admin" menu? You should be a Confluence Administrator or System Administrator before you can add users.

comments: author: Julio Valdez
body: I don't see a "confluence admin" menu. How would I be able to know if I'm a sys admin? I thought I was :-(


author: Jobin Kuruvilla [Adaptavist]
body: If you don't see it, you are most certainly not an admin. I suggest you ask the other admin, if there is any way to reach him!

If not, you might want to try this, provided you have access to the database:

<https://confluence.atlassian.com/display/DOC/Restoring+Passwords+To+Recover+Admin+User+Rights>


author: Adam Wong
body: Can you see a gear icon on the upper right? That's the confluence admin menu.


author: Julio Valdez
body: Thanks Jobin Kuruvilla
Can the meta http-equiv="X-UA-Compatible in the header be changed in Confluence?
Asked by Christopher Meemken:

Due to some browser comaptibility issues with a recent IE 10 rollout I need to set the browser content comaptibility mode for IE to IE8 for our Confluence version 4.3.7. I thought adding custom HTML to the header might do it but it's my understanding that once the browser mode is established submitting the parameter again will not change the mode. Any ideas if this can be done?

Thanks in advance

Regards,

Chris Meemken


Answers:
author: Christopher Meemken
body: Amalia,

Thanks for the reply. After some review in the developer forums on how Confluence is structured I was able to find where I could change the \<meta http-equiv="X-UA-Compatible" content="IE=edge ,chrome=IE7"\> tag whihc sets the document modes for the users browser session. I change the IE=edge to EmulateIE9 and it solved our issue with our browser version until we can upgrade Confluence.

Regards,

Chris Meemken


author: Amalia
body: Since the meta tag that you added into Custom HTML will not be loaded first, then try to add this into **Confluence Admin \> Layouts \> Main Layout (edit)** . You can add this tag right after the *\<head\>* tag.

Please note that this will only works in pages and spaces using Global \& Look theme. The login and Admin pages are not based on this layout, but I don't think this should be a big problem :)


author: Christopher Meemken
body: After some review in the developer forums on how Confluence is structured I was able to find where I could change the \<meta http-equiv="X-UA-Compatible" content="IE=edge ,chrome=IE7"\> tag whihc sets the document modes for the users browser session. I change the IE=edge to EmulateIE9 and it solved our issue with our browser version until we can upgrade Confluence.


author: Christopher Meemken
body: After some review in the developer forums on how Confluence is structured I was able to find where I could change the \<meta http-equiv="X-UA-Compatible" content="IE=edge ,chrome=IE7"\> tag whihc sets the document modes for the users browser session. I change the IE=edge to EmulateIE9 and it solved our issue with our browser version until we can upgrade Confluence.


Tags: confluence-administration
How can I add my javadoc site to confluence search?
Asked by Peter Kahn:

We want our published javadoc to show up in confluence searches and be governed by our confluence access controls. At present, we convert the javadoc into space backup xml and import it. This isn't ideal since the formatting is a little off.

Is there a way to have an external javadoc site be searchable / displayed only through confluence?

Thanks

Peter


Answers:
author: Matthew J. Horn
body: Follow up to this. We're about to start using the Google Custom Search Engine (CSE) in our Confluence instance. We're replacing the build-in Lucene search with this. It costs a few hundred dollars a year, but the result is great.


author: Matthew J. Horn
body: I'm very interested in knowing if you find a way to do it. Our site has our usage doc in Confluence and API docs from Doxygen (and JSDoc). Doxygen and JSDoc have their own "search" functionality.

I researched this a few months ago and did not find any good solutions. The searches are basically silos. If there is a way to point Lucene towards external content, I'd love to know!

The conclusion I reached was that we could a google search appliance for federated search.

comments: author: Peter Kahn
body: There's a javadoc plugin but the highest confluence it supports is 4.15


Tags: javadoc
Adding a new button to the header navigation
Asked by MarkC:

In the default Confluence theme in 5.1.2, I found this article (<https://confluence.atlassian.com/pages/viewpage.action?pageId=358908020>) that tells how to add a new button link to the top of the header. However, it adds it after the Create button. Is there a way to change where the button is displayed? For example, display the button between the site logo and the Spaces button?


Answers:
author: Amalia
body: You can use prepend() instead of append()

```
&lt;script&gt;AJS.toInit(function(){    AJS.$('.aui-header-primary .aui-nav').prepend('&lt;li&gt;&lt;a href="http://www.atlassian.com" class=" aui-nav-imagelink"&gt;Atlassian&lt;/a&gt;&lt;/li&gt;');});&lt;/script&gt;
```
Controlling bullet text formatting through stylesheet
Asked by b:

Hi,

I'm trying to improve the line spacing between bullets. All other content in the space looks fine, but there's not enough space between bullets.

I assumed that bullet text would be controlled by \<ul\>, but my stylesheet includes \<ul\> along with all the rest of the styles (which, as you can see, only affects font-size):

```
.wiki-content,       .wiki-content p,  .wiki-content table,       .wiki-content tr,       .wiki-content td,       .wiki-content th,       .wiki-content ol,       .wiki-content ul,       .wiki-content li {           font-size: 14px;  }
```

Does anyone know what I should add to my stylesheet?

Thanks,


Answers:
author: b
body: The "people with the real power the change things" haven't gotten to it yet, so for now I'll assume that this can be controlled at the site level and close the question.

Thanks


author: Amalia
body: I would recommend you to use main-content instead of wiki-content. Only the bullet style for the page and blog contents will be affected

```
#main-content li {margin-bottom:10px;}
```

comments: author: Amalia
body: Which confluence version are you using? Are you using documentation theme? If you are using doc theme, then you'd need to apply it in the space level

Try to also see if this works

```
#main-content li {margin-bottom:10px !important;}
```


author: b
body: Thanks.

I tried your suggestion (trying 50px just to be sure), but for some reason there's still no change. I removed li from the .wiki-content settings, but is it possible there could be a setting somewhere else that'd in conflict?

Thanks


author: b
body: You are correct that we're using Documentation theme (and Atlassian version 4.3.7) - so I suppose I'll have to get the people with the real power to change things at the site level. :)

"!important" didn't do the trick.

Thanks for you help!


author: b
body: <br />

```
We're still having trouble: we've added this:
```

```
#main-content li { margin-bottom:10px !important; }
```

```
to the site stylesheet and removed any reference to <li> from the space stylesheet and we're still unable to change the spacing.
Thanks
```

<br />


Tags: confluence-administration
I just upgraded confluence from 5.1 to 5.2.3 and get the error "confluence will not start up because the build number in the home directory [4215] doesn't match the build number in the database [3281]." on startup
Asked by Bill Bernhardt:

Error message =confluence will not start up because the build number in the home directory \[4215\] doesn't match the build number in the database \[3281\].


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

This is actually a known issue and we have a [KB](https://confluence.atlassian.com/display/CONFKB/Confluence+will+not+start+up+because+the+build+number+in+the+home+directory+doesn%27t+match+the+build+number+in+the+database,+after+upgrade) for that.

The workaround would be:

1. Backup Confluence
2. Shutdown Confluence
3. Execute this SQL query  

   |---|------------------------------|
   | 1 | `DELETE``FROM``CONFVERSION;` |

4. Restart Confluence

I hope this helps!

Rodrigo

comments: author: Bill Bernhardt
body: Thanks Rodrigo.

In my case that did not seem to help and since my maintenance window was almost over, I had to fall back to confluence 5.1.


Tags: upgrade
jira issues macro - how to make it searchable
Asked by francis:

We are looking for a method to make the results of a jira-issues macro searchable by confluence.  
Is there a way to extract the JIRA information and include it on a confluence page such that it is searchable ?


Answers:
author: hsuhailah
body: Perhaps you can try out the same method suggested for include macro and apply it for JIRA issues macro and see if that would work. Here are the links:

* <http://ffeathers.wordpress.com/2011/05/15/making-the-include-macros-content-appear-the-confluence-search-results/>
* [https://jira.atlassian.com/browse/CONF-19054?focusedCommentId=248645\&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-248645](https://jira.atlassian.com/browse/CONF-19054?focusedCommentId=248645&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-248645)

This is basically done by installing Bob Swift's Cache plugin. Then wrap your include macros with the {cache} macro, using the "index=true" parameter to make the content of the include macros searchable.  

```
{cache:index=true}{include:mySPACEKEY:My page name}{cache}
```


Tags: confluence-administration
Wrong Standard Icons in Conf 5.2.3 with IE9
Asked by Bj?rn Eitmann:

Hi\*

Instead of standard icons like "open notifications", "administrator" and "help", were shown letters like D, B and H in the MS Internet Explorer 9.

Best,

Bj?rn


Answers:
author: Jason Plumhoff
body: It looks like there may be multiple causes... Check this too:<https://answers.atlassian.com/questions/159872/icons-on-confluence-menubar-are-replaced-by-letters-in-ie8-ie9>


author: Jason Plumhoff
body: It looks like there may be multiple causes... Check this too:<https://answers.atlassian.com/questions/159872/icons-on-confluence-menubar-are-replaced-by-letters-in-ie8-ie9>


author: RambanamP
body: check this trouble shoot guide

<https://confluence.atlassian.com/display/JIRAKB/Compatibility+Mode+related+problems+on+Internet+Explorer>
Best upgrade path from confluence 3.4.8 to the latest
Asked by Martin Chong:

Hi I'm looking to upgrade our confluence old version 3.4.8 to the latest. Any recommendation for the smoothest path? Thanks.


Answers:
author: Septa Cahyadiputra
body: Hi Martin,

You might want to try the following path. Please note that this is one of the safest path which require some times and checkpoints to avoid issues:

1. [Completely backup](https://confluence.atlassian.com/display/CONF34/Production+Backup+Strategy?src=search) you current Confluence
2. [Build a staging server](https://confluence.atlassian.com/display/CONF34/Migrating+Confluence+Between+Servers?src=search) for testing the upgrade
3. [Upgrade your staging environment to Confluence release version 4.3.7](https://confluence.atlassian.com/display/CONF43/Upgrading+Confluence+Manually?src=search)
4. Check if everything is working fine
5. [Backup your upgraded instance](https://confluence.atlassian.com/display/CONF43/Production+Backup+Strategy?src=search)
6. [Upgrade your staging environment to latest release of Confluence](https://confluence.atlassian.com/display/DOC/Upgrading+Confluence+Manually?src=search)

Hope that help.

Cheers,  
Septa Cahyadiputra


author: Martin Chong
body: Thanks Septa. This item may be closed.


Tags: confluence-administration
Can't embed Youtube Videos
Asked by rainu:

As you can see, the videos are not shown :(

<https://rainus.atlassian.net/wiki/display/QUAL/Create+git+repository>

Also, if i doubleclick on the video in edit mode, then in the edit form, the preview only shows a blank space :(


Answers:
author: Michael Knight
body: This is due to a recent change in Firefox 23 where it will not display mixed-mode content.

See [https://jira.atlassian.com/browse/CONF-30475](https://jira.atlassian.com/browse/CONF-30475%20)for more details.

comments: author: Lena Bosheh
body: I'm not even getting the whitespace meaning that nothing is being added. This is despite seeing the correct video in the preview.

I'm using Confluence 5.2 and Firefox.


Tags: cloud

confluence-cloud
HTML generated for section macro suddenly changed
Asked by Jonathan Simonoff:

A few days ago, we started seeing formatting differences in a number of places in the wiki. I tracked them down, and most involve the section macro. We have a staging server with the same content and software version, and that one does not show the change, so I've been able to compage the generated HTML.

Before, the section macro generated tables. Now, the section macro generated divs that use the display attribute to make them behave similar to tables. This ends up rendering the page differently in certain circumstances, causing problems for many of our users.

My question is: did Atlassian push out some kind of change in the section macro recently that caused this? I haven't been able to determine if someone had installed a plugin update (it isn't clear to me which plugin contains the section macro), and that contained the change, or if this happened some other way.


Answers:
author: Jonathan Simonoff
body: Found the reason -- someone had updated the Layout Macros in our installation. The information in the plugin manager says that the update switches from using tables to using divs.

The problem for us happens because people put text inside the section macro before the first column. That is not a logical thing to do, but before it produced a result people wanted -- the paragraph just appeared above the columns. With the new implementation, the initial paragraph ends up being another column, even though you didn't use a column macro. FWIW, I'd say this is the correct behavior. The prolem comes because LOTS of people got away with doing the wrong thing before, not knowing it was wrong since it looked fine.


Tags: confluence-administration