Pasting emoticons into visual tab of rich text editor can lead to Unable to render embedded object errors

XMLWordPrintable

    • 7.03
    • 4
    • Severity 3 - Minor
    • 9

      Summary

      Copy and pasting JIRA emoticons such as or from another issue can lead to the URL for the image instead of the macro being pasted. On subsequent edits the URL for the emoticon image gets currupted leading to an error in the field/comment:

      Unable to render embedded object: File (/jira/images/icons/emoticons/check.png) not found.
      

      Environment

      • Reproduced in Safari and Chrome (mac)

      Steps to Reproduce

      1. Copy only the image from an existing issue without any additional spaces or text.
      2. Paste this into the visual tab of the field/comment editor
      3. If you look at the text tab now you will see the full URL of the check.png file instead of
      4. Save the changes
      5. Everything will display correctly because the full URL is there.
      6. Edit the field again
      7. Using the visual tab, add or remove text (if you edit with the text tab, this problem will not occur)
      8. Save the changes
      9. You will now see the error

      Expected Results

      Emoticons should appear as macros not image attachements when pasted. If pasted as image attachments, their URLs should not be altered on subsequent edits and the images should continue to appear and render properly.

      Actual Results

      After subsequent edits and sometimes the initial paste, the emoticons will fail to render and instead be replaced by the following error:

      Unable to render embedded object: File (/jira/images/icons/emoticons/check.png) not found.
      

      Notes

      Reproduced in this issue here below, take a look at history tab for how the contents are changed:
      working emoticon

      Unable to render embedded object: File (/images/icons/emoticons/check.png) not found. Paste fails in JAC as well.

      Workaround

      You can avoid this issue by:

      • Only copying and pasting emoticons with additional text
      • Only editing the field/comment using the text tab

      Once the error is displayed you can edit the field/comment to replace the image macro with the proper emoticon macro.

            Assignee:
            Tomasz Kanafa
            Reporter:
            Douglas McMorris (Inactive)
            Votes:
            23 Vote for this issue
            Watchers:
            23 Start watching this issue

              Created:
              Updated:
              Resolved: