[
https://issues.apache.org/jira/browse/OLINGO-44?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13835000#comment-13835000
]
ASF subversion and git services commented on OLINGO-44:
-------------------------------------------------------
Commit bd0fdc1282bb1075897f3e83998cede7eb0a9058 in branch
refs/heads/ODataServlet from [~chandan.v.a]
[
https://git-wip-us.apache.org/repos/asf?p=incubator-olingo-odata2.git;h=bd0fdc1
]
[OLINGO-44] Fix for $expand
Signed-off-by: Chandan V A <[email protected]>
> $expand doesn't work for several projections of a child navigation property
> ---------------------------------------------------------------------------
>
> Key: OLINGO-44
> URL: https://issues.apache.org/jira/browse/OLINGO-44
> Project: Olingo
> Issue Type: Bug
> Components: odata2-jpa
> Affects Versions: V2 1.0.0, V2 1.1.0
> Reporter: Georgi
> Assignee: Chandan V.A
> Priority: Critical
> Fix For: V2 1.1.0
>
>
> Consider the following JPA model with one-to-many CMRs:
> X(1) -> (N) A (1) -> (N) B (1) -> (N) C
> X(1) -> (N) A (1) -> (N) D (1) -> (N) E
> To get the complete model for X inline, I use $expand:
> /X(1)/$expand=A/B/C,A/D/E
> However, this yields a NullPointerException in JpaExpandCallback:108
> Debugging the code shows that the reason is that the data constructed for
> response is missing anything but one of the paths provided in the $expand
> list.
> I think that the reason is the algorithm of parse2EdmNavigationValueMap,
> which takes as input a valid navigationPropertyList, but fails to produce and
> adequate navigation properties map for this case. That is probably due to the
> matching navigation property names (ADetails), which effectively overwrites
> previous entries. That leaves the system in an inconsistent state and we end
> up with the NPE in JpaExpandCallback.
--
This message was sent by Atlassian JIRA
(v6.1#6144)