arturobernalg commented on PR #544: URL: https://github.com/apache/jspwiki/pull/544#issuecomment-6461424714
Thank you for the report, I could reproduce it with the WYSIWYG editor in a browser, using two pasted images of about 800 KB each. Saving a page from that editor starts the text with a line break, and an image pasted into it is one very long line. When the parser meets a line break it looks ahead at the next line, but it could only give back the first 10240 characters of it, so the rest was thrown away and the image was cut off. The first save has no line break in front, which is why the first image rendered and the second save did not. I pushed a commit that reads at most what fits in the buffer, with two parser tests that fail without it (a page starting with a line break and two long data URLs, and a long line after a blank line). The whole jspwiki-main suite passes. I have not repeated the browser run with the fix, only the parser tests. Could you try again with this change? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
