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

StringIndexOutOfBoundsException in XMLUtils.getTargetCharset() #89

Closed
codemental opened this Issue Mar 24, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@codemental

codemental commented Mar 24, 2016

A rare situation when the XMLUtils.getTargetCharset() triggers a StringIndexOutOfBoundsException IF the xml definition tag does not contain the 'encoding' attribute AND the rest of the xml contains the word 'encoding' (anywhere in the string).

Example 1:

<?xml version="1.0" ?>
<testRequest xmlns=\"http://www.consol.de/test-default\">Test encoding</testRequest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment