youngmon/atlassian-qna huggingface dataset:
Problems with upgrading Confluence 3.5 to 4.3 - PDF Exports
Asked by Sanet Minnie:

Hi, we cannot PDF large manuals on the 4.3 space we are getting ready for go live on 15 December. When we PDF export smaller manuals, all is fine, but when we export a manual of 200+ pages, it will get stuck at \*Begin conversion of intermediate HTML to PDF\*. It will slow down Confluence to an almost unusable slow state. We do not get any error or notification from Confluence - therefore, after a while (48 minutes+) when I refresh the page, I get this warning note:

{warning}The following error(s) occurred:

Your request could not be processed because a required security token was not present in the request. You may need to re-submit the form or reload the page.{warning}

I have already tried to PDF without any style sheets and we get the same problem.

PDFs are a core part of our delivery to our clients, we need help urgently. Thank you.


Answers:
author: Sanet Minnie
body: We made use of a {pagebreak} user macro that caused the PDF error. We disbaled the macro and added a line in our style sheet :

```
li {  page-break-inside: avoid;}
```

This was a good enough solution for us.


author: Dave
body: Hi Sanet,

It sounds like this might be related to memory issues, can you tail the logs on the server while this is happening to see if you're running out of memory? You might need to increase memory and do this at times of particularly low load.

Also, the Confluence Knowledge Base is a great resource and has this section on issues with PDF - <https://confluence.atlassian.com/display/CONFKB/PDF+issues+Troubleshooting>

Alternatively, you mention providing PDF manuals to your customers - would providing access to Confluence be an option? This would provide the manuals in addition to new opportunities for collaboration.

If you're still having issues and don't see anything in the logs, I would suggest filing a support ticket over at <https://support.atlassian.com>

Best of luck!

-dave


Tags: export

pdf
How do i add users from a specific LDAP group
Asked by James Mason:

Hi, i searched for this and also looked at confluence connecting to LDAP notes, but its still not working.  

At the moment I have the following which is working:  

Base DN: dc=domain,dc=local

Additional User DN: ou=mybusiness

This is pulling all the users from the 'mybusiness' ou.

I want to do this but i only want to pull the users in that ou that are part of the 'wiki-users' group, which is also in that ou under a 'security groups' folder.

MyBusiness

\> Security Groups  
wiki-users  
\>Users

users

Thanks!

Stefan


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: You can add a User Object filter. Something like:

```
(&amp;(objectCategory=Person)(sAMAccountName=*)(memberOf=CN=group-name,OU=OU Name,DC=domain,DC=corp))
```


author: James Mason
body: Sorted, i downloaded apache directory studio and was able to get the corrent syntax for the specific group, thanks


author: Bruna Griebeler
body: Hi Stefan!

As Jobin said, you'll need to create a filter to allow just a few users to login in Confluence.

For more tips of how how to create this filter, you may check the link below:

<https://confluence.atlassian.com/display/DEV/How+to+write+LDAP+search+filters>

Cheers!

comments: author: James Mason
body: Sorted, i downloaded apache directory studio and was able to get the corrent syntax for the specific group, thanks


Tags: ldap
Exporting space as html archive: 8GB .zip file invalid
Asked by Bruce Cran:

I'm exporting some spaces and have one that comes to just under 8GB as an html zip archive. Both Windows and 7-zip report having problems accessing the file: Windows says it's invalid while 7-zip says many of the files use an invalid compression scheme. Is Confluence (4.3.2) able to export large spaces? I notice the 'zip' binary isn't running so I guess it's using ZipOutputStream or similar from Java. In that case, would Confluence be the limiting factor, or would I need to investigate upgrading the JRE?


Answers:
author: Bruce Cran
body: I found the export directory under temp/ so I used 7-zip to compress it instead.


author: Bruna Griebeler
body: Hi there!

You don't supposed to have problems on creating the zip file, unless Confluence shows some errors regarding the creation of the file.

I suggest you to check on your logs if Confluence shows any kind of warning or error that can be causing this.

Also check if the same problem occurs when making the same procedure on a smaller space.

Kind Regards

comments: author: Bruce Cran
body: The smaller spaces don't have the same problem. The warnings/errors I see during export are:

"WARN exportResource There is no download resource manager to export the resource"

and a few like:

"ERROR \[Long running task: Export Space\] \[xhtml.view.macro.ViewMacroMarshaller\] marshal Exception executing macro: toc, with message: \[com.ctc.wstx.exc.WstxLazyException\] com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix "w""


Tags: export
closing the issue
Asked by Johny rao:

closing the issue


Answers:
author: AlysonA
body: Hi Anshul,

Not sure if I understood you correctly, do you mean that exporting a page with a calendar macro embedded does not yield the correct result?

If so, you might be experiencing <https://jira.atlassian.com/browse/CONF-14761>.

Cheers.


Tags: confluence-administration
Web Part Error
Asked by Sam Kenny:

A couple of days ago the connectivty between Sharepoint and Confluence mysteriously failed. At the time we were running 1.2. I have since upgraded to 1.4.9 but the errors persist.

I am running Sharepoint 2010 and Confluence 3.3.

In the Sharepoint Integration Administration page in Confluence I get this error message:

Connection Test: Problem connection to SharePoint (null). Check the atlassian-confluence.log for exception details.

I have attached a copy of the atlassian-confluence.log file with the relevant exceptions.

In Sharepoint I see this: Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type Atlassian.Confluence.SharePoint.UI.WebControls.WebParts.ConfluencePageWebPart, Atlassian.Confluence.SharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=96f82bd35ec392e7 could not be found or it is not registered as safe

<br />


Answers:
author: Joe Clark
body: Hi Sam,

The two errors you are seeing in SharePoint and Confluence are probably unrelated. It looks like your atlassian-confluence.log attachment didn't come through - could you try again? It's a pretty generic error message, so it's hard to know what the problem could be at this stage.

The problem with the "could not be found or is not registered as safe" error message might be related to this knowledge base article - <https://confluence.atlassian.com/display/CONFKB/SafeControl+Entries+for+the+Federated+Search+Results+WebPart+not+Added+Automatically+when+the+SharePoint+Connector+Feature+Is+Installed>

My hunch at this point is that something has happened on the SharePoint side to stop things from working. Do you know if your SharePoint farm had any maintenance performed on it recently? Can you confirm that the Confluence SharePoint Connector's **SharePoint feature** is still installed and deployed to your SharePoint farm?

comments: author: Sam Kenny
body: Thanks for the reply. I have attached the log (atlassian-confluence.log).

Within Sharepoint, when I do a connectivity test to Confluence it shows success. It is Confluence connecting to Sharepoint where the error occurs.

I will investigate the link above though.

Thanks


author: Joe Clark
body: Judging by the contents of your log, it looks like you have installed the wrong version of the SharePoint Connector into Confluence. There are two different copies of v1.4.9 for Confluence. Once copy is for Confluence 3.4+ and one version is for Confluence 3.0 - 3.3.

I would recommend that you un-install the SharePoint Connector from Confluence and re-install it from this link: <https://marketplace.atlassian.com/plugins/com.atlassian.confluence.extra.sharepoint/version/1490>


author: Sam Kenny
body: I could not see the two versions. However I am going to upgrade Confluence to 3.5(.13) and will then see what happens.


author: Joe Clark
body: Great. Let me know if you still have problems.
Protect pages with password - possible?
Asked by Rumceisz:

Hi All,

project leaders need to protect pages with password in Confluence.

I know that there can be restricted a page but our management leaders would like to store important passwords (e.g. database passwords, etc.) in Confluence. But hence they know that we administrators also can read these sensitive date they need a feature.

is there a something like this?? It would be so, like we admins also can see the page but only encrypted. If we add the pw we can then see the content.

Can you please hint a solution?

Thanks in advance,  
Rumi


Answers:
author: Flow M
body: Diging out this question;

since I have found some add-ons and security pages for JIRA,

**I haven't found anything yet for Confluence???**

a) password-encryption for **pages/ares**?

b) password-encryption for custom **fields and/or attachments**?

c) whole database-encryption for **db** (i.e. PostgreSQL )?


author: Bruce Schlueter
body: Not really a solution but perhaps a workaround. Use something like "Keepass" to store the passwords and then upload the password file onto a page. The file can then only be opened if you know the "master password".


author: C. Faysal
body: unfortunately there is no way to protect pages by using a password at the moment

<https://answers.atlassian.com/questions/90297/is-there-any-way-to-password-protect-a-page>


Tags: encryption

password
Confluence Site Backup and Restore, Stuck on Starting...
Asked by Bristow:

I'm currently trying to migrate my test version of confluence to another machine by using the back up and restore method out lined in the [wiki](https://confluence.atlassian.com/display/DOC/Site+Backup+and+Restore%20), and when I try to do setup from restore it hangs on just starting. The only clue I have is the 'error on page' indication in the bottom left hand corner. Please see the screenshot below.

![](http://i49.tinypic.com/282l400.png)

Key points in my scenario are;  
Moving to the same OS  
I'm currently on the trial version  
I'm going from confluence 4.3.1 to 4.3.3  
I'm also switching databases from postgre SQL to mysql  
My xml back up file is 6.5mb  

Any ideas would be greatly appreciated.


Answers:
author: LuizA
body: Hello There,

Analyzing your scenario per your description I would like to comment some points with you in order to try to help:

\* As you're on the version 4.3.1 it's recommended to firstly migrate to the same version and after upgrade your instance from 4.3.1 to 4.3.3, the upgrade steps are the following:

<https://confluence.atlassian.com/display/DOC/Upgrading+Confluence>

\* Another option to migrate your Confluence to another server running the same OS would be the following approach:

<https://confluence.atlassian.com/display/CONF43/Migrating+Confluence+Between+Servers>

I hope this helps, if you need more assistance I would suggest you to raise a support ticket at our [support.atlassian.com](http://support.atlassian.com) and so we will provide a better assistance to your case to solve your problem.

Best Regards,

LJ.


author: Luca Colonnese
body: Getting the same symptom upgrading test environment from 5.8.6 to 6.0.1. Going on a week of trial and error now. Anyone able to resolve this?


author: Bristow
body: In order to get it to work I used a mix of Luis and Muhammad's advice.

I marked Luis answer as correct as I feel the issue was the fact I was going from 4.3.1 to 4.3.3 but surprised a version check isn't applied when trying to restore.

So for anyone with the same problem as me I've installed the same version as before (4.3.1) , then installed an empty version of confluence, restored from the admin section with my newly created admin account and it worked.


author: MuhammadU
body: It would be better if you install confluence first, then upload the backup from admin.


Tags: backup

migration

restore
How can i show page based on options selected by users?
Asked by veera reddy suravaram:

Hello,

I want to show a page based on the options selected by user, for example:

User opens the page i created, an option will be given to him like "are you admin user?" or "are you normal user" based on this selection I want to show the actual page to the user.

Can you please tell me how to create such a wiki pages?

Thanks in advance!


Answers:
author: Steve Goldberg
body: Hi Veera,

Such a thing would require a plugin or a sophisticated user macro. As an OnDemand user you do not have the ability to add User Macros and I am unaware of any plugin that would cater specifically to what you require.

If, however, the users are already divided up Confluence user groups (or you're willing to maintain these groups yourself) then you could use the show-to macro available from the Visibility Plugin (<https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.visibility>) to do this. I'm not sure if this is available to OnDemand users though.

Steve


Tags: cloud

confluence-cloud
clover report not showing method hit
Asked by Prashant B:

Hi,

I am using the trial version of clover 3.1.7 , i run the significant tests but the report doesnt shows the mehod hit inspite many methods were called inside the class it just showed me the class constructor hit.

Thanks,

Prashant


Answers:
author: ramesh butta
body: Hi Prashant

Were you able to circumvent this ..


Tags: cloud

confluence-cloud
I seem to be missing global template options for Confluence onDemand?
Asked by mhare:

I don't have the default global template settings for my installation?

I've looked under administration \> confluence \> look and feel. Nothing there apart from Colour Scheme.  

Currently I have to set my layout for each space, after I've created the space. Not ideal.


Answers:
author: Steve Goldberg
body: Is this feature not prohibited by OnDemand in general? See <https://confluence.atlassian.com/display/AOD/Restricted+Functions+in+Atlassian+OnDemand#RestrictedFunctionsinAtlassianOnDemand-Confluence>


author: mhare
body: Thanks. I did read a post on here by someone else, who had access to this feature. However I'll accept this as my answer. It's an inconvience, but nothing major.


Tags: cloud

confluence-cloud
Product Management 2.0: Summit 2011
Asked by Rahul Tongia:

Hi There,

I want to set up a product management dashboard like

<http://www.standingonthebrink.com/2011/06/atlassian-summit-2011-product-management-2-0-with-confluence/>

suggested in the talk

<http://www.youtube.com/watch?v=vUVR4u27Mr8>

I am using the on-demand version and was not able to import or rather even search the plugins mentioned in the talk. How can I install them?

Plugins installed:

* From [CustomWare](http://www.customware.net/repository/display/CustomWare/Home):
  * [Linking Plugin](http://www.customware.net/repository/display/AtlassianPlugins/Linking+Plugin) -- Enables the "Add New Project" links that pre-populate live templates and labels
  * [Scaffolding Plugin](http://www.customware.net/repository/display/AtlassianPlugins/Scaffolding+Plugin) -- Enables the templates and forms for project metadata
  * [Reporting Plugin](http://www.customware.net/repository/display/AtlassianPlugins/Reporting+Plugin) -- Enables aggregation of the project metadata into the dashboard views
  * [Composition Plugin](http://www.customware.net/repository/display/AtlassianPlugins/Composition+Plugin) -- Enables the deck/card layout
* From [Bob Swift](https://plugins.atlassian.com/profile/details/1196):
  * [Table Plugin](https://plugins.atlassian.com/plugin/details/197) -- Enables dynamically sortable tables
  * [Cache Plugin](https://plugins.atlassian.com/plugin/details/152) -- Enables server side caching of heavy pages
* From [Simon Bartlett](http://simonbartlett.co.uk/):
  * [jQuery User Macro](http://confluence.atlassian.com/display/DISC/jQuery+User+Macro) -- Enables custom jQuery for interface tweaks

Thank you.


Answers:
author: CharlesH
body: The on-demand version is configured by Atlassian so you don't have total freedom to install your own plugins or define user macros. The policy is explained clearly here: <https://confluence.atlassian.com/display/AOD/Atlassian+OnDemand+Plugin+Policy>


author: Rahul Tongia
body: Thanks for pointing it out. We are still in trial period of Confluence on-demand. Its kind of a shame, but guess good for stable environment.

Thanks.


Tags: cloud

confluence-app
Confluence Installation Bug when linking to Jira :: Stucked...
Asked by eKyNoX:

Hello,

I was trying to install Confluence to test it. Jira is already installed and run actually on <http://localhost:8080>

When linking Confluence to Jira while the installation process, I got a first problem that was related to <https://jira.atlassian.com/browse/CONF-27339> and resolved by removing Application Link but there is another problem on the next page where I'm stucked.

The page content shows up contains :
>
> Load users and groups from JIRA {#toc-hId-1624509030}
> -----------------------------------------------------
>
> Synchronisation started.
>
> <br />
>
> Time Elapsed: Less than a second.
>
> Local administrator account created.
>
> We have created a local administrator with the same username and password as the JIRA system administrator you provided. This will ensure that you can always log into Confluence to update the system configuration.
>
and the button "Next\>\>" can't be clicked.

This bug looks like related to <https://jira.atlassian.com/browse/CONF-23008>

I tried refresh the page, reloading <http://localhost:8090> , or re-install Confluence with or without DB re-init, or as explained in the CONF-23008 comments with no luck.

So Need help about this currently.

Thanks.


Answers:
author: LuizA
body: Hello There,

Just to confirm with you, did you try the workaround suggested in the following comment:

[https://jira.atlassian.com/browse/CONF-23008?focusedCommentId=270196\&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-270196](https://jira.atlassian.com/browse/CONF-23008?focusedCommentId=270196&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-270196)

This can be an option since you're performing a new install, to connect to your Jira after the Confluence install process, the results will be the same in terms of connection to Jira. I hope this helps.

Best Regards,

LJ.

comments: author: eKyNoX
body: Ok, it is configured and linked.

Thanks for help.


author: eKyNoX
body: No news, do someone know how to resolve this problem please ?
is it possible to hide the Templates Tab when choosing Browse Space
Asked by Rodney Hughes:

I have Confluence On Demand and have some Spaces accessible to the public - Anonymous access.

If they do Browse Spaces, they can see and actually open the Templates

Is it possible to block that tab?


Answers:
author: Rodney Hughes
body: Aaah! but if I make it a Global Template instead of a Space Template that works !


author: Boris Berenberg
body: Hey Rodney,

Have you tried setting your templates to be space templates, not global templates? <https://confluence.atlassian.com/display/DOC/Working+with+Templates#WorkingwithTemplates-Globaltemplatesandspacetemplates>

Cheers,  
Boris Berenberg

comments: author: Rodney Hughes
body: I confirm they are already Space Templates.


author: Rodney Hughes
body: Aaah! but if I make it a Global Template instead of a Space Template that works !


author: Boris Berenberg
body: Hey Rodney,

Glad you got it working. I would recommend that you open a support ticket with Atlassian and ask about this. It may be something we want to change the behavior on.

Cheers,  
Boris


Tags: cloud

confluence-cloud
Bulk remove old macros from all wiki pages
Asked by David Yu:

I'm planning for an upgrade to Confluence 4 and have decided to sunset some plugins which are no longer useful to us (and have turned from open source to commercial...but that's another story).

The impetus for stripping out these old markup tags is because Confluence attempts to wrap these in wiki markup blocks. Worst case is users will have to copy and paste from the wiki block into the outside block.

Does anyone have any tricks or tips on how to best remove them en-masse? The solution that I'm thinking of involves database search/replace with regex pattern replace. I think this will be much easier to do before the upgrade and conversion into XHTML.

Thanks!


Answers:
author: CharlesH
body: One technique would be to create user macros for each macro offered by the plugin you're withdrawing. The user macro would be given the same name as a withdrawn macro. If the original macro was wrapping text or other content then you'll need to output that from the user macro. $body should do the trick. If there was no content wrapped by the macro then the macro doesn't need to do anything. You'll find an option when you define a user macro to prevent the macro appearing in the macro browser, except for admin users. This will help ensure that the users don't carry on using the macros by mistake.

You might say that this approach doesn't fully address the issue because the pages haven't been cleaned up. However the page authors could tackle this over time as pages are edited and updated in the normal run of things. You could track progress of this with careful use of the Confluence search and so remove the user macros when they're no longer required (see [http://ffeathers.wordpress.com/2011/11/04/how-to-search-confluence-for-usage-of-a-macro/](http://ffeathers.wordpress.com/2011/11/04/how-to-search-confluence-for-usage-of-a-macro/).)).

A database search/replace is certainly possible, but riskier I think. Let us know which solution you go for. It's an interesting challenge you've got there.

comments: author: David Yu
body: That's a great tip on using a user macro. I think I'll try that out instead of the DB search/replace method since it's less destructive.


author: MarkC
body: One flaw with this for anyone referencing it post 5.8.x, there is a bug with some macros being placed inside a user macro, so you could end up with an even greater mess if you make this change.<https://jira.atlassian.com/browse/CONF-38074>


Tags: upgrade
How to Add Date picker to Gadget?
Asked by Jemy:

How to Add Date picker to Gadget?


Answers:
author: tousifs
body: Hi Samuls,

[https://answers.atlassian.com/questions/38350/how-i-can-add-date-picker-to-jira-gadget?page=1](/questions/38350/how-i-can-add-date-picker-to-jira-gadget?page=1)

similar question.