Attachments with blank unicode can be uploaded and causes page to break

XMLWordPrintable

    • 2
    • Severity 3 - Minor

      Issue Summary

      Steps to Reproduce

      1. Create a page, and upload this images in the zip file below.
      2. Both image can be uploaded and will appear fine in preview.
      3. Publish the page, and the page will not load with this error message.
        • We couldn't display your content
      4. For the image without the unicode, the storage format will show that the image is linked correctly.
        • <ac:image ac:align="center" ac:layout="center" ac:original-height="800" ac:original-width="1280">
              <ri:attachment ri:filename="Name.png" ri:version-at-save="1" />
          </ac:image>
      5. For the image with the unicode, the link to the file is broken, causing the issue.
        • <ac:image ac:align="center" ac:layout="center" ac:original-height="800" ac:original-width="1280">
              <ri:attachment ri:version-at-save="2" />
          </ac:image>
      6. It appears that the unicode caused the link to the image to not be generated.

      Expected Results

      • Either,
        1. The attachment should fail to be uploaded, with a user friendly error message.
        2. Or if we want to upload there types of files, the link to the attachment should be generated, and displayed correctly.

      Actual Results

      • Attachment uploads sucessfully, but not linked, causing the page to not load any content and becomes uneditable.

      Workaround

      • Use a Unicode detector to find and remove the special character, and reupload the attachment.
      • Content needs to be edited via source or Rest API.

        1. Files.zip
          61 kB
          Sattesh M

            Assignee:
            Unassigned
            Reporter:
            Sattesh M
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: