-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 7.2.13, 7.8.0
-
Component/s: Issue - Attachments, Rich Text Editor
-
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
- Jira instance which is hosted in a domain example.com (The base URL is like http://example.com/jira)
- Some image files which are hosted in the same domain. The image URLs are like
- URL without context path like http://example.com/image.png
- URL with context path like http://example.com/wiki/.../image.png (Generally, this type of URL can be seen in Confluence which is hosted in the same domain of Jira)
Steps to Reproduce
- Start to edit comment
- Change the edit mode to Text mode
- 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!
- Save the comment
- Now, you can see the image is embedded in the comment as expected
- Start to edit the comment again
- Change the edit mode to Visual mode
- Add some texts after the embedded image
- 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.