You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Christian Amend (JIRA)" <ji...@apache.org> on 2016/02/04 15:39:39 UTC

[jira] [Resolved] (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:all-tabpanel ]

Christian Amend resolved OLINGO-810.
------------------------------------
       Resolution: Fixed
         Assignee: Christian Amend
    Fix Version/s: (Java) V4 4.2.0

Fixed with: https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=commit;h=110c7b0e5afa1f9f717d95ca48bd5c695821db06

> 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
>            Assignee: Christian Amend
>             Fix For: (Java) V4 4.2.0
>
>
> 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)