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 2015/10/31 16:46:27 UTC

[jira] [Commented] (OLINGO-810) Parameter aliases are not allowed in comnbination with key predicates

    [ 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)