Arul created OLINGO-1548:
----------------------------
Summary: Odata singletons are not retrieved when parsing TripPin
Odata service using Odata v4 libs.
Key: OLINGO-1548
URL: https://issues.apache.org/jira/browse/OLINGO-1548
Project: Olingo
Issue Type: Bug
Components: odata4-client
Affects Versions: (Java) V4 4.8.0
Reporter: Arul
Fix For: (Java) V4 4.8.0
We are trying to read metadata for
[https://services.odata.org/V4/(S(qumvkqavql1jwrawmicd45j1))/TripPinServiceRW/$metadata]
using below snippet of code.
{code:java}
ODataClient client = ODataClientFactory.getClient();
this.edm = client.getReader().readMetadata(metadataStream);
{code}
As you can see above service has a 'Singleton" named "me". When we try to
retrieve the singletons from EntityContainer we get nothing(as shown below).
{code:java}
edm.getSchemas().stream()
.map(EdmSchema::getEntityContainer)
.filter(Objects::nonNull).map(EdmEntityContainer::getSingletons)
.flatMap(Collection::stream)
.collect(Collectors.toList());{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)