Uploaded image for project: 'OpenAM Agents'
  1. OpenAM Agents
  2. AMAGENTS-4101

inconsistent behavior for JSON request between web agent 4.2.1.2 and 5.7.0 for content-type header

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.7.0
    • Fix Version/s: 5.8.1, 5.9.0
    • Component/s: Web Agents
    • Environment:
      AM 6.0.0.7 with web agent upgrade from 4.2.1.2 to web agent 5.7.0

      Description

      Customer is seeing an inconsistent behavior between web agent 4.2.1.2 and web agent 5.7.0.

      When setting the enableJsonResponse as noted in the JSON section of the KB:

      Headers and Values to Receive JSON-Formatted Responses

      https://backstage.forgerock.com/docs/openam-web-policy-agents/5.7/web-agents-guide/

       

      Customer enabled:

      org.forgerock.agents.config.json.header[enableJsonResponse]=true

      org.forgerock.agents.config.json.response.code=302

       

      Under web agent 4.2.1.2 response content-type header was as expected:

      Content-Type: application/json

       

      Under web agent 5.7.0 response content-type header is not as expected:

      Content-Type: text/html; charset=iso-8859-1

       

      Customer application depends on the Content-Type being of JSON type so the change in behavior is affecting their application.

        Attachments

          Activity

            People

            Assignee:
            mareks.malnacs Mareks Malnacs
            Reporter:
            gabriel.marquez Gabriel Marquez
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: