[SWS-819] SimpleNamespaceContext.removeBinding() does not clean up all references Created: 06/Dec/12  Updated: 10/Dec/12  Resolved: 07/Dec/12

Status: Resolved
Project: Spring Web Services
Component/s: XML
Affects Version/s: 1.5.9, 2.1.2
Fix Version/s: 2.1.3

Type: Bug Priority: Critical
Reporter: Timo Thomas Assignee: Arjen Poutsma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 1h
Time Spent: 10m
Original Estimate: 1h



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.

Generated at Wed Nov 21 14:46:43 UTC 2018 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.