XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.4
    • 2.2.7
    • jackrabbit-core
    • None

    Description

      Create this nodes.
      def n1 = root.addNode("node1", "sling:SamplePage");
      n1.setProperty("n1prop1", "page1");
      def n2 = n1.addNode("node2", "sling:SampleContent");
      n2.setProperty("n2prop1", "content1");

      Execute this Query:
      Select * from [sling:SamplePage] as page left outer join [sling:SampleContent] as content on ISDESCENDANTNODE(content,page) where page.n1prop1 = 'page1' and content.n2prop1 = 'content1';
      The resultset have 1 row with 2 Nodes. This OK.

      Then execute this:
      Select * from [sling:SamplePage] as page left outer join [sling:SampleContent] as content on ISDESCENDANTNODE(content,page) where page.n1prop1 = 'page1' and content.n2prop1 = 'XXXXX';

      The resultset has 1 row with 1 node.
      This wrong. The result should be 0 rows.

      Old Versions, prior 2.2.2 have also 0 rows as result.

      Also, if nodes "n2" not exists, jackrabbit reports 1 row as result.

      Attachments

        1. JCR-2933.patch
          21 kB
          Alex Deparvu
        2. JCR-2933-v2.patch
          22 kB
          Alex Deparvu
        3. JCR-2933-v3.patch
          22 kB
          Alex Deparvu
        4. JCR-2933-v4.patch
          51 kB
          Alex Deparvu
        5. JCR-2933-v5.patch
          51 kB
          Alex Deparvu

        Issue Links

          Activity

            People

              jukkaz Jukka Zitting
              my1234 Manfred Sattler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: