Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-53532

Changes are not taken into account when moving an external image in a global template

    XMLWordPrintable

Details

    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

      1. Edit a global template with an image present already in it (image coming from another Confluence page).
      2. Copy the image and paste it in another section.
      3. Make other changes to your template.
      4. 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            eratsimiala ManuR
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: