jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-287) session.setNamespacePrefix() creates ambiguous mappings
Date Fri, 02 Dec 2005 12:43:31 GMT
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:
For more information on JIRA, see:

View raw message