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

Pasting a chart image from native Office Applications on Windows doesn't trigger upload and result in server exception

      The fix for this bug has been released to our Long Term Support release.

      The fix for this bug is now available in the latest release of Confluence 7.13 and 7.19

      Issue Summary

      Image pasting doesn't trigger upload sometimes, which is caused by that uploader resource was not loaded properly.

      Steps to Reproduce

      • Create a chart on Window with Microsoft® Excel® for Microsoft 365 MSO (Version 2202 Build 16.0.14931.20116) 64-bit
      • Open editor in Confluence
      • Copy & paste the chart to Confluence editor

      Expected Results

      Image should be uploaded.

      Actual Results

      No upload progress bar shown. No console errors.

      Note:

      After pasting chart from Excel to Chrome on Windows, when paste event triggered, the image is not inserted in DOM tree, which breaks existing base64 images detection. 

      base64Images = tinymce.activeEditor.getDoc().querySelectorAll('img[src^="data:image"]:not(.editor-inline-macro)');

      Workaround

      Upload the image on Firefox.

      Upload the image through upload button.

            [CONFSERVER-78052] Pasting a chart image from native Office Applications on Windows doesn't trigger upload and result in server exception

            Niraj Bhawnani made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 781598 ]
            Zac Xu made changes -
            Remote Link Original: This issue links to "Page (Confluence)" [ 730426 ]
            Zac Xu made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 730426 ]
            Niraj Bhawnani made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 724933 ]
            Zac Xu made changes -
            Summary Original: Pasting an chart image from native Office Applications on Windows doesn't trigger upload and result in server exception New: Pasting a chart image from native Office Applications on Windows doesn't trigger upload and result in server exception
            Niraj Bhawnani made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 724738 ]
            James Ponting made changes -
            Description Original: h3. Issue Summary

            Image pasting doesn't trigger upload sometimes, which is caused by that uploader resource was not loaded properly.
            h3. Steps to Reproduce
             * Create a chart on Window with *Microsoft® Excel® for Microsoft 365 MSO (Version 2202 Build 16.0.14931.20116) 64-bit*
             * Open editor in Confluence
             * Copy & paste the chart to Confluence editor

            h3. Expected Results

            Image should be uploaded.
            h3. Actual Results

            No upload progress bar shown. No console errors.
            h3. Note:

            After pasting chart from Excel to Chrome on Windows, when paste event triggered, the image is not inserted in DOM tree, which breaks existing base64 images detection. 
            {code:java}
            base64Images = tinymce.activeEditor.getDoc().querySelectorAll('img[src^="data:image"]:not(.editor-inline-macro)');{code}
            h3. Workaround

            Upload the image on Firefox.

            Upload the image through upload button.
            New: {panel:bgColor=#edffeb}
            *The fix for this bug has been released to our Long Term Support release.*

            The fix for this bug is now available in the latest release of Confluence 7.13 and 7.19
            {panel}
            h3. Issue Summary

            Image pasting doesn't trigger upload sometimes, which is caused by that uploader resource was not loaded properly.
            h3. Steps to Reproduce
             * Create a chart on Window with *Microsoft® Excel® for Microsoft 365 MSO (Version 2202 Build 16.0.14931.20116) 64-bit*
             * Open editor in Confluence
             * Copy & paste the chart to Confluence editor

            h3. Expected Results

            Image should be uploaded.
            h3. Actual Results

            No upload progress bar shown. No console errors.
            h3. Note:

            After pasting chart from Excel to Chrome on Windows, when paste event triggered, the image is not inserted in DOM tree, which breaks existing base64 images detection. 
            {code:java}
            base64Images = tinymce.activeEditor.getDoc().querySelectorAll('img[src^="data:image"]:not(.editor-inline-macro)');{code}
            h3. Workaround

            Upload the image on Firefox.

            Upload the image through upload button.
            Zac Xu made changes -
            Link New: This issue causes CONFSERVER-79517 [ CONFSERVER-79517 ]
            James Whitehead made changes -
            Status Original: Closed [ 6 ] New: Closed [ 6 ]
            Zac Xu made changes -
            Fix Version/s New: 7.19.0 [ 101690 ]

              zxu2@atlassian.com Zac Xu
              zxu2@atlassian.com Zac Xu
              Affected customers:
              14 This affects my team
              Watchers:
              24 Start watching this issue

                Created:
                Updated:
                Resolved: