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

ScriptedDecisionNode exposes headers in a case sensitive map

    XMLWordPrintable

    Details

    • 2018.8 "Narwhal" Turing

      Description

      Bug description

      The request headers exposed to scripts are stored in a case sensitive map, but HTTP headers are case insensitive. This makes it difficult for scripts to work with headers.

      How to reproduce the issue

      Update ScriptedDecisionNode functional test's USER_AGENT_DECISION_SCRIPT to use different case in subsequent runs, all those tests should pass.

      Expected behaviour

      The headers can be accessed easily regardless of their case

      Current behaviour

      The test fails on WildFly for example because WildFly stores the headers in exactly the same case as they were sent with.

      Work around

      Update the scripts to iterate through the map and check keys case sensitively.

        Attachments

          Activity

            People

            gabor.melkvi Gabor Melkvi
            peter.major Peter Major [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: