Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-5064

XPath: chained conditions and union bugfix

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.13, 1.6.0
    • Component/s: query
    • Labels:
      None

      Description

      The following query doesn't work right now:

      /jcr:root/x[@a][@b][@c]
      

      It would be nice to convert that to "[@a and @b and @c]" automatically. Specially to use it in "union" as follows:

      (/jcr:root/x[@a] | /jcr:root/y[@b])[@c]
      

      Also, there is a bug in the union processing: a space before the final ")" is currently not supported.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                thomasm Thomas Mueller
                Reporter:
                thomasm Thomas Mueller
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: