-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
3
-
Severity 3 - Minor
-
Issue Summary
Upon adding the attachments macro to a global or space template, it returns an error "
Error rendering macro 'attachments' : Cannot invoke "com.atlassian.confluence.core.ContentEntityObject.getld)" because "contentEntityObject" is null".
However, it is possible to save the template and use it to create a new page based on this template.
The attachment macro will be added as expected in the page created based on that template, without the error.
Steps to Reproduce
- Go to Confluence Settings > Global Templates and blueprints
- Click on the button Add global page template
- Add a title to the template page and the attachments macro
- Save the Template
- Create a new page
- Search for the Template just created that contains the attachments macro
- Publish page
Expected Results
The attachments macro in the template creation does not return an error, it displays the macro as expected
Actual Results
"Error rendering macro 'attachments' : Cannot invoke "com.atlassian.confluence.core.ContentEntityObject.getld)" because "contentEntityObject" is null" is displayed in the template edit mode upon creation, instead of displaying the attachment's macro expected UI.
Workaround
Save the template, even though the error is there. It should work normally when creating a new page based on the template.