Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1445

Single quote in a string filtering not works as expected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • V2 2.0.10
    • V2 2.0.11
    • odata2-jpa
    • None

    Description

      Hello,

      When i try to filtering a string attribute with a value that contains a single quote, the JPA processor returns no values.

      Step to reproduce: 

      • Create a entity with string attribute
      • Save a string with a single quote in that attribute like foo'bar
      • Try to filter with substringof operator on that value
      • The following filter has been generated : $filter=(substringof(%27foo%27%27%27,tolower(STRING_ATTRIBUT))
      • No value is returned

      Maybe related to issue OLINGO-1158

      Attachments

        Activity

          People

            Unassigned Unassigned
            benoit.vincent Vincent Benoit
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: