youngmon/atlassian-qna huggingface dataset:
Confluence HTTP Error 400
Asked by Casey Maynard:

Lately I have been getting the

error message below when I am reloading a page.

It seems to only happen on Chrome (yes I have the latest version)

I can fix it by clearing the cache. Once I clear the cache the error goes away for about 2 hours then happens again.

'...

This page isn't working {#toc-hId-1817340188}
---------------------------------------------

If the problem continues, contact the site owner.

HTTP ERROR 400 ...'


Answers:
author: Brant Schroeder
body: [@Casey Maynard](/t5/user/viewprofilepage/user-id/1140025)

Sounds like a DNS issue. I would suggest flushing your DNS and seeing if that resolves your issue.
Listener for trashed page due to WordImportAction
Asked by Fredrick Thomas:

As part of importing a Word document, there's the option to replace an existing page and trashing that existing page's children. It looks like this doesn't publish an event, but only updates the *contentstatus* of each child to *TRASHED* , so it gets past my existing event listener for trashed events.  
Is there some sort of content status change listener I can implement?


Answers:
author: Hasnae
body: Hei Fredrick

I would suggest the following workaround, while the team addresses the issue of missing events

```
import com.atlassian.confluence.api.model.content.ContentStatus;
import com.atlassian.confluence.core.ContentEntityObject;
import com.atlassian.confluence.event.events.content.page.PageUpdateEvent;
import com.atlassian.event.api.EventListener;
import com.atlassian.event.api.EventPublisher;
import com.atlassian.plugin.spring.scanner.annotation.imports.ComponentImport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

@Component
public class ContentStatusUpdateListener {

    private final EventPublisher eventPublisher;

    @Autowired
    public ContentStatusUpdateListener(
            final @ComponentImport EventPublisher eventPublisher) {
        this.eventPublisher = eventPublisher;
    }

    @PostConstruct
    public void register() {
        eventPublisher.register(this);
    }

    @PreDestroy
    public void unregister() {
        eventPublisher.unregister(this);
    }

    @EventListener
    public void onPageUpdate(final PageUpdateEvent event) {
        final ContentEntityObject updated = event.getContent();

        if (updated.getContentStatusObject().equals(ContentStatus.TRASHED)) {
            // TODO
        }
    }
}
```

Find the full commit on my sample confluence plugin available here: <https://bitbucket.org/viqueen/atlassian-community/commits/47e55618cd742fc51fd7c035747f0a35d5b9075b>

If you have any further questions do let us know!

Have a nice day.

comments: author: Fredrick Thomas
body: Never thought about checking the PageUpdateEvent - will try that out, thanks!


author: Fredrick Thomas
body: Meant to update with eventual resolution...So, checking the PageUpdateEvent gives a hook to see what the status of the page is after Word Import, but doesn't really have any tie to the WordImportAction that initially caused that event.

Ended up storing info about the children of the page being edited via word import with a listener on WordImportAction, then checked the eventual PageUpdateEvent to see if the number of children changed, and went from there. There doesn't look like there's a way to find out page deletions were caused by a WordImportAction without temporarily storing information during initial action to check during the event, or by adding a custom event to WordImportAction...Kinda disappointing.


Tags: confluence-server

server
Can I get a count of the most popular how to articles?
Asked by Mary Beth Little:

Hi,

I'm setting up our Knowledge Base/Confluence and want to put in a count to see the number of times users access what articles. How do I do this?


Answers:
author: Mirek
body: Hmm.. for Cloud instance Usage Statistics build in Confluence I think is disabled and few years back you needed to contact Atlassian to enable that ([Support request](https://support.atlassian.com/contact/)). If that is not possible any more maybe you can use different plugins that exist on the marketplace like for example Analytics for Confluence - [https://marketplace.atlassian.com/apps/1215795/analytics-for-confluence?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1215795/analytics-for-confluence?hosting=cloud&tab=overview)

comments: author: Mary Beth Little
body: Grrrr, it seems 9 out of 10 times if I am looking for something, it is either 'in development' or an extension which will cost more. Thanks for your help, at least I can stop searching!


Tags: cloud

confluence-cloud
Setting the Tree Browser default sort option
Asked by Casey Maynard:

Is there a way to set the Tree Browser Sort by A-Z option to be the default option?

At the moment it seems to be adding my new pages at the top and I have to continually manually re-sort by A-Z. I want the Tree Browser to auto-sort by A-Z every time a new page is added.


Answers:
author: Davin Studer
body: It is on by default, but if you make a change to the navigation by manually re-ordering it that will be turned off. To fix it go to Space Tools -\> Reorder Pages. Expand the node that you want alphabetized. You should see an option show up next to the node that looks like this ...

![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/23687i99993369C88BF139/image-size/large?v=v2&px=999 "Capture.PNG")

Click the AZ icon and that node will now be alphabetized and any new pages will automatically fall in the right order.
Password Retention policy
Asked by Christy Satterfield:

Hello,  
Without an additional plug-in and without integration with AD, is there a way to force 180 day password changes on Confluence?


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Christy Satterfield](/t5/user/viewprofilepage/user-id/1062619) ,

there is the following plugin [https://marketplace.atlassian.com/apps/1211910/enterprise-password-policy-confluence?hosting=server\&tab=overview](https://marketplace.atlassian.com/apps/1211910/enterprise-password-policy-confluence?hosting=server&tab=overview)

Fabio


Tags: confluence-server

server
Using user macro parameters as integers
Asked by Yaacov Weingarten:

Hi,

I am trying to write a user macro that receives an integer as a parameter, and use it as an integer in a Velocity Range (for example) - I wrote a small macro -

## This is an example macro  
## @noparam

<br />

#set ($maxndx = 20)  
#set( $mindx = 12)  
#foreach ($ndx in \[$mindx..$maxndx\])  
$ndx  
#end

That works fine - printing out the numbers from 12 to 20

But when I add a parameter (whose type is integer) and use its value (as the upper limit):

## [@Param](/t5/user/viewprofilepage/user-id/1345631) uplimit:title=Item Limit\|type=int\|desc=maximum number\|default=25  
#set ($maxndx = $paramuplimit)

The foreach statement doesn't seem to execute - there is no output.

I get similar phenomena when I try to use if-statments comparing an integer to a parameter value.

So how do I use integers as parameters to a User Macro?

Thanx


Answers:
author: Davin Studer
body: There is a trick to this.

```
#set($paramuplimit = $generalUtil.convertToInteger("$paramuplimit"))
```

comments: author: Yaacov Weingarten
body: Thanx - that seems to work - are there similar converters to change a date (taken from a page - for example the creation date) into an integer?


author: Davin Studer
body: When you say change date into an integer do you want it in epoch time? If so, what do you want to accomplish with it?


author: Yaacov Weingarten
body: Hi,

Yes, the intention was to change to Epoch time, but I found the answer in the meantime - using the Date.getTime() method. The purpose was to compare two times, which I accomplished using the before/after methods.

Thanx for the reply.


Tags: confluence-server

server

user-macro
Problems upgrading from 5.9 to 6.9
Asked by Harri Kylli?inen:

Hi,

We have installed copy of current version (v5.9) to new Windows Server 2016 with copy of database. Confluence is working on new server, but when I try to upgrade existing installation, installation program does not recognize existing installation, I get error:

"The directory you have selected is not a valid confluence installation directory"

What could cause this?

BR,

Harri


Answers:
author: Lipkent Ng
body: Hi Harri,  

<br />

When you run the installer, did you point to the correct confluence installation directory path and not the confluence home directory path? The installation directory should contain folders such as conf/, logs, confluence, confluence/WEB-INF...

comments: author: Harri Kylli?inen
body: Thanks, I was pointint d:\\program files\\Confluence. This worked d:\\program files\\Confluence\\web-app.


Tags: upgrade
confluence Set up problems
Asked by ???:

problem : Non group set stream: the database is being updated by another Confluence instance.

problem : How do I change the confluence security number

How do you solve this problem? Thank you.


Answers:
author: Shannon S
body: Hi there,

Can you please elaborate on what your issue is? Are you seeing this as an error message somewhere? Can you share it as a screenshot?

Let us know what you were doing before you encountered the problem.

Lastly, what do you mean by "Confluence security number"?

Regards,

Shannon
Can blog participants earn credit/acknowledgement/bling?
Asked by Matthew Alexander:

I am using the blog as a Q\&A page for engineers to share their questions and answers to implementation projects thereby providing technical assistance to their peers across the united states. Is there a macro or feature that acknowledges their participation in the discussion for answering questions? For example: earning a badge or ranking next to their avatar? The purpose of course is to encourage participation and make the process of sharing information fun. Your insight is appreciated:)


Answers:
author: Matthew Alexander
body: Hi [@Matthew Alexander](/t5/user/viewprofilepage/user-id/1350162),

My suggestion would be to look into [Karma for Confluence](https://marketplace.atlassian.com/apps/1211213/karma-for-confluence?hosting=server&tab=overview) add-on.

Hope this helps

comments: author: Matthew Alexander
body: Danny

Thank you so much! There is not a lot of expense dollars floating around, I was looking for something within the Atlassian application for a solution. The Karma for Confluence add-on will get shot down by leadership, I am sure.

\~Matthew
How to allow two confluence to connect to a database
Asked by ???:

Let two confluence connect a database, master, data is the main confluence, when the confluence main downtime, switch to confluence, do not know this can be realized, thank you


Answers:
author: Nic Brough -Adaptavist-
body: The answer depends on what you are trying to achieve.

If you are wanting a "warm standby", where one Confluence is is a "master", running most of the time, and another one should be started if the master fails, then you can use simple database replication alongside a synchronisation of the attachments to make the fail-over box be ready to take over.

If you want Confluence to be "clustered" (two or more Confluences running and using the same database) then you need the Data Centre version of Confluence.

comments: author: ???
body: Thank you, I am a little white now doing this feeling state is not very good, many things do not quite understand later, can I ask you to consult?


author: ???
body: ???? ???


author: Nic Brough -Adaptavist-
body: Yes, feel free to ask more questions!
Admin rights and still not able to manage users
Asked by Wera Schulz-Naue:

I would like to change the rights of some users in confluence. I have admin rights but when I click on "manage users" Atlassian gives the answers I do not have permission to access this page.

Any hints!?


Answers:
author: Grigory Salnikov
body: Hi!

Check the Global Permissions. To manage users you need **Confluence Administrator permission**.

![confl.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/23587iA262284AC39FEED2/image-size/large?v=v2&px=999 "confl.jpg")


Tags: administration

user-management
Searching for the instances in which the particular macro is used is not fetching the effective resu
Asked by Abhishek Bharadwaj:

Hi,

There is a syntax for macro searching in Confluence,

macroName: x\* (x is the macro/add-on key)

We upgraded our confluence to v6.1.4 and the above macro search is not working properly.

It is showing only 55 results where it has to show 113. We Rebuilt the index from scratch and even it did not work.

Please help in resolving this.

Thanks ,  
Abhishek Bharawdaj


Answers:
author: Nic Brough -Adaptavist-
body: How do you know there are 113? Can you find one of them that is missing from the search results?

Also, you might have used it 113 times, but if you've used it more than once on a page, that will only return one result.

comments: author: Abhishek Bharadwaj
body: [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454)

Thanks for the reply!

Actually we upgraded our Confluence form v5.0.3 to v6.1.4.

When we checked in the older version, we had 113 instance shown in the result. Even in the testing environment of v6.1.4, 113 instance were show. But in the newer Production wiki, only 55 instances were shown. And , yes there were actually **113 pages** found and in some of the pages there are **4 to 5 excel macros** used and which is considered as 1 instance only.

Our question is why we are not able to get all the 113 instances in the new Production v6.1.4 when **all the 113 pages are still found in Production**(not missing)!

Thanks in advance

Abhishek Bharadwaj,


Tags: confluence-server

server
Confluence Include Page macro search problem
Asked by Timo Trummer:

Hi guys

I'm running Confluence server 6.9.0.  

A user has lots of blog posts in his personal space. All those blog post's titles are starting with a name "Taisto ....". When adding an Include Page macro to a page and trying to search for some certain blog post by starting to type "Taisto", the macro's page search offers only a very limited list of existing blog posts (only 7 blog posts). Can anyone please guess why it is like that and how to find other blog posts that start with "Taisto"?  
I do have access to these blog posts so it can't be a permission problem. I also read the macro's documentation and unfortunately it didn't help.

Cheers  
Timo


Answers:
author: Shannon S
body: Hi Timo,

Does it help if you manually reindex Confluence? It should find more results once you do that.

If not can you let us know some examples of the page titles that aren't being returned?

Regards,

Shannon

comments: author: Timo Trummer
body: Hi Shannon  

I did Confluence content reindexing but problem remains.  
When I insert the include page macro and type "taisto", the search dialog box shows still 7 blog pages, that's name start with "taisto". For example blog page named "Taisto 15.02-19.02".  

As an example of a blog page that is not found, there is "Taisto 14.03-18.03.2016".  

Really hard to figure out the behaviour, because the blog pages's names are really similar, but a few are found, others not.  

Regards  
Timo


Tags: confluence-server

server
I need to make confluence site online availiable AND pasword protected
Asked by Dmitrij Moreinis:

I know how to put a Confluence Site online! But I would also PasswordProtect it so everyone with a password could join.


Answers:
author: Max Foerster - K15t
body: Hi Dmitrij,

so you first want to make sure [anonymous access](https://confluence.atlassian.com/doc/setting-up-public-access-156.html) is disabled for your instance. Head over to the [global permissions](https://confluence.atlassian.com/doc/global-permissions-overview-138709.html) and set the permissions accordingly. And additionally you may want to think about the way you manage your users or let them be able to self sign up to your instance, please see the [Add and Invite Users](https://confluence.atlassian.com/doc/add-and-invite-users-138313.html) article in the documentation.

Best, Max

comments: author: Dmitrij Moreinis
body: Well if invite them i have to pay, for them :D


author: Max Foerster - K15t
body: Hi Dmitrij,

controlled access = licensed user = adds up to your user count :)


Tags: confluence-administration
font style
Asked by kunal singh:

How can we change font style in confluence like we do in Ms word??


Answers:
author: Max Foerster - K15t
body: Hi Kunal,

when you speak of font style you mean to write in bold / italic / underlined /... letters, correct? This can be achieved in the editor via the tool bar or the appropriate shortcuts. Maybe the best thing is to just make yourself comfortable with all actions available when creating/editing content in confluence and additionally you can have a look at the [documentation of the editor](https://confluence.atlassian.com/doc/the-editor-251006017.html).

Best, Max
Not able to change the permission of the confluence home directory and install directory
Asked by ilakkm:

I am facing a problem similar to the one given below in the final step of confluence setup:

<https://confluence.atlassian.com/confkb/confluence-does-not-start-due-to-spring-application-context-has-not-been-set-218278311.html?_ga=2.192502703.485559645.1527950480-147492546.1504377717>

I am trying to change the permissions on the confluence home directory and install directory using the following commands:

    chown -R confluence.confluence <confluence-install-folder>chown -R confluence.confluence <confluence-home-folder>chmod -R u=rwx,go-rwx <confluence-install-folder>chmod -R u=rwx,go-rwx <confluence-home-folder>

But I am not able to do so. I am getting 'Permission denied' message everytime.


Answers:
author: Nic Brough -Adaptavist-
body: Do you realy run Confluence as a user called confluence.confluence, or are you trying to set the ownership and group to confluence and confluence?

If you are trying to set ownership and group, try confluence:confluence instead, not a . to separate them.


Tags: confluence-server

server
Cannot login into fresh confluence server install after restoring backup from cloud confluence
Asked by Greg Rogers:

I am moving from a cloud instance to a server instance of confluence and after restoring the backup, I am unable to log into the instance using my cloud details.

To be specific, I am restoring to a fresh install of confluence server - no prior usage etc. To install I selected production installation, specified the database details - this worked fine. After going into the backup section and restoring the backup, I could no longer get into confluence.

I've tried using these instructions: <https://confluence.atlassian.com/doc/restore-passwords-to-recover-admin-user-rights-158390.html>. Unfortunately using the username \`recovery_admin\` with the specified password did not work.

How to complete the migration of the cloud backup to the server installation?


Answers:
author: Moses Thomas
body: [@Greg Rogers](/t5/user/viewprofilepage/user-id/185211)I meant which version of confluence you want to migrate too ;)

comments: author: Greg Rogers
body: Moving from cloud to the latest server version


author: Moses Thomas
body: [@Greg Rogers](/t5/user/viewprofilepage/user-id/185211)Ok


author: Greg Rogers
body: I'm using the "up to 10 users" version


author: Moses Thomas
body: [@Greg Rogers](/t5/user/viewprofilepage/user-id/185211)if you are migrating to confluence server 6.5.0 and above please use this documentation <https://confluence.atlassian.com/conf64/restore-passwords-to-recover-admin-user-rights-936511358.html>

Best!


author: Greg Rogers
body: Thank you!
How can I type plain text without auto formatting changing it?
Asked by Bill OLeary:

I am trying to type the following 2 lines of text into a confluence table cell in paragraph mode:

If it will finds _A it will be replaced with _A, _C and _E

and if it finds _B it will be replaced with _B,_D and _F

When I type the _C on the first line, it removes the _ and Italicizes the text in front of it...

same for the _B on the second line.

how can I stop that from happening? (Its very frustrating!)

I know I can use a code block, but the overhead of the code_block is too big in the table.

It seems like i can use double quotes, to surround the text but the quotes show up and are misleading in what I am trying to explain.

Is there something I can do to tell it to use the text I type verbatim without detecting style codes?


Answers:
author: Ignacio Pulgar
body: Have yoy tried typing a backlash character \\ just before the underscore?

ie: \\_A

The backlash is usually the escape character, meaning that the next especial character should be displayed "as is", instead of producing its associated effect.

comments: author: Bill OLeary
body: Thanks for the idea....

it does not work as an escape character... it just displays \\_A \\_B


author: Bill OLeary
body: looks like a single quote at the beginning of the line helps, but it unfortunatley it still shows up.

so I can type

'If it finds _A it will be replaced in by _A, _C and then _E

which isn't too bad.


Tags: cloud

confluence-cloud
Restore large Space
Asked by Rob K:

I'm about to start a project to move a great deal of spaces, some of which have thousands of pages and dozens of gigabytes of attachments, into a newer version of confluence. I'm worried about moving such large files. What are some best practices to move large XML files?


Answers:
author: Daniel Wong
body: Hi [@Rob K](/t5/user/viewprofilepage/user-id/1460178)

I would suggest taking a look at this KB - <https://confluence.atlassian.com/doc/restoring-a-space-152036.html>

Some key points from the article to take note of:

* **Is your file too large to upload?** This is a very common problem. It happens when the file can't be uploaded to the server in time. To avoid this problem, drop your export file into the `<confluence-home>/restore` directory and import it from there.

* **Is the import timing-out or causing out of memory errors?** If the space to be imported is very large, you may need to temporarily increase the memory available to Confluence. See [How to fix out of memory errors by increasing available memory.](https://confluence.atlassian.com/confkb/how-to-fix-out-of-memory-errors-by-increasing-available-memory-154071.html)

And if this is your first time importing spaces, I would suggest doing it on a test Confluence instance so you can trial and error the imports.


Tags: confluence-server

server
Script Runner to Hide the Markup Option in Insert Menu in Confluence
Asked by Karen_Mustain:

I would like to know if it is possible to use ScriptRunner to hide the 'Markup' menu item in the Insert menu in the Rich Text Editor of Confluence. (see screenshot).

Since some plugin vendors are not supporting wiki markup language/syntax we do not want our users to have this option any longer. I would like to use ScriptRunner to hide this menu item.

I tried using the built in Hide UI Element scripts, but I can't find an option for the dropdown menu items.

Any help would be appreciated.

Thanks Karen

![InsertMarkupmenuitem.PNG](/t5/image/serverpage/image-id/23525i1D886F5FAA6003D8/image-size/large?v=v2&px=999 "InsertMarkupmenuitem.PNG")


Answers:
author: Davin Studer
body: You could hide it pretty easily by adding this to your global stylesheet.

```
.dropdown-item.content-wikimarkup {display: none !important;}
```


author: Karen_Mustain
body: Hi Davin,

Yes, I knew I could hide it via the global stylesheet. I was just wondering if it is possible to do if via scriptrunner.

Thanks for the information.

Karen


Tags: com.onresolve.confluence.groovy.groovyrunner

confluence-server

server