-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid characters inside CDATA section #201
Comments
Hmmh. Ok, handler should definitely be called and used as expected. Quick question: what implementation (which class) is |
It's |
There is probably a test for this feature but one that might not output CDATA sections. One thing to try would be to modify the test case and reproduce the issue. |
You're correct. There is a test for this exact thing, but the failure is suppressed:
Setting the last parameter to true reproduces the issue. It also refers to an old issue which describes the problems with BufferingXmlWriter: https://web.archive.org/web/20150507153750/http://jira.codehaus.org/browse/WSTX-173. |
Ok. Too bad that original issue (WSTX-173) was not transferred from Codehaus Jira. But at least there is a reproduction. I don't think I will have much time to work on this in near future, but if anyone else has time and interest will be happy to do code reviews and help getting fix(es) merged. Thank you for reporting this @marcinar |
Example:
In this case, the writer doesn't replace (or even check for) any invalid characters. The output contains the 0x1A codepoint inside the CDATA section, which isn't valid XML.
The text was updated successfully, but these errors were encountered: