Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-8993

XPath expression not encoded in groovy script editor

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Fixed
    • 2.26.14
    • 2.28.00
    • None
    • Product (Warranty / HES)

    Description

      Repository query runner preprocesses xpath expression by encoding it with

      RepoUtils.encodeXpath(param)

      The same does not happen in groovy script editor, thus causing an exception, if any node in expression starts with number.

      Shall we use this encoding consistently. The client is confused by the fact that the same xpath query gets executed in repository query runner, but not in groovy script editor.

      Reproduction path:
      1. build a project from archetype mentioned on onehippo.org (based on hippo-cms7-release 7.9.7 )
      2. in groovy script editor create a new script taking a query e.g. "//2015" and see the exception

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              imurasko Ilja Murasko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: