Details
-
Bug
-
Resolution: Timed out
-
Low
-
2
-
Severity 3 - Minor
-
Description
Summary
When moving an image that was already present in a global template, the move will not be taken into account when saving the template as well as all other changes made during the edit.
Image in the template was attached from another Confluence page.
Environment
(Optional - If Applicable)
- Confluence Cloud version 1000.132.1
Steps to Reproduce
- Edit a global template with an image present already in it (image coming from another Confluence page).
- Copy the image and paste it in another section.
- Make other changes to your template.
- Save the template (no error message is displayed on the UI).
Expected Results
Changes are saved and appear when using the template. Or an error message should be displayed if this is per design.
Actual Results
Changes are not saved and the below exception is thrown in Confluence log:
Error unmarshaling editor embedded image java.lang.IllegalArgumentException: Content must not be null at org.springframework.util.Assert.notNull(Assert.java:115) at com.atlassian.confluence.pages.attachments.CachingAttachmentDao.getLatestAttachment(CachingAttachmentDao.java:70) at com.atlassian.confluence.pages.DefaultAttachmentManager.getAttachment(DefaultAttachmentManager.java:125) at com.atlassian.confluence.pages.DefaultAttachmentManager.getAttachment(DefaultAttachmentManager.java:99) at com.atlassian.confluence.pages.DelegatorAttachmentManager.getAttachment(DelegatorAttachmentManager.java:104) at com.atlassian.confluence.pages.CachingAttachmentManager.getAttachment(CachingAttachmentManager.java:163) ... 2 filtered
Workaround
Attach the image directly to the template and then it works.