youngmon/atlassian-qna huggingface dataset:
URL's with special characters don't work when opening in new tab in general activity feed
Asked by Taco Zoetemelk:

At the moment i'm facing a minor issue with the general Activity feed page:  
companyname.atlassian.net/wiki/discover/all-updates  

We use \[\] brackets in our blog titles.   
The url that is created for these pages, do not contain the brackets.

If I open one of these links from the general activity feed in a new tab, the url that is linked to, contains these brackets. This causes a 400, "page does not exist" error message.

If I click on the link directly the url works perfectly.  
Also opening a new tab from a space with the recent activity widget, works like it should.   

So the issue only seems to happen when opening pages from the general activity feed page in a new tab.

OS: Windows 10  
Browser: google Chrome 80.0.3987.87  


Answers:
author: Taco Zoetemelk
body: additional information. when opening a page from a space activity feed in a new tab, the brackets are translated to ascii codes in the url:

\[ = %5B

\] = %5D

In the general activity feed page they are literals.


Tags: cloud

confluence-cloud
Include Page Macro: Is there a known issue using markup within a custom User Macro?
Asked by Shaun Grose:

Hi community, I'm running into a really annoying issue with the "Include Page" macro within a User Macro.

++Background++

We have a large team, and many people have different permissions to different content, including a few reference pages for anonymous users in the larger organisation. If the user doesn't have access to the page being referenced by an Include macro, the error message looks a bit ugly, so we want to provide some better content instead. Hence we have written a User Macro that outputs the Include Page macro if the user does have access, otherwise we output an HTML block.

++Problem++

The 'include' macro works fine on its own, but if I create it with markup using a custom User Macro, it doesn't load the referenced page, it loads the *current* page within itself.

Example: I have two pages: CurrentPage and LookupPage:

1. I can add the Include Page macro on my page, 'CurrentPage'

```
{include:mySpace:LookupPage|nopanel = true}
```

As expected, this renders correctly:
> {CurrentPage Content}  
> - {LookupPage Content}  
> {Rest of CurrentPage Content}

2. If I output the macro via the User Macro:

```
#set($spacekey = "mySpace")
#set($pageName = "LookupPage")
#set($macro = "{include:${spacekey}:${pageName}|nopanel = true}")

#if ($permissionHelper.canViewPage($action.remoteUser, $spacekey, $pageName))
  $action.getHelper().renderConfluenceMacro($macro)
#else
  <span>some content</span> 
#end
```

In the Edit Macro Preview for my User Macro, I correctly see the content from LookupPage, as I should, but when I **publish** the page, instead of seeing LookupPage content where the macro is, I see the current page nested within itself:
> {CurrentPage Content}
>
> - {**CurrentPage** Content}  
> - *(Error that CurrentPage is already referenced)*   
> - {Rest of **CurrentPage** Content}
>
> {Rest of CurrentPage Content}

I've tried just outputting the $macro text and feeding into the markup macro to make sure there wasn't anything dumb getting written out, but it's definitely getting calculated correctly (plus, I wouldn't see LookupPage content in the Preview if it was wrong).

Has anyone run into this issue? Is there something I'm doing wrong?

*(Minor edit for clarity)*


Answers:
author: Shaun Grose
body: :-(  
No ideas?


Tags: atl-adm

confluence-server
Errror with standard confluennce decorator
Asked by Heiko:

Hello everybody i wrote a velocity template where i use this decorator

```
<meta name="decorator" content="atl.general" />
```

to get the standard header. In the devlopmen enviroment anything is ok but when i load it to our test instance it shows very ugly because we use the bitvodoo enterprise theme.

But i have no idea how to solve the Probleme

Thats whats happens in our test instance.

![fehler.PNG](/t5/image/serverpage/image-id/81914iAE89CE35DD0804C2/image-size/large?v=v2&px=999 "fehler.PNG")


Answers:
author: Sven Schatter _Lively Apps_
body: Hi Heiko,

this might happen because some resources of the bitvoodoo theme are not fully loaded on your custom page. You should try reaching out to bitvoodoo about this. Maybe they can give you a **context** or **web-resource keys** that you can require in your Velocity Template via the webResourceManager so it will look good again. :)

Cheers,  
Sven


Tags: bitvoodoo

confluence-server

layout

server

theme
Encode username and password in URL
Asked by Manuel:

Hi all,

is it possible to encrypt the username and the password in an URL, like no one can directly read it? We don't want to use anonymous users anymore. Neither send the password in plain writing in the url like in...

\<confluence-url\>/dashboard.action?os_username=\<username\>\&os_password=\<password\>

Source: [Confluence URL list](https://confluence.atlassian.com/confkb/confluence-url-list-317949394.html "Confluence URL list")

Thanks!


Answers:
author: Shannon S
body: Hello Manuel,

Thank you for contacting us about this. We have plans to remove support for this completely in 2020, so I don't recommend using this method. There is not a way to encode this in the URL, either.

Here's the request we will work on to remove the functionality:

* [CONFSERVER-33816](https://jira.atlassian.com/browse/CONFSERVER-33816) *Remove support for os_username, os_password and os_cookie*

There's likely a better way to accomplish what you need to do. Can you tell us exactly what you're trying to do so we can come up with a better solution for you?

Regards,

Shannon

comments: author: Manuel
body: Hi Shannon,

Thank you for your reply.

We use Confluence internally as a WIKI. Some staff members use confluence to look up information they need for production. Since they do not produce content they currently use anonymous access. We want to disable anonymous access now, so we want them to use one shared user. To provide the login credentials we thought about a link with a "complecated hash code" (or the like) which we can store on the browsers on the PCs at the shopfloor. Just to make it difficult to get this credentials and change the password silently from time to time. Just like when you share a link to a shared folder in the cloud. Do you have any suggestion?

Thanks!

Regards, Manuel


author: Shannon S
body: Hi Manuel,

Thank you for explaining a bit more about your requirements.

Confluence doesn't send the username and password via the URL, but the page headers. If when you are sending as variables, then it will be encrypted when you use https.

The best solution would be to make sure that each of your users has their own Confluence license. You can create separate groups in Confluence so that some of your users can only read and not edit.

Otherwise you would need to develop something in-house. Have a look at our [Developer Resources](https://developer.atlassian.com/resources) for help on that. We also have a Developer Community, much like this one, where they can help you with any issues you're having with this type of customization.

Regards,

Shannon


Tags: confluence-server

server
Upgrade from 6.15.2 to 7.2.2 fails
Asked by Ed Kok:

When running the *atlassian-confluence-7.2.2-x64.bin* from /tmp the installer fails with:

*The upgrade process will shut down your existing Confluence installation to complete the upgrade.*

*Do you want to proceed?*   
*Upgrade \[u, Enter\], Exit \[e\]*   
*u*

*Your instance of Confluence is currently being upgraded.*   
*Shutting down Confluence...*   
*Checking if Confluence has been shutdown...*   
*Backing up the Confluence installation directory*

*Deleting the previous Confluence installation directory...*

*Extracting files ...*   
*confluence/WEB-INF/atlassian-bundled-plugins/document-conversion-library-*   
*The installation file is corrupted. If it is a download please try it again.*   
*Rolling back changes ...*

Also a fresh downloaded copy fails with the same error.  
The server is a RedHat rhel7 64-bit with plenty of diskspace and memory.  

Suggestions welcome.


Answers:
author: Ed Kok
body: I'm lucky it is on a VM of which I made a snapshot before the upgrade because the install directory was completely removed. Somuch for "*Rolling back changes ...*".


Tags: confluence-server

server
Duplicate draw.io diagram tab gives "Illegal Constructor" message
Asked by JD Stuart:

I have a diagram with 2 tabs names "Option A" and "Option B". When trying to duplicate wither of the tabs I get a popup stating "Illegal Constructor".

The message in the popup is different depending on which browser I use.

Chrome: "Illegal Constructor"

Safari: "function is not a constructor (evaluating 'new a.constructor')"


Answers:
author: JD Stuart
body: ![Screen Shot 2020-02-05 at 16.55.17.png](https://community.atlassian.com/t5/image/serverpage/image-id/81883i8AB90B252A235054/image-size/large?v=v2&px=999 "Screen Shot 2020-02-05 at 16.55.17.png")

comments: author: David Benson _draw_io_
body: This is using the latest draw.io plugin for Confluence Cloud? What browser/version and OS are you using?


author: bjorkblom
body: I have the very same issue. I'm using a plain draw.io setup but with the C4 extension (<https://tobiashochguertel.github.io/c4-draw.io>). I cannot duplicate, copy elements nor tabs in my diagram.

The issue occurs in the browsers that [@JD Stuart](/t5/user/viewprofilepage/user-id/3677702) explains as well as in the Draw.io desktop application. I'm using OS X.


author: David Benson _draw_io_
body: That C4 extension is not written properly, you should not use it.


Tags: confluence-cloud

draw.io
Create from template button not working
Asked by Abhishek:

We created a meeting template in one of our space.

We added a button using "Create from template" macro that creates a page from our meeting template.

But everytime any user clicks on the button a dialogue shows up, but nothing happens.

Even from the left sidebar, when we select the template it does nothing, when we hit Create.

We are on the cloud version of Atlassian/Confluence.


Answers:
author: Shannon S
body: Hello Abhishek,

Welcome to Atlassian Community! It's nice to meet you.

I believe you might have been running into this issue:

* [CONFCLOUD-69212](https://jira.atlassian.com/browse/CONFCLOUD-69212) *Cannot create a page using custom page templates for space*

There was an issue where you wouldn't be able to use custom page templates with the Create from Template macro. This issue has been resolved as of last week.

Can you tell me if you are still encountering this issue today?

Regards,

Shannon

comments: author: Samuel Huntley
body: Hello Shannon/Atlassian Team, I've run into a similar issue as well:

### Cause {#toc-hId-1287500599}

org.apache.velocity.exception.ParseErrorException: Invalid arg #4 in directive #tag/pages/createpage-entervariables.vm\[line 24, column 21\]  
at org.apache.velocity.Template.process(Template.java:141)


author: Sarah Kladstrup
body: We are also having this problem, but we're using Confluence Server: "org.apache.velocity.exception.ParseErrorException: Invalid arg #4 in directive #tag/pages/createpage-entervariables.vm\[line 24, column 21\]"


author: Claire Ang
body: I have same issue as well


author: Simon Ohnesorg
body: I am struggling as well, the dropdown menu for the template name is not populated.

Are there special settings needed for those?


author: scott_boisvert
body: Anyone figured out what is causing this (we're getting it when we add a variable to the template):  
[@Shannon S](/t5/user/viewprofilepage/user-id/510046)

### Cause {#toc-hId-1941411251}

org.apache.velocity.exception.ParseErrorException: Invalid arg #4 in directive #tag/pages/createpage-entervariables.vm\[line 23, column 21\]  
at org.apache.velocity.Template.process(Template.java:141)


Tags: cloud

confluence-cloud
How to get tables to render the same way when editing, previewing and publishing
Asked by howard.waterfall:

I have tables in both columns of a "Two Column Layout". When I'm editing or previewing they look great, but when I publish, the columns expand and I end up with scroll bars. Very annoying. Any workaround? See attached images (first is what I see while editing \& previewing, the second is the published table with scroll bars).

![EditAndPreviewTable.png](/t5/image/serverpage/image-id/81879i386881843316731C/image-size/large?v=v2&px=999 "EditAndPreviewTable.png")![PublishedTable.png](/t5/image/serverpage/image-id/81880i44EAAD2A76A77F94/image-size/large?v=v2&px=999 "PublishedTable.png")


Answers:
author: Shannon Bileski
body: This seems to be an issue in Confluence Cloud. Is there a workaround?


Tags: confluence-cloud
Stuck on page loading
Asked by jng_eps:

There are times where I try to edit a page and I get stuck on a loading screen (The one where the confluence icon is in the middle surrounded by a white background).

Has this been happening to anyone else? I get randomly stuck on this page for about 10-15 minutes every now and then and refreshing, closing and reopening Confluence does not help.


Answers:
author: Shannon S
body: Hi there,

Welcome to Atlassian Community. It's nice to meet you.

This might be a network issue that you're encountering, or a performance issue. It's hard to say for sure. When it's happening you can speak to your network admins and see if they can detect anything, or you can [generate a HAR file](https://confluence.atlassian.com/kb/generating-har-files-and-analyzing-web-requests-720420612.html) and review that to see what is taking so long to load.

Alternatively, you can raise a ticket with our [Cloud Support Team](https://support.atlassian.com/contact), and we can have a look for you and see if it's something on our end.

Cheers,

Shannon


Tags: cloud

confluence-cloud
How do you copy and paste a table within the same page?
Asked by Novan Sachrudi:

I have a table on a page that I need to move into either a page properties macro and/or a collapse/expand macro.   

I took a bit of time doing the table and would really rather not spend the same time creating the table again.   

Posing this question again because in the past there have been workarounds but none of them seem to work anymore.


Answers:
author: Dara
body: In the new editor, if you click inside the table, a small edge will appear along the top and left side. Click the corner at the top left and you will select the entire table. If you Copy the selected area, you now copy the entire table.

Hope this helps!

comments: author: Novan Sachrudi
body: Thank you Dara, that worked :)


author: Sireesha Dugginapeddi [Appfire]
body: Hi [@Novan Sachrudi](/t5/user/viewprofilepage/user-id/3115365)

You can

1. add the page properties and/or collapse/expand macro to the page
2. copy/cut paste the entire table as is into the body of the macro.

In both new editor experience and older editor, this work.

In case the table cells' content does not get pasted as expected, you can add a dummy table (2X2) from the toolbar. With the cursor in the first cell of this table, paste the copied/cut table content into this table.

Once of these should work. Let me know if you need additional help.

Thanks

Sireesha


Tags: confluence-cloud
How to use TOC links, anchor links, include SnagIt images
Asked by tenduinc:

Perhaps I am just not seeing or finding it but many things that I expect to be easy seem overly difficult or to just not work.

A general standard is, given a TOC one can click on an item in the TOC to be taken to that header in the document, in Confluence it goes back and forth vs to the header.

I cannot seem to find (or remember) how to do something as simple as using an anchor link (an intra-page hyperlink).

Why can I not seem to copy a simple SnagIt image into a Confluence page?


Answers:
author: Sireesha Dugginapeddi [Appfire]
body: Hi [@tenduinc](/t5/user/viewprofilepage/user-id/3584749)

++TOC links++ - Sorry, I am little confused with back and forth vs the header. Once you click the link from TOC, you are navigated to the respective topic/header. To go back to TOC, you will have to scroll back.

If you are looking for a floating TOC, Atlassian doesn't provide the feature natively. There is still an open ticket, where you might want to add your vote. [CONFSERVER-57903.](https://jira.atlassian.com/browse/CONFSERVER-57903?_ga=2.9804661.1396362008.1580900986-748161253.1533556773&error=login_required&error_description=Login+required&state=91498087-8a1b-402e-b04f-eedffe966b83)There is [this macro](https://marketplace.atlassian.com/apps/1221271/easy-heading-free-macro-for-confluence?hosting=server&tab=overview) that does the job for you (in server).

For more details about native TOC macro, refer to [this](https://confluence.atlassian.com/confcloud/table-of-contents-macro-724765294.html) link.

++Anchors++ - Refer to [this](https://confluence.atlassian.com/confcloud/insert-links-and-anchors-724764900.html) article to know all about links and anchors for both new and legacy editor.

++Snagit images++ - I am assuming you are including the .jpg or .png formats of the Snagit image in your Confluence page. It is always suggested to not copy paste the image, you should insert the intended image (.jpg or .png format) into your page instead. This ensures the image display as expected. If not, at times you might see a broken image after publishing or on a different browser.

Hope this helps!

Thanks

Sireesha

comments: author: tenduinc
body: To clarify the issue I am having:

I well understand the standard operation of a TOC, one should be able to click on a TOC item and be taken to the related heading. However, when I click on a TOC item, Confluence "flashes" to the header then back to the TOC (it does not stay on the header).

The articles you reference are the ones I went to, read, and tried before posing my question.

Anchors: it seems that in order to get the link to a word or phrase in an article one must be in Publish mode. Then, to insert that link where it needs to be, one must be in Edit mode. Which means that I must go back and forth between Publish and Edit every time I want to put in a simple anchor link.

SnagiIt Images: thanks for the tip, I will try inserting the image, just seems like it should be easier


Tags: cloud

confluence-cloud
Searching for content within expand macro
Asked by katherine.smith4:

Is there a way for the titles of your expand macros to appear in a confluence search, not just the content of the expand? Additionally, when something is searched for is there a way for it to be automatically expanded instead of the search bringing you to a page of closed expand macros where you have no knowledge of where what you're looking for may be?


Answers:
author: Sireesha Dugginapeddi [Appfire]
body: Hi [@katherine.smith4](/t5/user/viewprofilepage/user-id/3744207)

I am afraid the answer for both of your questions is No. The title of your Expand macro doesn't show the page results on searching. When you search for the content within the macro, you see the page in the search results. But when you navigate you do not see the search macro expanded automatically.

Here is the ticket with Atlassian where you might want to add your vote - [CONFSERVER-27077](https://jira.atlassian.com/browse/CONFSERVER-27077?_ga=2.148282615.1396362008.1580900986-748161253.1533556773&error=login_required&error_description=Login+required&state=7126d500-f872-4a1b-bbef-8b68627b3e7d)

Here is another community question where a possible solution is suggested. Please take a look - [294206](https://community.atlassian.com/t5/Confluence-questions/How-to-create-an-quot-Expand-All-quot-button-for-Confluence/qaq-p/294206)

Hope this helps!

Thanks

Sireesha

comments: author: Daniel Yoon
body: This is the worst kind of feature there is. It becomes the pages entirely useless as critical information buried inside the collapsed section will not be searchable. Why is there such feature in the first place? Authors of pages may not understand such implications and blindly use it.


author: claribel carbajal
body: Agree with the above comment. This is not helpful at all.


author: Brent Heritier
body: Agree with the above. I have a page that would be incredibly long without using the Expand macro. However, the page is less functional with the macro since it's not searchable in any way.


author: Adam Harris
body: Agree with the above. Let's get on this please. Will comment in the 27077 as well.


Tags: cloud

confluence-cloud

expand
How can I get a list of spaces for which I am a space admin?
Asked by Rob Horan:

Is there any way to generate this report?


Answers:
author: Alison
body: Hi [@Rob Horan](/t5/user/viewprofilepage/user-id/853604) ,

Can you try going to Spaces \> View all spaces \> My spaces?

comments: author: Rob Horan
body: Hi Alison,

That definitely doesn't show all the spaces I'm a space admin for. I just tried it in a client instance in which I created MANY spaces and I got a whole three spaces in return at "My Spaces". Definitely not it, but thank you :)


Tags: confluence-server

server
Can't edit page
Asked by Dina Gerbasio:

I created a page and can't edit it. Everything is greyed out so I can't click anything to add text (see image). I'm an admin so I definitely have access to do this. Thanks in advance.![2020-02-05_15-47-47.png](/t5/image/serverpage/image-id/81857i500F6F15E3ACF0EB/image-size/large?v=v2&px=999 "2020-02-05_15-47-47.png")


Answers:
author: Mick F
body: Try going to Confluence Settings -\> Space Permissions (in the Security section) and look at the Individual Spaces section. You might have the option to "Recover Permissions" in the Operations column. This worked for me recently when I had your problem.

Cheers,

Mick


Tags: cloud

confluence-cloud
Why isn't the XML-parsing error in Page Properties Report fixed already?
Asked by jeff kennedy:

Under certain circumstances this error is appearing in the results of a Page Properties Report:

* Error: \[com.ctc.wstx.exc.WstxLazyException\] Unexpected character ' ' (code 32) (missing name?) at \[row,col {unknown-source}\]: \[x,y\]

...which is very like, but not identical to, the bug reported as resolved a few years ago in <https://jira.atlassian.com/browse/CONFCLOUD-37081>

The reproducible steps i have here related to how an academic publication is being referenced --- when it's done in the correct format, it says something like this:

* Disney, M. \& Harrow, G. (2016) *Echo's Bones --- a story to make people shudder*, etc, etc, etc.

...the offending/triggering character sequence is, in this instance, period-space-ampersand, ". \&", which, when i remove, renders the remaining text faithfully in the Page Properties Report.

However, i need the publication format to be correct both when people see it on the underlying page and also in the rendered Page Properties Report.

What's the issue with ". \&", and are there similar constructions that also trigger this error, and what remedies and/or product fixes are in the pipeline to address this?

![confcloudpagepropertiesreport01.jpg](/t5/image/serverpage/image-id/81849iD9244A33F5FFD19D/image-size/large?v=v2&px=999 "confcloudpagepropertiesreport01.jpg")


Answers:
author: Shannon S
body: Hi Jeff,

Thank you for raising this with us. It looks like it could be a new bug. Could you please raise a ticket with our [Support Team](https://support.atlassian.com/contact), so we can have a look at your error logs and create a new bug if needed?

Thank you for your help!

Regards,

Shannon

comments: author: jeff kennedy
body: Thanks Shannon, that's done now, and the support-ticket reference is JST-550845.


author: Shannon S
body: Thanks, Jeff.

I've left a comment on there for Suba, but I'll be watching the case so we can get this thread updated once it's resolved.

Thank you again and take care,

Shannon


Tags: confluence-cloud