[
https://issues.apache.org/jira/browse/OLINGO-560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christian Amend resolved OLINGO-560.
------------------------------------
Resolution: Invalid
Fix Version/s: V2 2.0.3
Hi Rashmi,
the method readEntry does not validate missing properties because it can be
used in an update case as well where not all proeprties are mandatory.
Also during CREATE it is usually the server that creates the key thus some
clients leave away key information as a default.
Best Regards,
Christian
> Facet validation on inputpayload not happening
> ----------------------------------------------
>
> Key: OLINGO-560
> URL: https://issues.apache.org/jira/browse/OLINGO-560
> Project: Olingo
> Issue Type: Bug
> Components: odata2-core
> Affects Versions: V2 2.0.1
> Environment: OSGI
> Reporter: Rashmi
> Assignee: Christian Amend
> Fix For: V2 2.0.3
>
>
> Problem description:
> Given a entity set with properties that have "not nullable" values or Key
> properties.
> During create operation, if the input playload has missing the key or not
> nullable properties the read entry of odata does not validate and thrown
> appropriate exception.
> Instead I am able to read the entry:
> The code that I am using is
> EntityProviderReadProperties properties=
> EntityProviderReadProperties.init().mergeSemantic(false).isValidatingFacets(true).build();
> ODataEntry entry = EntityProvider.readEntry(requestContentType,
> uriInfo.getTargetEntitySet(), content, properties);
> Expectation: readEntry should fail to read inputpayload where the key
> properties and not nullable properties are missing.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)