Abhilash Patlolla created OLINGO-1278:
-----------------------------------------

             Summary: Unable to apply filter on a Collection 
EdmPrimitiveTypeKind.Guid property
                 Key: OLINGO-1278
                 URL: https://issues.apache.org/jira/browse/OLINGO-1278
             Project: Olingo
          Issue Type: Bug
          Components: odata4-server
    Affects Versions: (Java) V4 4.4.0
            Reporter: Abhilash Patlolla


{color:#333333}I have an *Entity* with a CsdlProperty of type 
*EdmPrimitiveTypeKind.Guid* and *collection* true.{color}

{color:#333333}When I try to apply a system filter on the entity for that 
property, for example:{color}

{color:#333333}Name of the entity: Email{color}

{color:#333333}Property which is a collection and has a list of Guid's: 
Recipient{color}

*{color:#333333}Odata rest call:{color}*
{code:java}
https://sampleodataservice/email?$filter=recipient eq 
645bc5dd-b83f-41e1-af0b-a0ae56ef667d{code}
{color:#333333}I am seeing the below response:{color}
{code:java}
 A collection expression is not allowed.{code}
{color:#333333}The above call used to work with the Apache Olingo 4.3.0 but it 
is failing with the new Apache Olingo 4.4.0. I see that the changes in 
Expression Parser class to check the collection element is creating this 
exception.{color}

{color:#333333} *References*:
{color}

{color:#333333}https://issues.apache.org/jira/browse/OLINGO-1028 
{color}

{color:#333333}[https://github.com/apache/olingo-odata4/commit/72fcaa1a54a3607ee2b94f66414677ab6f9c8e92#diff-79996ba89231b208eb1639059dc31a7d]
 
{color}

{color:#333333}[https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=blobdiff;f=lib/server-core/src/main/java/org/apache/olingo/server/core/uri/parser/ExpressionParser.java;h=7a34095966097f1578b745e1da306dd9a7b94ad7;hp=23fd8a40428ead9c357e779b83d838b299ed0b11;hb=72fcaa1a54a3607ee2b94f66414677ab6f9c8e92;hpb=b9a71ff88a8f304d4bb2b382b6ffb46e5cc8cb1]
 
{color}

 

{color:#333333}Could you please provide some information on how to add a 
*filter* on a *collection* *property* which has *elements* of type 
*Edm.Guid*.{color}

 

{color:#333333}Thanks and Regards,{color}

{color:#333333}Abhilash{color}

 

 

 

 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to