You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Ralf Handl (JIRA)" <ji...@apache.org> on 2014/09/18 15:42:33 UTC
[jira] [Comment Edited] (OLINGO-425) The key should not be in
quotes when setKeyAsSegment is enabled
[ https://issues.apache.org/jira/browse/OLINGO-425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14138930#comment-14138930 ]
Ralf Handl edited comment on OLINGO-425 at 9/18/14 1:41 PM:
------------------------------------------------------------
Please note that Edm.Guid values are NOT quoted in keys even when the round parentheses are used, so the canonical URL for the above user would be
~/users(148d1101-58fb-410b-ad6d-7379fd9564ca)
No quotes. Same for Date, DateTimeOffset, TimeOfDay.
This is documented in rule primitiveLiteral in https://tools.oasis-open.org/version-control/browse/wsvn/odata/trunk/spec/ABNF/odata-abnf-construction-rules.txt
was (Author: ralfhandl):
Please note that Edm.Guid values are NOT quoted in keys even when the round parentheses are used, so the canonical URL for the above user would be
~/users(148d1101-58fb-410b-ad6d-7379fd9564ca)
No quotes. Same for Date, DateTimeOffset, TimeOfDay.
> 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
>
> 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)