Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-1663

Contains query is broken when fetching all descendants

XMLWordPrintable

      As an example, the query //books[contains(@title,"Matilda")] should only return the book titled "Matilda" but instead returns all books, when executed with INCLUDE_ALL_DESCENDANTS option, i.e. it returns the same data as //books.

      This is because a query containing only a contains condition incorrectly invokes getDataNodesUsingRegexQuickFind, due to the canUseRegexQuickfind method not checking for contains condition.

       

            danielhanrahan Daniel Hanrahan
            danielhanrahan Daniel Hanrahan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: