Skip to content

SimpleNamespaceContext.removeBinding() does not clean up all references [SWS-819] #899

@gregturn

Description

@gregturn

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions