You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Stefan Guggisberg (JIRA)" <ji...@apache.org> on 2005/12/02 13:58:31 UTC

[jira] Closed: (JCR-287) session.setNamespacePrefix() creates ambiguous mappings

     [ 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