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?
to your account
Timo Thomas opened SWS-819 and commented
In SimpleNamespaceContext.removeBinding() the first line should be changed to
String namespaceUri = prefixToNamespaceUri.remove(prefix);
Otherwise the internal map prefixToNamespaceUri still contains the prefix, and hasBinding(String prefix) behaves incorrectly.
This is error is critical, as under certain circumstances XML schema validation fails. If necessary I can provide an example.
Affects: 1.5.9, 2.1.2
Referenced from: commits 041229b, 88b4625
The text was updated successfully, but these errors were encountered:
Arjen Poutsma commented
Fixed! Thanks for spotting this.
Sorry, something went wrong.
Timo Thomas commented
Your welcome. Took me a whole day to track this down. Didn't expect an error at this level, quite surprising that this one could live for so long.
Please also fix for 1.5.10 as this is the version we're currently using. Thanks.
I've fixed this in the 1.5 branch in SVN, but I am afraid there won't be a 1.5.11 that contains it, as it is not supported anymore.
No branches or pull requests