Details
-
Bug
-
Resolution: Fixed
-
Low
-
None
-
JIRA Studio, running Crowd 2.2.0 (not an option for Affects Version). It appears to still exist in trunk.
Description
The Crowd REST client tries to unmarshal the entity on responses that come back with a status code >= 300.
I assume this is because the Crowd REST server returns XML responses for errors, however there are other conditions that can result in an error response code:
- An error in an intermediate proxy
- A Tomcat error
- An error in the filter chain before the REST handler is reached
In these cases, the unmarshalling fails in the client and throws an exception, masking the original error with an irrelevant one.