youngmon/atlassian-qna huggingface dataset:
Super weird confluence connection problem
Asked by sujoe:

Hi, I just successfully installed Confluence 3.5.9 on CentOS 6. I'm looking at this super weird problem. Let me explain.

- Confluence is installed on CentOS 6 box (Internal IP: 192.168.2.146) behind the firewall.

Hostname assigned is [neptune.twinova.com](http://neptune.twinova.com)

Port 8080 and 8000 is forwarded to CentOS 6 box.

- I am able to access Confluence by typing in <http://neptune.twinova.com:8080/> and also <http://192.168.2.146:8080/> within our LAN (behind the firewall).

**Problem: When I get out of the building and try to connect to [http://neptune.twinova.com:8080/](http://neptune.twinova.com:8080/%20)from a lot of places (my home, starbucks, friends' office), I could never seem to load confluence at all.**

I can telnet into [neptune.twinova.com](http://neptune.twinova.com) 8080 without any problems at all.

I tried all possible things I can think of, I would really appreciate if you could help me to solve this.

Thanks in advance


Answers:
author: Martin Cooper
body: Sounds like a firewall / Network security issue. Whilst the port may be forwarded there can still be a rule that prevents any port being accepted as part of a URL. I have seen this a few times where only plain URLs were allowed.

I would check that out first and also that there are no ip range rules on the firewall blocking access from any unknown IPs.

You might want to set up an apache server in front of Confluence as is normally more firewall / security friendly and can then easily serve over port 80. This could also be a good quick test, as if can see the apache welcome page externally, then you know the problem lies with the port on the URL.

Also just to doublecheck - the hostname is recognised externally and is not just on an internal dns (I know you said you could telnet to it I assume thats externally, but just trying to cover all bases)
Can I control what anonymous user sees on the Tools menu?
Asked by Terence McGhee:

The only options I want an anonymous user to access on the Tools menu are Attachments, Link to this Page..., and View Wiki Markup.

I'd like to completely hide all of the other options.

Is there a way to do this?

Thanks!


Answers:
author: David at David Simpson Apps
body: Browse to:

```
Confluence Admin | Look and Feel | Custom HTML 
```

In **At end of the HEAD**, add some javascript similar to this:

```
<script>

if (AJS.$('#login-link').length > 0) {
    AJS.$('.ajs-drop-down.most-right-menu-item li').hide();
    AJS.$('#view-attachments-link').parent().show();
    AJS.$('#link-to-page-link').parent().show();
    AJS.$('#action-view-source-link').parent().show();
}
<script> 
```

```
 
```


author: Alex Samad YB
body: Hi

I have confluence 4.2.2 neither of the above seemed to work. Is there a way to do it in 4.2.2

comments: author: Eric Riddle
body: Alex, check that you change the last \<script\> to \</script\>


author: David at David Simpson Apps
body: Related question: [Is it possible to control what an anonymous user sees in the browse menu?](/questions/5039/is-it-possible-to-control-what-an-anonymous-user-sees-in-the-browse-menu)


author: Jon Cotter
body: You can also edit the template itself. You can find some related info here in this old post:

[http://forums.atlassian.com/thread.jspa?messageID=257351387\&#257351387.](http://forums.atlassian.com/thread.jspa?messageID=257351387&#257351387.)

In that post i outlined how I disabled certain features for anyone other than an admin... you could use the same concept to not show sections for people who arent logged in.

Let me know if you need more info.
How do I prevent duplicate page names across spaces?
Asked by Rebecca Sheridan:

We have many duplicate page names across spaces (for example, there's 5 "Meet the Team" pages for different teams that appear in a search), and it would be great to have a way to prevent this. Any ideas?

Thanks!

Rebecca


Answers:
author: AlexH
body: Why do you want to prevent that? One of the main reasons to have multiple spaces is so that you can have multiple pages that have the same name.

"Meet the team" sounds like a great name for a page that introduces the team, and as long as users get used to looking at the breadcrumbs to see which space they are in the confusion should be temporary.
How do I embed or integrate an FAQ space in confluence, into my website?
Asked by Jay Sellers:

We use Confluence for internal documentation for a number of teams. Essentially each team has their own space.

We also have an external website. A new initiative is to build an FAQ that our clients can view/search. I know I can create a space and open it up to the public and restrict the search of that space to itself rather then all the spaces.

My question is if there is a "best practices" way to embed this space into our external website to make the integration seamless? We want our clients to enter their search criteria on our website, send that search to confluence and display the results on our website.

Just wondering if others have done this and if so, which integration approach you've taken.

Thanks much!  
-Jay


Answers:
author: vincent beudez
body: Hi,

I also have the same question, it would be really usefull. If somebody has an answer... :)

Thanks,

Vincent


Tags: embed

faq
What are the steps for adding Confluence as a repository in Fisheye?
Asked by Ronald Horner:

Steps I've taken:

I've set up the Application links between Fisheye+Crucible and Confluence.

I've added the link between a Crucible project and a Confluence Space.

I've added Confluence as a repository under the Confluence LightSCM Plugin in Fisheye.

When I try to access the wiki repository when adding content to a review it says *Wiki (not available)*

Our environment is accessed through an externally available url using an authentication mechanism that blocks Atlassian products from talking to each other. For example, we have [www.company.com/fecru](http://www.company.com/fecru%20)and [www.company.com/confluence](http://www.company.com/confluence) but they cannot talk to each other with those URLs. Instead they use the internal ULR intranet.com/confluence and intranet.com/fecru.


Answers:
author: Ronald Horner
body: So it turns out that this feature is not supported by Atlassian - for whatever reason I will not know. However you can get it to work by following these easy instructions!

* Head to the plugin's page and download the source code : [https://studio.plugins.atlassian.com/source/browse/CONFCRUPLUG\</li\<\>\>](https://studio.plugins.atlassian.com/source/browse/CONFCRUPLUG%3C/li)

[](https://studio.plugins.atlassian.com/source/browse/CONFCRUPLUG%3C/li)

```
svn checkout https://studio.plugins.atlassian.com/svn/CONFCRUPLUG/trunk CONFCRUPLUG
```

* Edit the pom.xml to point to your version of Confluence, I am using Confluence 3.5.7, but you can change it to any version

```
<properties>
```

```
     ... 
```

```
     <atlassian.product.version>3.5.7</atlassian.product.version> 
```

```
     ...
```

```
</properties> 
```

* Build and package the plugin. From the command line *cd* into the root of the source directory ie */home/jsmith/confcruplug/*. This is going to download a mess of artifacts to do the build. If your build environment cannot touch the internet, make sure your maven proxy is configured to use Atlassian's maven repositories.

```
mvn clean package
```

* The plugin will now be available in the _target_ directory.
* Log into Confluence as an administrator and install the plugin manually
* Browse -\> Confluence Admin -\> Configuration -\> Plugins -\> Install -\> Upload Plugin
* You may need to enable the plugin and/or restart after install
* Make sure your settings match what I posted in the question and you should be good to go!


author: Ronald Horner
body: Since Confluence is version controlled it is essentially the same thing as a source code repository except instead of viewing source code you view wiki markup. This has allowed our users to review specific versions of their confluence pages with all of the integration available with source code integration.


author: EddieW
body: What is the goal here? Why are you treating Confluence as a soruce code repository?!


Tags: fisheye-crucible

repository
Is it possible to control what an anonymous user sees in the browse menu?
Asked by Terence McGhee:

Ideally, I'd like to be able to hide the entire browse menu from anonymous users, but if that's not possible, can I control what's shown on the browse menu to anonymous users?


Answers:
author: David at David Simpson Apps
body: Browse to:

```
Confluence Admin | Look and Feel | Custom HTML 
```

In **At end of the HEAD**, add some javascript similar to this:

```
<script>
if (AJS.$('#login-link').length > 0) {
    AJS.$('#browse-menu-link').parent().hide();
}
<script> 
```

comments: author: Terence McGhee
body: Thank you so much David!


author: Terence McGhee
body: This is the script I ended up using and I had to put it at the **end of the body** section.

\<script\>

if (AJS.$('#login-link').is(":visible"))

{

AJS.$('#space-pages-link').hide();

AJS.$('#space-blogposts-link').hide();

AJS.$('#space-attachments-link').hide();

AJS.$('#space-mail-link').hide();

AJS.$('#space-advanced-link').hide();

AJS.$('#whats-new-menu-link').hide();

AJS.$('#gadget-directory-link').hide();

}

\</script\>


author: David at David Simpson Apps
body: Cool. That will likely do the trick :)


author: Stephen Thompson
body: My worry is, if you run these scripts, you will lose the edit menu too and be locked out. Any plan for that scenario?


author: Adrian Wieczorek
body: None of the above will work for OnDemand. Any other ideas?


author: Eric Riddle
body: I was able to combine the two above answers and make it work in Confluence 4.2.

I put this script at the End of Body

```
<script>if (AJS.$('#login-link').is(":visible")) {    AJS.$('#browse-menu-link').parent().hide();}</script> 
```


author: Jodie Miners
body: There is also the excellent Menu Manager Plugin from CustomWare that does the trick brilliantly. <https://plugins.atlassian.com/plugin/details/13460>

But remember, once you have hidden the commands, the user can still access many of the Confluence features by the URL as definined in this great post <http://www.divingintothedetails.com/confluence/urls-to-access-confluence-wiki-functionality/.> but most of these do require the confluence pageid.


author: David at David Simpson Apps
body: Related question: [Can I control what anonymous user sees on the Tools menu?](/questions/5040/can-i-control-what-anonymous-user-sees-on-the-tools-menu)
Display Euro in Confluence
Asked by datecnl:

In Europe, we use the Euro. On our keyboard this is represented next to the 5. I type the Euro symbol (?) by typing Alt Gr -5 (ALT Gr is the Alt key on the right of the space bar).

In Confluence, ALT GR-5, immediately equates to H5, rather than the ? symbol. In all applications I know except Confluence, ALT GR-5 is always interpreted as Euro symbol rather than ALT-5.

Is it possible to configure Confluence so that ALT GR-5 becomes the ? symbol rather than the Header 5?


Answers:
author: ket.pjwstk
body: What version of confluence do you use? I had some problems with locale settings in confluence 3.5.2., which were fixed in 3.5.6.


author: Alexander Johannes
body: The best thing would be, that you report your locale (including keyboard layout), operating system and browser in a new issue on <https://jira.atlassian.com/>

For instance: i'm from germany and use a mac with german keyboard layout. I can type the ? just by hitting \[alt\] + E without activating something else in confluence.
UPM says plugins are up to date, they're not
Asked by Thomas Vlerick:

Hi,

I did an upgrade of our confluence (3.5.9 on test environment) and wanted to update the plugins. But the UPM says that all the plugins are already up to date. But they're not. For example, ThemeBuilder was still 4.0.4 and not 4.2.2, UPM it self was also an out dated version. Still, the 'Upgrade' tab is empty.

However, if I check the 'Install' tab, the UPM is able to get a list of plugins from <https://plugins.atlassian.com/.>

So, the UPM can reach internet, nothing appears in the log files, but Upgrade list is empty.

Any idea?

Regards, Thomas


Answers:
author: Thomas Vlerick
body: Never mind, for some unknown reason it works again after several restarts of Confluence :).

Edit: but not for all the plugins. I did some random checks and I found at least two plugins that are not up to date.


author: BenW
body: UPM will only display updates that are compatible with your current product version. It is very possibly that even though there were new plugin versions on the Plugin Exchange, that those new versions were not marked as being compatible with your Confluence version.


Tags: app

universal-plugin-manager

upgrade
Any way to disable the Confluence picture viewer for attached images and just have them load in a normal web page?
Asked by Dave Donnelly _Sensata_:

This seems to not work on my IE8 and just causes the page to dim and no picture to appear...?

(Confluence 3.5.1)

Thanks a million.


Answers:
author: Azwandi Mohd Aris
body: Do you wish to disable the {gallery} macro? What do you mean by loading them in a normal web page?
How to give anonymous users the "recently viewed" link?
Asked by Nico Hoofd:

Anonymous users want to have a recently viewed list/button. Logged in users can use the link in the top menu. How can I give them access to this link?


Answers:
author: Nic Brough -Adaptavist-
body: Umm, you do understand that if you did this, every anonymous user would simply get a list of all the recently viewed pages by ALL users? Which is probably useless unless you're doing web-stats, in which case you should be using the statistics modules or proper hit analysis
How to count pages in a whole Confluence instance?
Asked by Alex Bobrovski:

Hi,

who can help - I'd like to know how many pages are on my Confluence? The total number mustn't include deleted articles (from the recycle bin).


Answers:
author: Adam Laskowski
body: The best way to get an accurate count of the number of pages in the instance (excluding their previous versions) is to run this query against your database:
>
> ```
> select count(*) from content where contenttype='PAGE' and prevver is null and content_status='current';
> ```

Limiting the contenttype to PAGE removes space and global descriptions, user info, drafts, and blog posts; only returning rows with a null previous version ensures that only the current version of the page is counted; lastly, content that has been deleted will have a status of "deleted," so you only want the rows that are still in the "current" status.

comments: author: Alex Bobrovski
body: If I use the {sql} macro, is it dangerous in terms of security? Is it true that any user can run the macro and get any data?


author: Penny Wyatt (On Leave to July 2021)
body: Yes, the {sql} macro opens up your whole database to any user who can edit Confluence content.


author: K. Yamamoto
body: For Confluence Cloud users, consider using REST API as below because Confluence Cloud doesn't support SQL, Macro, and some Add-ons for stats.

```
A_USER="admin"A_PASSWD="__YOUR_PASSWORD_HERE__"INSTANCE_HOST="__YOUR_SUBDOMAIN_HERE__.atlassian.net" # Total number of pagescurl -sGLu ${A_USER}:${A_PASSWD} "https://${INSTANCE_HOST}/wiki/rest/api/search" --data-urlencode 'cql=type IN (blogpost, page)' --data-urlencode 'limit=0'
```

Refer my related answer at [For Confluence Cloud, how do I find the total number of pages?](https://answers.atlassian.com/questions/10417309/answers/44613435) for more detail if you needed.

comments: author: K. Yamamoto
body: As of 2022, use the API token instead of the account password <https://id.atlassian.com/manage-profile/security/api-tokens>


Tags: count

page
Can I put a simple http form on a page to send a simple text field via GET protocal to a web address
Asked by Robert Glover:

I am using Atlassian Confluence 3.4.9 and Adaptavist ThemeBuilder. My business user want to know if there is a simple way to create an http form on a Wiki page that has one input text field where the user inputs a short piece of data. Then there should be a SUBMIT button which, which clicked, sends the content of that input text field to a web address (not a Confluence web address). All of my google searches on this show only how to use confluence to submit a form that sends an email. I do not want to submit an email, I want to submit a normal form via HTTP "GET" protocol (or "POST" protocal if that is an option) Maybe the answer is so simple that it is escaping me.


Answers:
author: Robert Glover
body: Hoo boy, do I feel foolish. As soon as I posted the question the answer struck like lightning. A simple "html" macro solves the problem! (Assuming, of course, that the html macro has been activated; by default in a vanilla Confluence install the html macro is not active).

To whit:

(left brace)html(right brace)  
\&lt;center\&gt;  
\&lt;form action="https://foo.com/up" method="GET" target="_blank"\&gt;  
\&lt;label for="emailaddress"\&gt;Enter your e-mail address: \&lt;/label\&gt;\&lt;input type="text" name="emailaddress" size="60" maxlength="60"/\&gt;\&lt;br /\&gt;  
\&lt;input type=hidden name="app" value="tsgoar"  
\&lt;br\&gt;\&lt;br\&gt;\&lt;input type="submit" value="Request Something" onClick="return confirm('Submit request for app to be pushed to your BB?');"\&gt;  
\&lt;/form\&gt;  
\&lt;/center\&gt;  
(left brace)html(right brace)

comments: author: Jim Birch
body: The html macro is a fairly serious security issue, ie, allowing any page write to add arbitrary html to a page.

Better to write the html in a user macro!


author: Jim Birch
body: The html macro is a fairly serious security issue, ie, allowing any page writer to add arbitrary html to a page. The sky's the limit. That's why it is not active by default.

Better to write the html in a user macro. You only allow one considered action, not just anything. It's possible to limit access to html macro with another plugin but using the user macro is simpler.


Tags: forms

http
Is a spell checker available for the WYSIWYG editor in Confluence 3.3 or 3.5?
Asked by rogermexico123:

Is a spell checker available for the WYSIWYG editor in Confluence 3.3 or 3.5? We are currently at 3.3 but can upgrade to the latest version if necessary.

thanks

Roger


Answers:
author: Matt
body: Confluence does not have a built-in spell checker. Most of the popular browsers -- Chrome, Firefox, Safari -- have their own spell checkers or extensions are available.

comments: author: Jim Birch
body: Which then spell checks any site you use...


author: JGB Atlassian Cloud Admin
body: I use Google Chrome which does spell check automatically.

See this ticket for other suggestions: <https://jira.atlassian.com/browse/CONF-1212>

comments: author: Gavin Bunney
body: Check out the new spell check plugin \[Spellproof for Confluence\|<https://marketplace.atlassian.com/plugins/au.net.bunney.spellproof.plugins.spellproof-confluence/server/overview>\] now available on Atlassian's Marketplace.

You can check spelling and grammar on your Confluence pages in three different languages - English, French and German.


author: Maggie Secara
body: Sadly, Spellproof only appears to be in UK English, even in our US installation. It says US is available but there's no way to select settings.


author: JGB Atlassian Cloud Admin
body: What browser are you using?


Tags: spell-check
"Page Not Found" error while creating new wiki pages
Asked by ITops123:

Some users are getting a page not found error when they create a new wiki page.

I researched it and found some reference to this issue [here](http://confluence.atlassian.com/pages/viewpage.action?pageId=188153872 "here"), but we don't use that plugin and the issue should have been resolved anyway.

Any ideas what might be causing it?


Answers:
author: ITops123
body: Confluence 3.5.1 with RefinedWiki theme.

I'll check the logs and no, I'm not seeing a pattern in the people having issues.

We also just found that the Adaptavist Content Voting Plugin is causing problems by making some pages uneditable. Disabling the plugin, making an edit and then re-enabling the plugin seems to fix it.

I suspect that this may be our trouble plugin, but we'll see.


author: Jeremy Largman
body: Also, you mentioned it's some users. Do you know any patterns? Is it always those users? Can you capture what the page content is?

My guess is that it's an invocation of a macro that's doing it. That is, it's similar to the kb article you found, but a different plugin.

Your logs will help as well. If you can check the atlassian-confluence.log when it's happening, you can probably narrow it down. Post a log snippet here if you can correlate it.


author: Richard Yale
body: What version of Confluence are you using?


Tags: create-page

error
getText Error formatting internationalized string
Asked by StefanL:

Hi,

has anyone a tip, what the cause of the following error might be?

2011-07-27 11:06:33,301 ERROR \[http-80-15\] \[confluence.util.i18n.I18NBean\] getText Error formatting internationalized string with key: "net.customware.confluence.plugin.linking.incoming-links.param.separator.desc" and params: null  
-- referer: [http://xyz.de/pages/viewpage.action?pageId=32636933\&replyToComment=32800771\&#comment-32800771](http://xyz.de/pages/viewpage.action?pageId=32636933&replyToComment=32800771&#comment-32800771) \| url: /plugins/macrobrowser/browse-macros.action \| userName: xxx \| action: browse-macros  
2011-07-27 11:06:33,363 ERROR \[http-80-15\] \[confluence.util.i18n.I18NBean\] getText Error formatting internationalized string with key: "net.customware.confluence.plugin.linking.orphaned-links.param.separator.desc" and params: null  
-- referer: [http://xyz.de/pages/viewpage.action?pageId=32636933\&replyToComment=32800771\&#comment-32800771](http://xyz.de/pages/viewpage.action?pageId=32636933&replyToComment=32800771&#comment-32800771) \| url: /plugins/macrobrowser/browse-macros.action \| userName: xxx \| action: browse-macros

Regrads,

Stefan


Answers:
author: Adam Laskowski
body: This is more of a general approach to working with plugins that are throwing errors in the logs and not specific to the Linking Plugin, but here goes!

First, check that your plugin is compatible with your current version of Confluence. You can find the Plugin version by going to Browse \>\> Confluence Admin \>\> Plugins. If you are using the Universal Plugin Manager (bundled in Confluence 3.4+), you can use the Upgrade tab to determine this in the Plugins view. If not, check out the compatibility matrix [here](https://plugins.atlassian.com/plugin/details/166).

If your plugin is up to date and still throwing errors, try removing the persistent plugin cache directories from the Confluence home folder (will require a shutdown of the instance):

* \<confluence-home\>/plugin-cache
* \<confluence-home\>/plugins-osgi-cache
* \<confluence-home\>/plugins-temp
* \<confluence-home\>/bundled-plugins
* \<confluence-home\>/bundled-plugins_language

Restart your instance and see if the issue persists when you use the Macro Browser. If so, you will want to follow Sergey's advice and contact CustomWare.


author: Sergey Markovich
body: Looks to me like an issue with CustomWare's plugin.

You can contact their customer support at <http://www.customware.net/contact-us.html> or probably they'll find your question here and answer.