[
https://issues.apache.org/jira/browse/OLINGO-540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christian Holzer updated OLINGO-540:
------------------------------------
Attachment: Olingo540.diff
> Inlined NavigationProperty can cause infinite Loop in AtomDeserializer
> ----------------------------------------------------------------------
>
> Key: OLINGO-540
> URL: https://issues.apache.org/jira/browse/OLINGO-540
> Project: Olingo
> Issue Type: Bug
> Components: odata4-commons
> Affects Versions: V4 4.0.0-beta-01, (Java) V4 4.0.0-beta-02
> Reporter: Michael Burwig
> Assignee: Michael Bolz
> Priority: Critical
> Attachments: Olingo540.diff
>
>
> Summary:
> Expanding a navigation proeprty that results in an empty entity collection,
> represented as an empty-element XML tag (*<m:inline/>*), causes an infinite
> loop during deserialization.
> Location:
> org.apache.olingo.commons.core.serialization.AtomDeserializer
> While-loop in line 402
> Reproduction:
> - OData v3
> - single entity retrieval
> - $format=atom
> - $expand option that causes an empty-element <m:inline/> tag
> Neither the *if* nor the *else-if* branch within the while loop (line 402)
> are triggered, hence resulting in an infinite loop.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)