You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Rashmi (JIRA)" <ji...@apache.org> on 2015/02/05 07:01:34 UTC
[jira] [Created] (OLINGO-560) Facet validation on inputpayload not
happening
Rashmi created OLINGO-560:
-----------------------------
Summary: 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
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)