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 2006/06/14 15:39:29 UTC

[jira] Created: (JCR-458) session.move() throws ItemExistsException despite same name siblings

session.move() throws ItemExistsException despite same name siblings  
----------------------------------------------------------------------

         Key: JCR-458
         URL: http://issues.apache.org/jira/browse/JCR-458
     Project: Jackrabbit
        Type: Bug

  Components: core  
    Versions: 1.0.1    
 Environment: svn rev. 414241
    Reporter: Stefan Guggisberg
 Assigned to: Stefan Guggisberg 


code to reproduce:

            Session session = r.login(new SimpleCredentials("johndoe", "".toCharArray()), wspName);
            Workspace wsp = session.getWorkspace();
            Node root = session.getRootNode();

            // setup test case
            if (!root.hasNode("foo")) {
                root.addNode("foo");
                root.save();
            }
            if (!root.hasNode("bar")) {
                root.addNode("bar");
                root.save();
            }

            wsp.move("/foo", "/bar");    // ==> ItemExistsException


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


[jira] Resolved: (JCR-458) session.move() throws ItemExistsException despite same name siblings

Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-458?page=all ]
     
Stefan Guggisberg resolved JCR-458:
-----------------------------------

    Resolution: Fixed

fixed in svn r414263

> session.move() throws ItemExistsException despite same name siblings
> --------------------------------------------------------------------
>
>          Key: JCR-458
>          URL: http://issues.apache.org/jira/browse/JCR-458
>      Project: Jackrabbit
>         Type: Bug

>   Components: core
>     Versions: 1.0.1
>  Environment: svn rev. 414241
>     Reporter: Stefan Guggisberg
>     Assignee: Stefan Guggisberg

>
> code to reproduce:
>             Session session = r.login(new SimpleCredentials("johndoe", "".toCharArray()), wspName);
>             Node root = session.getRootNode();
>             // setup test case
>             if (!root.hasNode("foo")) {
>                 root.addNode("foo");
>                 root.save();
>             }
>             if (!root.hasNode("bar")) {
>                 root.addNode("bar");
>                 root.save();
>             }
>             session.move("/foo", "/bar");    // ==> ItemExistsException

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


[jira] Updated: (JCR-458) session.move() throws ItemExistsException despite same name siblings

Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-458?page=all ]

Stefan Guggisberg updated JCR-458:
----------------------------------

    Description: 
code to reproduce:

            Session session = r.login(new SimpleCredentials("johndoe", "".toCharArray()), wspName);
            Node root = session.getRootNode();

            // setup test case
            if (!root.hasNode("foo")) {
                root.addNode("foo");
                root.save();
            }
            if (!root.hasNode("bar")) {
                root.addNode("bar");
                root.save();
            }

            session.move("/foo", "/bar");    // ==> ItemExistsException


  was:
code to reproduce:

            Session session = r.login(new SimpleCredentials("johndoe", "".toCharArray()), wspName);
            Workspace wsp = session.getWorkspace();
            Node root = session.getRootNode();

            // setup test case
            if (!root.hasNode("foo")) {
                root.addNode("foo");
                root.save();
            }
            if (!root.hasNode("bar")) {
                root.addNode("bar");
                root.save();
            }

            wsp.move("/foo", "/bar");    // ==> ItemExistsException



fixed code fragment

> session.move() throws ItemExistsException despite same name siblings
> --------------------------------------------------------------------
>
>          Key: JCR-458
>          URL: http://issues.apache.org/jira/browse/JCR-458
>      Project: Jackrabbit
>         Type: Bug

>   Components: core
>     Versions: 1.0.1
>  Environment: svn rev. 414241
>     Reporter: Stefan Guggisberg
>     Assignee: Stefan Guggisberg

>
> code to reproduce:
>             Session session = r.login(new SimpleCredentials("johndoe", "".toCharArray()), wspName);
>             Node root = session.getRootNode();
>             // setup test case
>             if (!root.hasNode("foo")) {
>                 root.addNode("foo");
>                 root.save();
>             }
>             if (!root.hasNode("bar")) {
>                 root.addNode("bar");
>                 root.save();
>             }
>             session.move("/foo", "/bar");    // ==> ItemExistsException

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


[jira] Updated: (JCR-458) session.move() throws ItemExistsException despite same name siblings

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-458?page=all ]

Jukka Zitting updated JCR-458:
------------------------------

    Fix Version: 1.1
        Version: 0.9
                 1.0

> session.move() throws ItemExistsException despite same name siblings
> --------------------------------------------------------------------
>
>          Key: JCR-458
>          URL: http://issues.apache.org/jira/browse/JCR-458
>      Project: Jackrabbit
>         Type: Bug

>   Components: core
>     Versions: 1.0, 1.0.1, 0.9
>  Environment: svn rev. 414241
>     Reporter: Stefan Guggisberg
>     Assignee: Stefan Guggisberg
>      Fix For: 1.1

>
> code to reproduce:
>             Session session = r.login(new SimpleCredentials("johndoe", "".toCharArray()), wspName);
>             Node root = session.getRootNode();
>             // setup test case
>             if (!root.hasNode("foo")) {
>                 root.addNode("foo");
>                 root.save();
>             }
>             if (!root.hasNode("bar")) {
>                 root.addNode("bar");
>                 root.save();
>             }
>             session.move("/foo", "/bar");    // ==> ItemExistsException

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