Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2656

Cannot query elements that was copied within single transaction

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 5.1.0.Final, 5.2.0.Final, 5.3.0.Final
    • Fix Version/s: 5.4.0.Final
    • Component/s: JCR
    • Labels:
      None
    • Environment:

      Modeshape 5.3 and WildFly.10.0.0.Final.
      It was also possible to reproduce this defect on the modeshape version 5.2 and 5.1.

    • Steps to Reproduce:
      Hide

      1) Start transaction
      2) Create parent node
      3) Add child nodeto parent node
      4) Commit transaction
      5) Start new transaction and new session
      6) Copy parent node to new location by using session.getWorkspace().copy()
      7) Try to query copied child node
      8) NodeIterator is empty

      Show
      1) Start transaction 2) Create parent node 3) Add child nodeto parent node 4) Commit transaction 5) Start new transaction and new session 6) Copy parent node to new location by using session.getWorkspace().copy() 7) Try to query copied child node 8) NodeIterator is empty

      Description

      Cannot query elements that was copied within single transaction. NodeIterator is empty. The only way to to get new element by path and iterate all elements by using getNodes.

      I was able to reproduce this defect with unit tests. Please find them in the attachments.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                hchiorean Horia Chiorean
                Reporter:
                hot Ostap Shtabura
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: