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

Christian Holzer commented on OLINGO-425:
-----------------------------------------

I wrote a test case, to for the class URIUtils, which is been used to escape 
keys. As you can see in the attached file, the escaped strings seem correctly. 
Please consider that the type of the key will be used to determine the correct 
escape format. So if you pass a string to the method, the value of the string 
will be wrapped in single quotes.

> The key should not be in quotes when setKeyAsSegment is enabled
> ---------------------------------------------------------------
>
>                 Key: OLINGO-425
>                 URL: https://issues.apache.org/jira/browse/OLINGO-425
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-client
>    Affects Versions: V4 4.0.0-beta-01
>            Reporter: Mark Sztainbok
>             Fix For: (Java) V4 4.0.0-beta-02
>
>         Attachments: Olingo425.diff
>
>
> When setKeyAsSegment is set to true on the client configuration, Olingo is 
> incorrectly placing the key in quotes i.e. it is putting the URI as 
> /f872e367-02c7-4012-a01c-0f5b7c5636ae/users/'148d1101-58fb-410b-ad6d-7379fd9564ca'
>  when it should be 
> /f872e367-02c7-4012-a01c-0f5b7c5636ae/users/148d1101-58fb-410b-ad6d-7379fd9564ca
> Having the quotes causes failures in the service in this case.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to