youngmon/atlassian-qna huggingface dataset:
Edit the "Not Permitted" velocity page in Confluence?
Asked by Mike Rocheleau:

I'd like to add some text to the "You are not permitted to perform this operation" generic page that shows when a user hits something in Confluence they have no access to. Specifically when accessing spaces they have no rights to.

I've seen another question here for the same thing and a link to the velocity pages, but I'm just not certain how to actually add something and have it display.

I'm running Confluence 5.3.4, I have a user macro called "spaceadmins" which shows whomever might be a space admin for the current space. So I want to have the not permitted page show:

You do not have permissions to this content, please contact these folks for access: \<spaceadmins\>

I've tried adding just the following into the existing div tag, within the body tag, in pagenotpermitted.vm: $helper.renderConfluenceMacro("{spaceadmins}") But I see no change to the page when I restart Confluence. Adding plain text within this div tag also doesn't reflect to a 'not permitted' page when I restart Confluence.

Any trick to this? Confluene restarted, cache cleared, etc.


Answers:
author: Sabine Winkler
body: Hi,

it looks like your change and what you have tested are two different thing.

It looks like your test is pointing to the Velocity template "notpermitted.vm" (located in confluence-x.x.x-source\\confluence-project\\confluence-core\\confluence-webapp\\src\\main\\webapp)

```
&lt;html&gt;&lt;head&gt;    &lt;title&gt;$action.getText("title.not.permitted")&lt;/title&gt;&lt;/head&gt;&lt;body style="margin:5px"&gt;    #parse ( "/breadcrumbs.vm" )    &lt;div id="content" style="margin:10px;"&gt;        &lt;p&gt;$action.getText("not.permitted.description")&lt;/p&gt;    &lt;/div&gt;&lt;/body&gt;&lt;/html&gt;
```

I guess this template is called if the user is not allowed to access a certain space. The template you mentioned to modify seems to work for pages within a space. So I assume the pagenotpermitted.vm is called if the user has access to the space BUT not to a defined page within.

HTH, Sabine


author: Mike Rocheleau
body: Oh wow that's it exactly, thank you Sabine! I didn't notice this other velocity file, and for my install it's in the 'confluence' directory in the install folder.

Confirmed my macro does load in there! Downside is it's not correctly showing the space admins for the space, but that's something I can fiddle with in the macro.

Thanks so much!


Tags: user-macro

velocity
Can a Confluence page content be lost page due to rename?
Asked by Marc Dantona:

A user who had been creating a page as "page a" realized that they wanted to replace "page b" with the content of "page a". The user decided to do this by deleting "page b" and then renaming it "page a". Following this, somehow the content of the original "page b" was restored by another user and it seems the content of the original "page a" is not available from the Confluence UI. Any tips on how I can track this down?


Answers:
author: Mick Davidson
body: I agree with Jonathon on No 2, I've done that with pages that have been renamed: somehow one gets hidden.

Also, is the user's browser still open or have the closed it? If so, you should just be able to use the Back key to work your way through it's history until you find the right one. If you do, I'd copy the contents to another new page and save that with an entirely different name, at least until the problem's been resolved.

I've noticed in some browsers (Chrome or FireFox are what I normally use) that if you do a 're-open recently closed browser' (or something similar, you not only get the browser but it's history too, so all may not be lost.

Good luck. :)


author: Jonathan Simonoff
body: My guess is that both pages actually still exist, but with the same name. Under the hood, pages are really identified by their ID. When you access a page using its name, Confluence looks up the page ID -- what's happening is that the restored page is hiding the renamed "page a".

This happend to a user of mine a while ago, and I remember that I was able to recover the hidden page, though I'm not sure exactly how I did it. A couple of ways you might be able to deal with it:

1) By examining the browser history for the user to renamed "page a" you may be able to determine the page ID. Then you can access that page with a URL \<confluence URL\>/viewpage.action?pageId=\<the-id\>.

2) If you rename (or delete) the "page b" that you can see, the one that was renamed from "page a" may become accessible with the "page b" URL.
Confluence OnDemand users are not showing in any lists
Asked by olederer:

I have a Jira OnDemand instance and recently added Confluence OnDemand. Despite having given my users all the required global permissions through groups and/or individually, I only have two users showing in the people directory. These are also the only two users I can add to the team in a space.

After signing up for Confluence OnDemand last week, I happened to add one new person to my team today, and gave them Jira and Confluence access. This new user shows up in the people directory and can be added to any space. I have tried revoking access for my other users and re-adding them with no luck. I have reindexed Confluence also with no results.

What else can I do to be able to use and give access to my exisiting Jira users to Confluence?


Answers:
author: Abdoulaye Kindy Diallo
body: The Confluence users group could be missing due to this [bug](https://jira.atlassian.com/browse/AOD-6992). Feel free to raise an issue in [](https://support.atlassian.com)<https://support.atlassian.com>. We will further looking to it and apply the fix.


Tags: cloud

confluence-cloud
hide page-metadata-modification-info
Asked by f:

I see on your documentation that page-metadata-modification-info, that is, creation and edition of a page, is shown only on mouseover, I need that, thanks!


Answers:
author: f
body: i found how digging in your css:

This must be added to layout:

.page-metadata:hover {

opacity: 1.0;

}

.page-metadata {

transition: opacity .25s ease-in-out;

-moz-transition: opacity .25s ease-in-out;

-webkit-transition: opacity .25s ease-in-out;

}

.page-metadata {

opacity: 0;

margin: 0 0 30px;

}


author: tekosyssolutions
body: Fantastic. The CSS code is working for me. Thank you very much!!!!!


Tags: confluence-administration
Is there a list of the default add-on states in Confluence?
Asked by David Dawson:

I've inherited - and upgraded - a Confluence installation in which a number of system add-ons have been disabled. Question is, is there a list anywhere of which add-ons/modules are supposed to be disabled, and which ones are supposed to be enabled?

For example, we've upgraded to Confluence v5.2 and have an add-on called Confluence Profile Plugin. A search suggests this is supposed to be disabled: <https://jira.atlassian.com/browse/CONF-30693>

I know I could set up a vanilla instance of Confluence and manually work through each add-on, checking each module, but is there a quicker way?

Thanks

David


Answers:
author: NotTheRealStephenSifersNOPENOPENOPENOPE
body: Try the following:

[](https://confluence.atlassian.com/display/AOD/Viewing+your+Confluence+Add-ons)<https://confluence.atlassian.com/display/AOD/Viewing+your+Confluence+Add-ons>

You can also set your add-on filter to view "All Add-ons", this will display any add-on that is installed (either enabled or disabled) within your instance.

comments: author: David Dawson
body: Thanks Stephen

I was looking for a list of default add-ons/modules to compare to, really. Having seen the list of all add-ons in my installation, which ones are supposed to be disabled (like the Confluence Profile Plugin) and which ones are supposed to be enabled?

I have found this link:

/admin/viewplugins.action?pluginKey=confluence.sections.space.tools

...which shows both the add-ons and the number of modules enabled in each, which is pretty useful. But still haven't got a list of add-ons and modules enabled by default in a vanilla installation.

David


Tags: confluence-administration
run plugin How to add $current_user to link
Asked by Robert Robert:

Hi after upgrading from Confluence 3.5 to 5.4.3 this weekend I run into problems with the run plugin.

The following old wiki source worked fine on 3.5

{run:autorun=true\|hideRun=true}\[Wartungszugang\|http://was.xxxxx.com/wac.php?who=$current_user_name\]{run}

I didn t find a way to add the current login user to the link. The webserver always gets $current_user_name, instead of the login user ;-(

BR

Robert


Answers:
author: Bob Swift (personal)
body: Works fine here. I assume you have 4.4.0 installed? Consider opening a [support request](https://marketplace.atlassian.com/plugins/org.swift.confluence.run) so you can provide more details.


Tags: bob-swift

confluence-app
Notify on my actions use case
Asked by Patrick_Vanhoof:

Hi,

I wonder what the use case is for the option 'Notify on my actions'. Is it really just to get notifications of changes I make myself? Or is there another useful goal behind it?

In the documentation is mentioned "This affects all subscriptions set": what does this mean?

Thanks,

Patrick


Answers:
author: John Price
body: Patrick -

I've only ever checked this box when I was testing notifications as an administrator. It's very helpful in that scenario. I can't think of another reason to have it on. I'm not sure about "Affects all subscriptions" - filter subscriptions are just scheduled emails that send you a list of tickets that match a filter on a regular schedule.


author: Nic Brough -Adaptavist-
body: The use case is actually "I do **not** want Jira to send me an email to confirm that I've just made a change that I know perfetly well I just made because I was the one doing the clicking".

The flag is there to allow you to opt in to these notifications.
Searching Confluence V5 fail
Asked by Mick Davidson:

Hello,  

in the last couple of weeks we've upgraded to V5.4.3 (download). When we were using 4.3, I could search on 'jpg', filter the results by Attachment and would get several hundred results.  

Now when I do this I get at most 174 results - why is this different?  

FYI, I seach a specific space, then all spaces, then all spaces plus the archive space.  

I get the same results (ie, very few) whether I'm seaching on 'graphics' 'jpg' 'jpgs' or 'png'.  

I can't see why upgrading would make any difference, but I know there's something like 800 graphics an yet I can't find even 20% of them, which is very frustrating.  

Cheers.


Answers:
author: Mick Davidson
body: @Atlassian- FYI it took me five goes to save this question.

The problem was with the labels. I initially used too many characters, or so I thought. Even though I reduced them to the max limit, the page would no longer save; even when I reduced it to just 'confluence search v5' it still wouldn't save.

However, when I removed the 'v5' label, it saved. I know realise that your character limit means that we can't add a label of less than three characters, and not that the whole label section has a minimum of three chars and a max of 46.

Can you please correct your documentation on this so it is clear.

Also, assuming I'm right, having a limit of three chars means I can't add v5, which is what I want to do. Can this limit be changed?


Tags: search
Notification mail
Asked by kA:

Hi friends,

I have one parent page and it's contains the number of child pages. I added only some members in watcher page of the parent. So if i done any modification in parent page they received the notificatin mail but in case if i done the modification in child pages (or) add the new child page under the parent they could not receive the mail. Is there is any possiblity is there to acheive that one in my confluence (On demand).

Thanks in advance,

Karthik A.


Answers:
author: Nic Brough -Adaptavist-
body: No, watching is a 1:1 relationship with a page.

If you weren't using OnDemand, you'd have the option of adding the Enterprise Notifications addon which can do something like that (with a note of caution that if you watch a page near the top of a tree, you can end up with millions of irrelevant emails about sub-page changes that you don't really care about)


Tags: cloud

confluence-cloud
Confluence Vanity / Customised URLS?
Asked by Jim:

So a typical URL is of the form <https://CompanyName.com/display/spaceKey/Name+of+the+Page>with a typical tiny URL of <https://CompanyName.com/x/fgh4j3r>

I have a user request for vanity URLs - of the form <https://CompanyName.com/PageName>

The idea is to lose the /display and /spaceKey parts so that he can have an easy-to-remember URL for presentations, etc.

Is that possible?


Answers:
author: Huiyi
body: Hi Jim,

Will something like below solve your problem?

<https://wiki.resolution.de/go/support>

<https://wiki.resolution.de/go/contact>

I had similar problems with Confluence internally, so our developers created an add-on for our own use. It worked well for me.

One week ago we published it on Atlassian Marketplace, it's called [Redirects and Vanity URL](https://marketplace.atlassian.com/plugins/de.resolution.vanityurl/server/overview).

Give it a try, maybe this will also solve your problem. ;)

Feedback welcome!

Huiyi


author: Sven [Dione Technology]
body: Hi Jim,

You can use Apache (presentation server) with Rewrite mod.

It is bit tricky but does the job.

Regards,

Sven.
export a single page to xml and import it in another Wiki
Asked by Bjorn:

Hi,

We have a page which I exported via the Space admin - Operations - XML custom xml export. Now I want to import this page on another Wiki on another location into a Space with the exact same space key name.

Basically I made the page remotely in an offline version and want to send it via email to the operational version. On the export side I can exactly mark which page(s) I want to export but on the import side on the other Wiki I fail to find this import functionality. It's possible to import a complete back-up but importing/adding a single page in .xml isn't?

Any idea how I can get around this?

Thanks

B.


Answers:
author: Bob Swift (personal)
body: I don't think you can restore to an existing space - see note 3 from [restoring a space.](https://confluence.atlassian.com/display/DOC/Restoring+a+Space)

What you are trying to do is simple using the [Confluence Command Line Interface](https://bobswift.atlassian.net/wiki/display/CSOAP) and the [copyPage](https://bobswift.atlassian.net/wiki/display/CSOAP/Documentation#Documentation-copyPage) action with [targetServer](https://bobswift.atlassian.net/wiki/display/CSOAP/Documentation#Documentation-targetServer) and related parameters.

comments: author: Bjorn
body: Hi Bob,

Thanks for your answer.

Although the CLI method is probably great but for occasional imports with basic end users it's over the top. It also acquires an additional license.

A pity confluence provides a perfectly simple and fine GUI to export a complete page including attachments but doesn't provide the same functionality to import it. Unless I missed it of course.

Regards.

B.
Hiding Confluence Spaces
Asked by Dion Bastian:

My company use confluence mainly as an internal system. However there has been instances where we colaborate with clients. In this instance I am able to restrict their access to other "spaces" in our account.

However they can still see the list of spaces from the "Spaces" dropdown in the menu and the "Site Spaces" list on the dashboard.

Is there anyway that these customers can be restricted to only seeing the list of spaces that they have been granted access to as opposed to the whole list in our account.

Thanks :)


Answers:
author: Nic Brough -Adaptavist-
body: The reason they can see a space is that they have "browse" rights to see it.

Restrictions only work at a page level (and cascade) so although you can hide all the content from a space, you still have the space exposed to them.

You need to work out a way of removing their "can browse this space" rights. Then the space will disappear from the list. (The approach is likely to be "remove everyone's browse rights, then add back only the people/groups that should see it)

comments: author: anuj__sharma
body: @Nic Brough \[Adaptavist\] [Dion Bastian](https://answers.atlassian.com/questions/users?username=557058%7Cf6d91340-4ef2-46b4-ac52-2d3a90ba559e)

Is there any way we can hide or deactivate a space temporarily so that users are not able to access without modifying any user related permission.


author: Nic Brough -Adaptavist-
body: No, you have to do it with permissions (or an add-on)


author: anuj__sharma
body: ok thanks :smile:


author: anuj__sharma
body: Lets say , If i do it with permissions  

Is there any way i can export or save the complete user permissions of a space , so that i can rollback later easily.

Please Suggest any other way if there is one.


author: Nic Brough -Adaptavist-
body: Not really. Take a screenshot or scrape?


author: anuj__sharma
body: Ok  
Screenshot is in my mind for worstcase scenario.

I explored a lot , But i am not able to find any good way .


author: Nic Brough -Adaptavist-
body: Yes, screenshots are the last resort. My other thought was to use the Script Runner to export them to some easy format, but I've not tried it so I don't know if it can be done.


Tags: hide

space
Keep together in pdf export
Asked by Cheryl Schmelzer:

How do I keep paragraph or tip macro content from splitting at the end of a page in a pdf export in On Demand?


Answers:
author: Steffen Heller
body: There is no real solution for this.

In theory it should work with "page-break-before", "page-break-after" and especially with "page-break-inside". For example, adding the following code to your PDF export stylesheet should prevent paragraphs from breaking.

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

The problems is, it seems "page-break-inside" is not supported by the confluence CSS renderer. So all you can do, is try to find some solution with "page-break-after" or "page-break-before".

comments: author: Cheryl Schmelzer
body: Thank you, Steffen. I guess I expected this answer, but was hoping there was a real solution. Appreicate your feedback!


Tags: cloud

custom-field

pdf
after image upload in confluence is spinned by 180 degrees
Asked by Richard Diks:

after uploading image to confluence the systems spins the image automatically for 180 degrees. Image ist jpeg with 3 MB.


Answers:
author: CelesteCS
body: Hello,  
Have a look at the following plugin: <https://marketplace.atlassian.com/plugins/com.celestecs.confluence.image-lossless-rotator>.

It rotates images lossless, which means the image quality and file size are not changed. Additionally it can rotate images based on EXIF orientation tag.  
I believe that is what you need.


author: Don Willis
body: Yup, what Bill said. The image isn't actually being rotated by Confluence, it's being rotated (based on the EXIF information) by everything else you're viewing the image with, and these days pretty much every desktop app will obey that rotation, as are an increasing number of web applications.

Your best bet is to export the image from whatever image editing software you have available. Even basic things like Preview (OSX) or Paint (Windows) should let you do it. A tiny resize or image quality change is usually enough to fix it.


author: BillA
body: If it's a photo taken from an iPhone or mobile device it may be caused by <https://jira.atlassian.com/browse/CONF-17621>


Tags: cloud

image

orientation
ppt download fails in confluence
Asked by Richard Diks:

I try to upload ppt file as attachement in confluence. Since three days I get the message that service is not available. The file is 36 MB large. Do we have a bug here?


Answers:
author: Nic Brough -Adaptavist-
body: Probably not. The standard upload limit is 10Mb. So if you haven't increased that (and I'm not sure you can in OnDemand), then the upload is going to fail. Although I'd expect it to tell you that.

Could you check the limits set?

comments: author: Richard Diks
body: I checked it. It is 100 MB in OnDemand.


Tags: cloud

upload
Create a TelosB motes network
Asked by salem alqahtani:

Hi all.

I am tring to establish a network by using the real telosb motes hardware. I burrend the images on all of them, which is oop_openwsn. Then I connect on of them on my computer. I run (scons runweb). Then I opened a browser to [](http://127.0.0.1:8080/)<http://127.0.0.1:8080/>. I chose the mote and I toggled it and what happend is that all the motes start blinking. That's I think it means I am able to establish the network. However, I want to see the topoloy image on my computer and I want to see how can i bring the data from the mote and to it.


Answers:
author: Nic Brough -Adaptavist-
body: Are you sure this is a Confluence question? I assume what you're trying to do is get Confluence to serve up the topology image based on the output of some other software?

comments: author: salem alqahtani
body: I think my question is configuration question!!


author: Nic Brough -Adaptavist-
body: It might well be, but you have NOT explained what this has to do with Atlassian products.

Please answer the question - which product and what are you trying to do with it?


author: salem alqahtani
body: I am sorry Nic,

I am not trying to build anything so far. My concern to just build a network by using Berkeley source code and connect the motes and see the network. Then I will try to understand the Berkeley source code and if I succeed, I will try to focus on what I have to build.


author: salem alqahtani
body: * by the way I used openvisualzier and I could not see the neighbor mote. Also, when I want to see what the mote that connect to my computer sent to other motes.


author: Nic Brough -Adaptavist-
body: For the third time, what has this got to do with Atlassian products?

This is a place for Atlassian related questions. You have not even mentioned any of them.

PLEASE, explain what this has to do with Atlassian stuff?


Tags: configuration
Images as leaves in nested Expand macro: click on image link, then try to go back to expanded tree view; all expansions have collapsed
Asked by Chris Worley:

I have deeply nested expand macros. The leaves are links to images. When the user clicks on a link to the image, the image pops up. When the user tries to dispatch the image to the previous state of expansion, only the root is displayed.

I see no way to go back to the tree/expand view other than hitting the browser "back" button. When I do the previous expanded state of the view prior to clicking on the image is lost, and only the root is displayed.

Is there any way, when viewing the image, to get back to the state of expansion of the tree that was present before the user clicked in the image link?


Answers:
author: Guilherme Nedel [Atlassian]
body: Hello Chris, if I read you correctly that appears to be a markup limitation. Would it be possible to post the code excerpt, and also clarify a bit on the sentence the follows - "When the user tries to dispatch the image to the previous state of expansion, only the root is displayed."?Thanks!


author: Chris Worley
body: Any helpful clues here?


Tags: expand

image

macro