Ruslan Didyk created OLINGO-1071:
------------------------------------

             Summary: Getting primitive with 'null' value throws serialization 
exception.
                 Key: OLINGO-1071
                 URL: https://issues.apache.org/jira/browse/OLINGO-1071
             Project: Olingo
          Issue Type: Bug
          Components: odata4-server
    Affects Versions: (Java) V4 4.3.0
            Reporter: Ruslan Didyk


Do GET request to get primitive property which has 'nul' value:
Example: http://localhost:8080/OData.svc/author('1')/name

Actual result: Error is displayed:
response:
Status: 400 Bad request
Body: {"error":null, "message": "The input 'null' is not allowed here."}}
Expected result:
response:
Status: 200 OK
Body: 
{"@odata.context":"http://http://localhost:8080/OData.svc/$metadata#author('1')/name",
 "@odata.null": true}

Code place where exception is throwing: ODataJsonSerializer.class - line 850



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

Reply via email to