Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-2395

Crowd REST client tries to unmarshal response body on errors, but doesn't handle unmarshalling errors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 2.3
    • None
    • REST
    • 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.

      Attachments

        Activity

          People

            jwalton joe
            tmoore Tim Moore [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: