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] Closed: (JCR-287) session.setNamespacePrefix() creates ambiguous mappings
Date Fri, 02 Dec 2005 12:58:31 GMT
     [ http://issues.apache.org/jira/browse/JCR-287?page=all ]
     
Stefan Guggisberg closed JCR-287:
---------------------------------

    Resolution: Fixed

fixed in svn r351708

> 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
>     Assignee: 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


Mime
View raw message