[ 
https://issues.apache.org/jira/browse/OLINGO-966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kai Yang updated OLINGO-966:
----------------------------
    Description: 
Parse of filter with guid parameter fails with following error.
For test take tutorials/p0_all and request:
http://localhost:8080/DemoService.svc/Advertisements?$filter=ID eq 
655e136e-4bd7-41ad-a2a9-8fff7f8b03a4

to get following error:
{code}
{
  "error": {
    "code": null,
    "message": "The types 'Edm.Guid' and 'Edm.Double' are not compatible."
  }
}
{code}

  was:
Parse of filter with guid parameter fails with following error.
For test take tutorials/p0_all and request:
http://localhost:8080/DemoService.svc/Advertisements?$filter=ID eq 
655e136e-4bd7-41ad-a2a9-8fff7f8b03a4

to get following error:
{code}
{
error: {
code: null,
message: "The key property 'f89dee73' is invalid."
}
}
{code}

It seems that a single {{GUID}} is identified as {{ODataIdentifier}} and then 
handled as a {{compoundKey}} (see {{ParserHelper:309}}).


> Parse of filter with guild parameter fails
> ------------------------------------------
>
>                 Key: OLINGO-966
>                 URL: https://issues.apache.org/jira/browse/OLINGO-966
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-server
>    Affects Versions: (Java) V4 4.2.0
>            Reporter: Kai Yang
>            Assignee: Michael Bolz
>
> Parse of filter with guid parameter fails with following error.
> For test take tutorials/p0_all and request:
> http://localhost:8080/DemoService.svc/Advertisements?$filter=ID eq 
> 655e136e-4bd7-41ad-a2a9-8fff7f8b03a4
> to get following error:
> {code}
> {
>   "error": {
>     "code": null,
>     "message": "The types 'Edm.Guid' and 'Edm.Double' are not compatible."
>   }
> }
> {code}



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

Reply via email to