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

Cannot query elements that was copied within single transaction

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • 5.4.0.Final
    • 5.1.0.Final, 5.2.0.Final, 5.3.0.Final
    • JCR
    • None
    • 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.

      Attachments

        Activity

          People

            hchiorean Horia Chiorean (Inactive)
            hot_jira Ostap Shtabura (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: