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

Christian Amend resolved OLINGO-759.
------------------------------------
    Resolution: Fixed

All Producer exceptions should now result in a 500 Internal Server Error status 
code with the following commit: 
https://git-wip-us.apache.org/repos/asf?p=olingo-odata2.git;a=commit;h=eb806b91042ae450cdec1b6934ecb9418b6008fa

> EntityProviderException HTTP status code 400 is not right
> ---------------------------------------------------------
>
>                 Key: OLINGO-759
>                 URL: https://issues.apache.org/jira/browse/OLINGO-759
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-core
>    Affects Versions: V2 2.0.2
>            Reporter: Sunil Chakravarthy Dabburi
>            Assignee: Christian Amend
>             Fix For: V2 2.0.7
>
>
> I have a function import which expects an output of type Edm.Int16 but the 
> function returns value greater than the expected range and it fails to cast 
> and throws an EntityProviderException with http status code 400. I debugged 
> the code and found Olingo always sets the EntityProviderException http status 
> code to 400 by default in ODataExceptionWrapper. Here it is not a bad 
> request. The status code is misleading. Please fix it.



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

Reply via email to