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

Single Quote character is not getting encoded in the URL query parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • (Java) V4 4.8.0
    • None
    • odata4-client
    • None

    Description

      We were using the olingo library 4.0.0-beta-02-RC01 before and now we are upgrading to 4.8.0 version. There is a change of bahavior in encoding URL query parameters between these versions. If the URL has single quote character, the library used to encode it earlier, whereas, it's not encoding those characters now. 

       

      For example, 

      URL in Olingo 4.8.0:

      http://test@fake.odataproducer.com/Prod?%24top=2001&%24filter=vals%20eq%20'a%20b'

       

      URL in Olingo 4.0.0-beta-02-RC01:
      http://test@fake.odataproducer.com/Prod?%24top=2001&%24filter=vals%20eq%20%27a%20b%27
       
      Note that the single quote characters are not encoded in new version of olingo library
       

      Attachments

        Activity

          People

            Unassigned Unassigned
            rishjain Rishabh Jain
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: