Paul Sun created OLINGO-1542: -------------------------------- Summary: Odata client drops the error if error details are empty Key: OLINGO-1542 URL: https://issues.apache.org/jira/browse/OLINGO-1542 Project: Olingo Issue Type: Bug Components: odata4-client Reporter: Paul Sun
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. {code:java} 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); } }{code} -- This message was sent by Atlassian Jira (v8.3.4#803005)