Skip to content
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

XmlValidationModeDetector: length of a string is always greater than index of any of its characters [SPR-11477] #16102

spring-projects-issues opened this issue Feb 23, 2014 · 0 comments
in: core status: backported type: bug


Copy link

@spring-projects-issues spring-projects-issues commented Feb 23, 2014

Rajeev Bahuguna opened SPR-11477 and commented

The method org.springframework.util.xml.XmlValidationModeDetector::hasOpeningTag should have this:
return (openTagIndex > -1 && content.length() > (openTagIndex+1) && Character.isLetter(content.charAt(openTagIndex + 1)));

in place of the current:
return (openTagIndex > -1 && content.length() > openTagIndex && Character.isLetter(content.charAt(openTagIndex + 1)));

Affects: 3.2.8, 4.0.2

Referenced from: commits 1763bfb, 69c54a0

Backported to: 3.2.9

@spring-projects-issues spring-projects-issues added type: bug status: backported in: core labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 4.0.3 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
in: core status: backported type: bug
None yet

No branches or pull requests

2 participants