Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-1800

FIQL comparison espressions with single quote cause JSONB search to fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.6
    • 3.0.7, 4.0.0
    • core

    Description

      A FIQL query like as

      surname=~D'*
      

      is throwing the following error:

      org.apache.openjpa.persistence.PersistenceException: Unterminated identifier started at position 209 in SQL SELECT count(t.id) FROM SyncopeUser t,jsonb_path_query_array(plainattrs, '$[*] ? (@.schema=="lastName")."values"') AS lastName WHERE jsonb_path_exists(lastName, '$[*] ? (@.stringValue like_regex "D'.*" flag "i")') AND realm_id IN (?1)'. Expected " char {SELECT count(t.id) FROM SyncopeUser t,jsonb_path_query_array(plainattrs, '$[*] ? (@.schema=="lastName")."values"') AS lastName WHERE jsonb_path_exists(lastName, '$[*] ? (@.stringValue like_regex "D'.*" flag "i")') AND realm_id IN (?1)'}

      Attachments

        Issue Links

          Activity

            People

              ilgrosso Francesco Chicchiriccò
              ilgrosso Francesco Chicchiriccò
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: