Attachments macro - Commands are not working, System Error

In an effort to simplify a page for HR admins that will be used to upload/download attachments, I have used the attachments macro.

Since I have documents related to 3 areas, I used three instances of the attachments macro and each one displays attachments hosted in another page in the space. This is done using the macro parameter Page Title.

The upload and download actions are working fine. However, non of the commands (Properties, View, Edit in office (for such files) or Remove works. It seems that the path to the attachment is not valid. I see exceptions (System Error page) mentioning a NullPointerException or a Page Not Fount when executing the View command.

When doing this from the page that hosts the attachments, it does fine.

Note that the hosting pages are stored in the root of the space cause they shouldn't be browsed from a non-privileged user.

Could you please help?

2 answers

Hi Andreas,

Have this ever worked before? If the path seems invalid, can you check that your Server Base URL in Confluence Admin > General Configuration matches the URL you're using to access Confluence?

Your full logs would also help to shed some light to this issue, so you might want to create a support ticket at https://support.atlassian.com with your logs so we can assist you further.

Cheers.

I've opened a ticket, the human answer plus the one came from Hercules system is the same: umlaut characters in the URL.

This is not the case however, the file name is in pure latin, the file can be downloaded normally if you click on it. Commands however are not working, except if you do that in the original page that hosts them.

I wonder if somebody else is using the attachment macro the way I do, cause it doesn't work for me. All file names are clean, char set is in UTF8, don't know what else to try except keeping the attachments in the same page with the macro. I'll try an update to latest version hoping that the problem will be solved!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,901 views 27 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you