Jackrabbit Content Repository
  1. Jackrabbit Content Repository
  2. JCR-3173

InvalidItemStateException if accessing VersionHistory before checkin()

    Details

      Description

      A checkin operation fails during a transaction if the VersionHistory of a node is accessed previously. See the attached test case for further details.

      -------------------------------------------------------------------------------
      Test set: org.apache.jackrabbit.core.version.UserTransactionCheckinTest
      -------------------------------------------------------------------------------
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.072 sec <<< FAILURE!
      testRestoreWithXA(org.apache.jackrabbit.core.version.UserTransactionCheckinTest) Time elapsed: 3.858 sec <<< ERROR!
      javax.jcr.InvalidItemStateException: Could not find child e77834ee-244c-441f-ab94-19847c769fa4 of node 03629609-8049-46ee-9e80-279c70b3a34d
      at org.apache.jackrabbit.core.ItemManager.getDefinition(ItemManager.java:207)
      at org.apache.jackrabbit.core.ItemData.getDefinition(ItemData.java:99)
      at org.apache.jackrabbit.core.ItemManager.canRead(ItemManager.java:421)
      at org.apache.jackrabbit.core.ItemManager.createItemData(ItemManager.java:843)
      at org.apache.jackrabbit.core.ItemManager.getItemData(ItemManager.java:391)
      at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:328)
      at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:622)
      at org.apache.jackrabbit.core.SessionImpl.getNodeById(SessionImpl.java:493)
      at org.apache.jackrabbit.core.VersionManagerImpl$1.perform(VersionManagerImpl.java:123)
      at org.apache.jackrabbit.core.VersionManagerImpl$1.perform(VersionManagerImpl.java:1)
      at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200)
      at org.apache.jackrabbit.core.VersionManagerImpl.perform(VersionManagerImpl.java:96)
      at org.apache.jackrabbit.core.VersionManagerImpl.checkin(VersionManagerImpl.java:115)
      at org.apache.jackrabbit.core.VersionManagerImpl.checkin(VersionManagerImpl.java:101)
      at org.apache.jackrabbit.core.NodeImpl.checkin(NodeImpl.java:2830)
      at org.apache.jackrabbit.core.version.UserTransactionCheckinTest.testRestoreWithXA(UserTransactionCheckinTest.java:35)

      1. UserTransactionCheckinTest.java
        1 kB
        Matthias Reischenbacher

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Matthias Reischenbacher
            • Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:

                Development