Jira Service Management Knowledge Base - Error rendering PlantUML
Description
Environment
Attachments
Activity
Michael Griffel February 22, 2024 at 4:07 PMEdited
I think you can do this we two pages:
a “generator” page that contains the plantuml macro(s) and export the images as attachment (PNG!) using the export name parameter:
a “view” page that just include the images from the generator page:
Please note that this only works with PNG and not with SVG images.

Christian Schürer-Waldheim February 22, 2024 at 3:51 PM
Thanks for your support. Will check with Atlassian if there is a solution.
It might be only a workaround, but as normal page attachments do work, couldn’t the macro fallback to just displaying the image instead, if the output is enabled?
Michael Griffel February 22, 2024 at 3:23 PM
Ok and thank you for sharing the logs.
This permission check (by the DownloadGateKeeper) is done by Atlassian inside Confluence and it seems such unauthorized users are not allowed to access the generated files …
Maybe you can open an support request at Atlassian? But I don’t think that this will be changed/fixed in the future …

Christian Schürer-Waldheim February 22, 2024 at 3:00 PM
Yes, in the atlassian-confluence-security.log
:
Michael Griffel February 22, 2024 at 1:33 PM
Do you see some log message like Permission check for user
… in the log?
Details
Assignee
Michael GriffelMichael GriffelReporter
Christian Schürer-WaldheimChristian Schürer-WaldheimComponents
Affects versions
Priority
Major
Details
Details
Assignee
Reporter

When accessing a pages as an external Service Desk user, the PlantUML macro shows an error message:
Fehler beim Ausführen des Makros 'plantuml'
java.io.IOException: com.atlassian.confluence.importexport.resource.UnauthorizedDownloadResourceException
We are using the latest available plugin version. Switching between PNG and SVG doesn’t solve the problem. Other macros render without any errors.
Internal users can view the page and all PlantUML content.