Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
3.11, 6.4-OD-16
-
3.11
-
3
-
Severity 3 - Minor
-
0
-
Description
NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.
Summary
When the following is inputted into JIRA on a field that is configured for the Wiki Render:
lv2(2): # ---/--- base------+filesz----+(mem-file) [flags-----]
The following HTML is generated in a Word Export or in an e-mail notification:
lv2(2): # --<del>/</del>-- base-----<del><ins>filesz</del>---</ins>(mem-file) <span class="error">[flags-----]</span><br/>
This will cause Outlook 2007 (which uses MS Word 2007 to render HTML content now) to crash. Opening the file in MS Word 2007 will also cause it to crash. MS Word 2007 version tested was 12.0.4518.1014
The suspect here is how </del> is nested in between the <ins> tags. A workaround is to wrap the text in {noformat} tags.
Steps to Reproduce
- create an issue an insert this text without any macro:
lv2(2): # ---/--- base------+filesz----+(mem-file) [flags-----]
- Export the issue to Word
- Open the file on a text editor and search for <del>
Expected Results
All tags are in the correct format (opening and closing tags are not mixed)
Actual Results
The following is found on the export <del><ins>filesz</del>---</ins>
Workaround
- Open Word file on a text editor
- Search for: <del><ins>
- If after the <del><ins> there is some text and then a </del> then that comment was not generated correctly.
- a healthy code would close tags in inverse order that were open. e.g: <del><ins>SomeText</ins></del>
- wrong code <del><ins>SomeText</del></ins>
- Find the issue in JIRA by searching any text related to that comment in JIRA search tool and then inside the issue to find the comment.
- Wrap the comment or the code part in {noformat} tags
- Export to Word again
Attachments
Issue Links
- is duplicated by
-
JRASERVER-24299 Invalid HTML generated by Wiki Renderer
- Closed
- relates to
-
JRACLOUD-15028 Wiki Renderer creates HTML that causes MS Word 2007 / Outlook 2007 to crash
- Closed