You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Ruslan Didyk (JIRA)" <ji...@apache.org> on 2017/01/20 14:42:26 UTC

[jira] [Commented] (OLINGO-1071) Getting primitive with 'null' value throws serialization exception.

    [ https://issues.apache.org/jira/browse/OLINGO-1071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15831842#comment-15831842 ] 

Ruslan Didyk commented on OLINGO-1071:
--------------------------------------

I've forgot to mention that this bug is reproducing only for 'json' content type.

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