[SWS-819] SimpleNamespaceContext.removeBinding() does not clean up all references Created: 06/Dec/12 Updated: 10/Dec/12 Resolved: 07/Dec/12
|Project:||Spring Web Services|
|Affects Version/s:||1.5.9, 2.1.2|
|Reporter:||Timo Thomas||Assignee:||Arjen Poutsma|
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.
|Comment by Arjen Poutsma [ 07/Dec/12 ]|
Fixed! Thanks for spotting this.
|Comment by Timo Thomas [ 09/Dec/12 ]|
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.
|Comment by Arjen Poutsma [ 10/Dec/12 ]|
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.