You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Maciej (Jira)" <ji...@apache.org> on 2020/09/10 12:43:00 UTC

[jira] [Comment Edited] (OLINGO-1107) UriDecoder should use java.net.URLDecoder

    [ https://issues.apache.org/jira/browse/OLINGO-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17193604#comment-17193604 ] 

Maciej  edited comment on OLINGO-1107 at 9/10/20, 12:42 PM:
------------------------------------------------------------

I raise the question above.

Will the fix be ported to V2 implementation?


was (Author: matfiej):
I raise the above question.

Will the fix be ported to V2 implementation?

> UriDecoder should use java.net.URLDecoder
> -----------------------------------------
>
>                 Key: OLINGO-1107
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1107
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-server
>    Affects Versions: (Java) V4 4.3.0
>            Reporter: Jon McEwen
>            Assignee: Ramesh Reddy
>            Priority: Major
>             Fix For: (Java) V4 4.4.0
>
>
> Query filters are incorrectly parsed, because the org.apache.olingo.commons.core.Decoder doesn't convert '+' to space.
> Simple fix is to use java.net.URLDecoder instead (line 85):
> {{return URLDecoder.decode(encoded, "UTF-8");}}
> Additional unit test:
> {code:Java}
>   @Test
>   public void decodePlusAsSpace() throws Exception{
> 	  checkOption("%24filter=PaymentStatus+eq+%27Cleared%27", "$filter", "PaymentStatus eq 'Cleared'");
>   }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)