Details
-
Bug
-
Status: Open
-
Critical
-
Resolution: Unresolved
-
None
-
None
-
None
Description
ODataErrorResponseChecker.java, checkResponse().
As the following code shows, if error doesn't have a detail, it will be dropped, so client can't get error message. Maybe we also need to take the error message into consideration.
if (statusLine.getStatusCode() >= 500 && error!= null && (error.getDetails() == null || error.getDetails().isEmpty()) && (error.getInnerError() == null || error.getInnerError().size() == 0)) { result = new ODataServerErrorException(statusLine); } else { result = new ODataClientErrorException(statusLine, error); } }