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

Sql2 query ISCHILDNODE / ISDESCENDANTNODE after session.move

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.6.0.Final
    • 3.2.0.Final
    • JCR
    • None

      Don't know if is a bug or I miss something, I use default configuration for in memory repo, this is the behavior:

      Create a tree of 3 node: '/a/b/c'
      Create a node 'tmp' under the root
      Query with SQL2 to get all ISCHILDNODE under path '/a/b' return node 'c'
      Move node 'b' under '/tmp'
      Call getNodes() on node '/tmp/b' return node 'c'
      Query with SQL2 to get all ISCHILDNODE under path '/tmp/b' return no node
      Query with SQL2 to get all ISCHILDNODE under path '/a/b' still return node 'c'

      Same behavior with ISDESCENDANTNODE.

      To return children with ISCHILDNODE or ISDESCENDANTNODE query, you have to update the children

            hchiorean Horia Chiorean (Inactive)
            noah79 noah totti (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: