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

XPath Query with Compound Predicate Not Translated Correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Final
    • 1.2.0.Final
    • JCR, Query
    • None

      The XPath query: /jcr:root/drools:repository/drools:package_area//element(*, drools:assetNodeType)[jcr:contains(., 'testQueryText*')] is correctly translated into the AQM query: SELECT * FROM drools:assetNodeType WHERE (PATH(drools:assetNodeType) LIKE '/drools:repository/drools:package_area/%' AND CONTAINS(drools:assetNodeType,'jcr').

      However, if a similar XPath query with a compound predicate is built: /jcr:root/drools:repository/drools:package_area//element(*, drools:assetNodeType)[jcr:contains(., 'testQueryText*') and drools:archive = 'false'] then the translated AQM query has no where clause at all (SELECT * FROM drools:assetNodeType).

              rhauch Randall Hauch (Inactive)
              bcarothers_jira Brian Carothers (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: