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

XPath: Possible StackOverflowException with many "or" conditions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.13, 1.2.1, 1.3.0, 1.4
    • query
    • None

    Description

      For XPath queries with many "or" conditions of the form "@x = 1 or @x = 2 or @x = 3", the converter could throw a StackOverflowException (during the optimization phase).

      Such conditions are converted to "x in (1, 2, 3)", however this conversion is recursive and relatively slow. We need to make sure at least 10'000 conditions can be processed efficiently.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: