session.setNamespacePrefix() creates ambiguous mappings
-------------------------------------------------------
Key: JCR-287
URL: http://issues.apache.org/jira/browse/JCR-287
Project: Jackrabbit
Type: Bug
Components: core
Environment: svn r351682
Reporter: Stefan Guggisberg
Assigned to: Stefan Guggisberg
Fix For: 1.0
1.) assume the following initial global mappings in the NamespaceRegistry
(prefixes in lowercase, URIs in uppercase):
a <-> A
b <-> B
c <-> C
2.) locally remap the namespaces in a session using the following code:
session.setNamespacePrefix("x", "B");
session.setNamespacePrefix("b", "C");
session.setNamespacePrefix("c", "B");
this results in the following session-local mappings:
a <-> A
c <-> B
b <-> C
3.) now the following stmt:
session.setNamespacePrefix("b", "A");
produces this ambiguous mapping:
b <-> A
c <?> B
c <?> C
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira