Details
-
Bug
-
Resolution: Timed out
-
Low
-
None
-
5.10.2, 6.0.2
-
2
-
Severity 3 - Minor
-
Description
Summary
Inserting Markdown (header) with a whitespace at the end results in an error below:
Wiki markup conversion errors error : Internal Server Error
Steps to Reproduce
- Create a new page in Confluence
- Click on the Insert More Content button and select { } Markup from the list.
- Select Markdown from the dropdown box and then paste the following text into the Insert field:
# Test Header
Please do take note that there's a whitespace at the end of the word Header
- Click Insert
Expected Results
Header is inserted successfully.
Actual Results
The following errors are then shown in <Confluence-Home>/logs/atlassian-confluence.log:
2017-01-19 10:56:15,542 ERROR [http-nio-8090-exec-4] [common.error.jersey.ThrowableExceptionMapper] toResponse Uncaught exception thrown by REST service: String index out of range : 16 -- referer: http://10.60.3.54:8090/pages/editpage.action?pageId=3899412 | url: /rest/tinymce/1/markdownxhtmlconverter | traceId: 36589fca65244415 | userName: admin java.lang.StringIndexOutOfBoundsException: String index out of range: 16 at java.lang.String.charAt(String.java:646) at com.sangupta.nutz.TextLine.charAt(TextLine.java:256) at com.sangupta.nutz.Parser.parseHeading(Parser.java:626) at com.sangupta.nutz.Parser.parseLine(Parser.java:222) at com.sangupta.nutz.Parser.readLines(Parser.java:192) at com.sangupta.nutz.Parser.parse(Parser.java:137) at com.sangupta.nutz.MarkdownProcessor.toHtml(MarkdownProcessor.java:97) at com.atlassian.confluence.tinymceplugin.rest.MarkdownXhtmlConverter.convert(MarkdownXhtmlConverter.java:54)
Attachments
Issue Links
- mentioned in
-
Page Loading...