Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-17768

Uploading a new version of image attachment doesn't update thumbnail

      1. Create a new page
      2. Attach image through the insert image dialog
      3. save page
      4. edit page and open insert image dialog again
      5. upload new image of same file name
      6. thumbnail is not updated

      If we hit insert, even though the thumbnail is not updated the new image is inserted in the page.

        1. Step1.png
          Step1.png
          36 kB
        2. Step2.png
          Step2.png
          11 kB
        3. Step3.png
          Step3.png
          35 kB
        4. Step4.png
          Step4.png
          17 kB
        5. Step5.png
          Step5.png
          16 kB

            [CONFSERVER-17768] Uploading a new version of image attachment doesn't update thumbnail

            Updating fix-for version to a RC so it doesn't show up in the official release notes

            Per Fragemann [Atlassian] added a comment - Updating fix-for version to a RC so it doesn't show up in the official release notes

            Verified manually.

            Penny Wyatt (On Leave to July 2021) added a comment - Verified manually.

            I have raised the issue with the images not updating in the RTE separately as CONF-17874.

            Please re-resolve this issue (CONF-17768) and I will mark it as QRed. Thanks.

            Penny Wyatt (On Leave to July 2021) added a comment - I have raised the issue with the images not updating in the RTE separately as CONF-17874 . Please re-resolve this issue ( CONF-17768 ) and I will mark it as QRed. Thanks.

            This isn't the ideal behaviour, but it's not strictly related to this bug (although the cause is pretty much the same) and has probably always been around. We'd have to rerender every image after a new upload to correct it.

            It might be worth raising it as a new bug.

            Andrew Lynch (Inactive) added a comment - This isn't the ideal behaviour, but it's not strictly related to this bug (although the cause is pretty much the same) and has probably always been around. We'd have to rerender every image after a new upload to correct it. It might be worth raising it as a new bug.

            Attached screenshots to accompany the previous comment.

            Penny Wyatt (On Leave to July 2021) added a comment - Attached screenshots to accompany the previous comment.

            Using 3.1-SNAPSHOT...

            The thumbnail is updated as expected, but once the dialogue is closed, the image visible in the RTE is the old one.

            That is:
            1) New Page->Rich Text->Insert Image->Upload image A.
            2) Insert image A.
            3) Insert Image->Upload image B with the same name.
            4) Insert image B.

            At this point, there are two images visible in the RTE. They are both image A, they are expected to be image B.

            5) Save the page.

            The page now correctly displays both images as image B.

            Penny Wyatt (On Leave to July 2021) added a comment - Using 3.1-SNAPSHOT... The thumbnail is updated as expected, but once the dialogue is closed, the image visible in the RTE is the old one. That is: 1) New Page->Rich Text->Insert Image->Upload image A. 2) Insert image A. 3) Insert Image->Upload image B with the same name. 4) Insert image B. At this point, there are two images visible in the RTE. They are both image A, they are expected to be image B. 5) Save the page. The page now correctly displays both images as image B.

            Even though we set no cache on the thumbnail, this doesn't seem to work for the preview. So I tacked a nonce on to it.

            Andrew Lynch (Inactive) added a comment - Even though we set no cache on the thumbnail, this doesn't seem to work for the preview. So I tacked a nonce on to it.

              alynch Andrew Lynch (Inactive)
              mjensen m@ (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: