Christian Holzer created OLINGO-590:
---------------------------------------

             Summary: JSON deserializer do not deserialize nulled inline 
entities
                 Key: OLINGO-590
                 URL: https://issues.apache.org/jira/browse/OLINGO-590
             Project: Olingo
          Issue Type: Bug
          Components: odata4-server
    Affects Versions: (Java) V4 4.0.0-beta-03
            Reporter: Christian Holzer
            Priority: Minor


The JSON deserializer throws an exception if a single valued navigation 
property is set to null, even if null values are allowed.

Consider the following payload of a PATCH request:
{
    "NavPropertyETTwoPrimOne": null
}

Up to the metadata document of the TecSvc Service 
ETAllPrim/NavPropertyETTwoPrimOne can be set to null.
This behavior results in the exception message "Invalid value for navigation 
property 'NavPropertyETTwoPrimOne'. Must be an array for collections or for an 
entity either null or an object.”

Kind regards
Christian



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to