[ 
https://issues.apache.org/jira/browse/OLINGO-1013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15438916#comment-15438916
 ] 

Morten Riedel commented on OLINGO-1013:
---------------------------------------

providing a patch for this issue. I added a method which uses the key 
references to search for the correct value.

> V4: can´t build context url while the key predicate is an alias
> ---------------------------------------------------------------
>
>                 Key: OLINGO-1013
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1013
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-server
>    Affects Versions: (Java) V4 4.2.0
>            Reporter: Morten Riedel
>         Attachments: 0001-added-support-for-aliase-in-core-and-tec.patch
>
>
> The core can´t build the context url while the key predicates are aliases. 
> The bug is located in Class UriHelperImpl 
> (https://github.com/apache/olingo-odata4/blob/master/lib/server-core/src/main/java/org/apache/olingo/server/core/uri/UriHelperImpl.java#L70).
>  The iteration goes through the plain key predicates as a string and is 
> trying to get the property by this string. This results in a null pointer 
> exception if the key is an alias.



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

Reply via email to