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 Holzer (JIRA)" <ji...@apache.org> on 2015/10/29 16:01:27 UTC

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

Christian Holzer created OLINGO-810:
---------------------------------------

             Summary: 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.

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

Example:
/MyEntitySet(Key1=’Value’,Key2=@myAlias)?@myAlias=123

Kind regards
Christian 




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