Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-737

unexpected session is used in XATest.testAddNodeCommit()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.1
    • Fix Version/s: 1.3
    • Component/s: test
    • Labels:
      None

      Description

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

        Attachments

          Activity

            People

            • Assignee:
              mreutegg Marcel Reutegger
              Reporter:
              tnk Shinichi Tanaka
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: