[ 
https://issues.apache.org/jira/browse/OLINGO-560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Amend reassigned OLINGO-560:
--------------------------------------

    Assignee: Christian Amend

> 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
>
> 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)

Reply via email to