[
https://issues.apache.org/jira/browse/OLINGO-759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sunil Chakravarthy Dabburi updated OLINGO-759:
----------------------------------------------
Description: 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. (was: I have a
function import which expects an output of 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.)
> 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
>
> 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)