[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
Environment:

n/a



 Description   

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.



 Comments   
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 Mon Dec 11 21:09:43 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.