Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-6541

Regression: Out of bound in Xpath following a not pattern

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • 7.52.0.Final
    • core engine
    • None
    • 2021 Week 34-36 (from Aug 23)
    • Hide

      In the attachment, run testOutOfBound.

      Show
      In the attachment, run testOutOfBound.
    • Workaround Exists
    • Hide

      re-write the rules to avoid this situation:

      1. use the XPath before the not pattern
      2. expand the XPath to use multiple patterns
      Show
      re-write the rules to avoid this situation: use the XPath before the not pattern expand the XPath to use multiple patterns
    • Undefined
    • NEW
    • NEW

    Description

      When an XPath pattern is following a not pattern, the evaluation can trigger an ArrayIndexOutOfBoundsException.

      The regression have been introduced in 7.52.0.Final, and impact all above versions. 

      PS: As described in the reproducer tests, there are obvious workarounds involving re-writing the rules.

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            goasmat Francois Goasmat (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: