You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Shinichi Tanaka (JIRA)" <ji...@apache.org> on 2007/02/08 09:03:06 UTC

[jira] Created: (JCR-737) unexpected session is used in XATest.testAddNodeCommit()

unexpected session is used  in XATest.testAddNodeCommit()
---------------------------------------------------------

                 Key: JCR-737
                 URL: https://issues.apache.org/jira/browse/JCR-737
             Project: Jackrabbit
          Issue Type: Test
          Components: test
    Affects Versions: 1.2.1
            Reporter: Shinichi Tanaka
            Priority: Minor


In org.apache.jackrabbit.core.XATest.java:137

        // assertion: node exists in this session
        try {
            otherSuperuser.getNodeByUUID(n.getUUID());
        } catch (ItemNotFoundException e) {
            fail("Committed node not visible in this session");
        }

        // assertion: node also exists in other session
        try {
            otherSuperuser.getNodeByUUID(n.getUUID());
        } catch (ItemNotFoundException e) {
            fail("Committed node not visible in other session");
        }

The session instance of 'otherSuperuser' is used two times. In the first case, I think that it is not 'otherSuperuser' but 'superuser'. 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JCR-737) unexpected session is used in XATest.testAddNodeCommit()

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting updated JCR-737:
------------------------------

    Issue Type: Bug  (was: Test)

> unexpected session is used  in XATest.testAddNodeCommit()
> ---------------------------------------------------------
>
>                 Key: JCR-737
>                 URL: https://issues.apache.org/jira/browse/JCR-737
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 1.2.1
>            Reporter: Shinichi Tanaka
>         Assigned To: Marcel Reutegger
>            Priority: Minor
>             Fix For: 1.3
>
>
> In org.apache.jackrabbit.core.XATest.java:137
>         // assertion: node exists in this session
>         try {
>             otherSuperuser.getNodeByUUID(n.getUUID());
>         } catch (ItemNotFoundException e) {
>             fail("Committed node not visible in this session");
>         }
>         // assertion: node also exists in other session
>         try {
>             otherSuperuser.getNodeByUUID(n.getUUID());
>         } catch (ItemNotFoundException e) {
>             fail("Committed node not visible in other session");
>         }
> The session instance of 'otherSuperuser' is used two times. In the first case, I think that it is not 'otherSuperuser' but 'superuser'. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (JCR-737) unexpected session is used in XATest.testAddNodeCommit()

Posted by "Marcel Reutegger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcel Reutegger reassigned JCR-737:
------------------------------------

    Assignee: Marcel Reutegger

> unexpected session is used  in XATest.testAddNodeCommit()
> ---------------------------------------------------------
>
>                 Key: JCR-737
>                 URL: https://issues.apache.org/jira/browse/JCR-737
>             Project: Jackrabbit
>          Issue Type: Test
>          Components: test
>    Affects Versions: 1.2.1
>            Reporter: Shinichi Tanaka
>         Assigned To: Marcel Reutegger
>            Priority: Minor
>
> In org.apache.jackrabbit.core.XATest.java:137
>         // assertion: node exists in this session
>         try {
>             otherSuperuser.getNodeByUUID(n.getUUID());
>         } catch (ItemNotFoundException e) {
>             fail("Committed node not visible in this session");
>         }
>         // assertion: node also exists in other session
>         try {
>             otherSuperuser.getNodeByUUID(n.getUUID());
>         } catch (ItemNotFoundException e) {
>             fail("Committed node not visible in other session");
>         }
> The session instance of 'otherSuperuser' is used two times. In the first case, I think that it is not 'otherSuperuser' but 'superuser'. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (JCR-737) unexpected session is used in XATest.testAddNodeCommit()

Posted by "Marcel Reutegger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcel Reutegger resolved JCR-737.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3

You are right, it should use the superuser session there.

Fixed in revision: 505226

Thank you for reporting this error.

> unexpected session is used  in XATest.testAddNodeCommit()
> ---------------------------------------------------------
>
>                 Key: JCR-737
>                 URL: https://issues.apache.org/jira/browse/JCR-737
>             Project: Jackrabbit
>          Issue Type: Test
>          Components: test
>    Affects Versions: 1.2.1
>            Reporter: Shinichi Tanaka
>         Assigned To: Marcel Reutegger
>            Priority: Minor
>             Fix For: 1.3
>
>
> In org.apache.jackrabbit.core.XATest.java:137
>         // assertion: node exists in this session
>         try {
>             otherSuperuser.getNodeByUUID(n.getUUID());
>         } catch (ItemNotFoundException e) {
>             fail("Committed node not visible in this session");
>         }
>         // assertion: node also exists in other session
>         try {
>             otherSuperuser.getNodeByUUID(n.getUUID());
>         } catch (ItemNotFoundException e) {
>             fail("Committed node not visible in other session");
>         }
> The session instance of 'otherSuperuser' is used two times. In the first case, I think that it is not 'otherSuperuser' but 'superuser'. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.