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

REST API error response body should be XML by default

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 2.0
    • None
    • Atlassian Crowd Version: 2.0.0 (Build:#402 - Jul 02, 2009)

      The following unsuccessful request gives an error response in the body in XML format:

      curl -X POST --data @sarahinput.xml http://localhost:8095/crowd/rest/admin/latest/directory/atlassian%20crowd/user/testcurl.xml -u admin:admin -o sarahoutput.xml

      Response:

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>500</status-code></status>

      But if you remove the ".xml" extension from the request, you get a JSON response body:

      {"status-code":"500"}

      Would it be better if the default error response is in XML rather than JSON, since that's the default for non-error responses?

            [CWD-1622] REST API error response body should be XML by default

            I can't reproduce this on Crowd 2.7.1. The mentioned REST API doesn't even exist anymore as far as I can tell, so I'm closing this as obsolete.

            Caspar Krieger (Inactive) added a comment - I can't reproduce this on Crowd 2.7.1. The mentioned REST API doesn't even exist anymore as far as I can tell, so I'm closing this as obsolete.

              Unassigned Unassigned
              smaddox SarahA
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: