Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-3941

Policy REST Content-Type headers responding with charset=ISO-8859-1 for errors

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 12.0.0
    • Fix Version/s: None
    • Component/s: policy, rest
    • Labels:
    • Rank:
      1|hzofhr:

      Description

      When making an unauthorised request to create a policy at the json/policies/ endpoint the response is coming back as

      HTTP/1.1 401 Unauthorized
      Server=Apache-Coyote/1.1
      Content-Type=application/json;charset=ISO-8859-1
      Content-Length=69
      Date=Fri, 02 May 2014 16:54:37 GMT
      
      {
          "code": 401,
          "reason": "Unauthorized",
          "message": "Access Denied"
      }

      The charset on this is ISO-8859-1 regardless of the request type and the fact that CREST only supports UTF-8. Successful requests respond as UTF-8 as expected, as do failed requests to other endpoints.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                samdrew Sam Drew
                QA Assignee:
                Sam Drew
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: