Steven Hawkins created OLINGO-1186:
--------------------------------------
Summary: OData 4 parsing older service metadata
Key: OLINGO-1186
URL: https://issues.apache.org/jira/browse/OLINGO-1186
Project: Olingo
Issue Type: Bug
Components: odata4-client
Reporter: Steven Hawkins
If you point the OData 4 client to older metadata, for example
http://services.odata.org/Northwind/Northwind.svc/$metadata the result will be
metadata with null values where non-null is expected.
{code}
ClientODataDeserializerImpl deserializer =
new ClientODataDeserializerImpl(false,
ContentType.APPLICATION_XML);
XMLMetadata serviceMatadata = deserializer.toMetadata(out.getBinaryStream());
CsdlSchema csdlSchema = metadata.getSchemas().get(0);
CsdlEntityContainer container = csdlSchema.getEntityContainer();
//container is null
{code}
It would be good if XMLMetadata exposed the DataServices version information,
or if Olingo could do some check of them when parsing to validate expectations.
This was also captured as https://issues.jboss.org/browse/TEIID-5071
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)