Escape character for cql search does not always work

XMLWordPrintable

    • 2
    • Severity 3 - Minor

      Summary

      Escape character for cql search filter is not always working.

      Steps to Reproduce

      1. Create some pages with the following titles. Add a qoute and backslash.

      - test"
      - test"test 
      - test\
      

      2. Do some rest api CQL search call for this pages.

      cql=space=EFAW AND type=page AND title="test\""
      
      cql=space=EFAW AND type=page AND title="test\"test"
      
      cql=space=EFAW AND type=page AND title="test\\"
      

      Expected Results

      The page should be returned on the results.

      Actual Results

      OK : https://addonsupport.atlassian.net/wiki/rest/api/content/search?cql=space=EFAW+AND+type=page+AND+title=%22test%5C%22%22

      FAILED : https://addonsupport.atlassian.net/wiki/rest/api/content/search?cql=space=EFAW+AND+type=page+AND+title=%22test%5C%22test%22

      FAILED : https://addonsupport.atlassian.net/wiki/rest/api/content/search?cql=space=EFAW+AND+type=page+AND+title=%22test%5C%5C%22

              Assignee:
              Unassigned
              Reporter:
              Ramon M (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: