[
https://issues.apache.org/jira/browse/OLINGO-810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14984028#comment-14984028
]
Ralf Handl commented on OLINGO-810:
-----------------------------------
This is a bug in the ABNF that was fixed with
https://issues.oasis-open.org/browse/ODATA-775. The correct rule is
keyValuePair = ( primitiveKeyProperty / keyPropertyAlias ) EQ (
parameterAlias / keyPropertyValue )
> Parameter aliases are not allowed in comnbination with key predicates
> ---------------------------------------------------------------------
>
> Key: OLINGO-810
> URL: https://issues.apache.org/jira/browse/OLINGO-810
> Project: Olingo
> Issue Type: Bug
> Components: odata4-server
> Affects Versions: (Java) V4 4.0.0
> Reporter: Christian Holzer
>
> Currently the URI Parser allows to use ParameterAlias as values of key
> predicates. According to the OData ABNF this is not allowed. There is not
> derivation from _primitiveLiteral_ to _parameterAlias_.
> {quote}
> resourcePath = entitySetName [ collectionNavigation ]
> /....
> collectionNavigation = [ "/" qualifiedEntityTypeName ] [ collectionNavPath ]
> collectionNavPath = keyPredicate [ singleNavigation ] / collectionPath /
> ref
> keyPredicate = simpleKey / compoundKey
> compoundKey = OPEN keyValuePair *( COMMA keyValuePair ) CLOSE
> keyValuePair = ( primitiveKeyProperty / keyPropertyAlias ) EQ
> keyPropertyValue
> keyPropertyValue = primitiveLiteral
> {quote}
> Example:
> {code}
> /MyEntitySet(Key1=’Value’,Key2=@myAlias)?@myAlias=123
> {code}
> Kind regards
> Christian
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)