Unable to embed attachment from rich text editor in case the attachment is hosted on the same domain

XMLWordPrintable

    • 7.02
    • 9
    • Severity 3 - Minor
    • 0

      Summary

      Unable to embed attachment from rich text editor in case the attachment is hosted on the same domain.
      The situation is a bit complicated so please see the steps to reproduce below.

      Environment

      Steps to Reproduce

      1. Start to edit comment
      2. Change the edit mode to Text mode
      3. Embed images which are listed in "Environment" section with following the text formatting notation
        !http://example.com/image.png!
        

        or

        !http://example.com/wiki/.../image.png!
        
      1. Save the comment
      2. Now, you can see the image is embedded in the comment as expected
      3. Start to edit the comment again
      4. Change the edit mode to Visual mode
      5. Add some texts after the embedded image
      6. Save the comment

      Expected Results

      The embedded image should be shown in the comment as expected.

      Actual Results

      The embedded image was not shown and noimage thumbnail is shown instead.

      Also, if you open the editor in Text mode again, you can see the URL was replaced with the relative path.

      !/image.png!
      
      !/wiki/.../image.png!
      

      Note

      Jira seems to expect that the attachment is located on http://example.com/jira/image.png (http://<JIRA_BASE_URL>/image.png) but is actually located on http://example.com/image.png.

      Workaround

      Editing comments in Text mode is the only workaround.

            Assignee:
            🦊 Fox (Inactive)
            Reporter:
            Yuki Okamoto (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: