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

Agent 5 not encoding # sign

    XMLWordPrintable

Details

    Description

      issue background:

      Customer discovered that in  Web Agent 5.6.1.1 and found an issue with the login page redirection if it has '#'

      fo example if the login page is

      https://openam.example.com/customer/#/login?appid=FRG

       

       

      The Agent debug log shows the redirection to the login page:

       

      V4.x

      2019-09-05 16:44:15.253 -0500  DEBUG [15624:17424][source/process.c:2522] handle_exit(): redirecting to: https:// openam.example.com /customer/#/login?appid=FRG&goto=http%3A%2F%2Fwebagentsb-test.forgerock.com%2F

       

       

      V5.x

      2019-09-05 21:39:05 Eastern Standard Time DEBUG  [4a91dfe6-4e51-fd07-1c00-4a1698be3039]: (source/request.c:2248) handle_exit(): redirecting to: https:// openam.example.com / /customer/?goto=http%3A%2F%2Fwebagentsb- -test.forgerock.com %3A80%2Fagent%2Fcustom-login-response%3Fstate%3D4a91dfe6-4e51-fd07-1c00-4a1698be3039&original_request_url=http%3A%2F%2Fwebagentsb- -test.forgerock.com m%3A80%2F#/login?appid=FRG

       

       The version 4.x agent is redirecting to the custom login page and appending a goto parameter on the end. The version 5.x agent is cutting the pound symbol, adding the goto and original_request_url parameters and then adding the pound and everything after to the end.

       In Agent 5 the request url can't encode "#" properly where it break the url. It works properly in Agent 4

      Attachments

        Activity

          People

            mareks.malnacs Mareks Malnacs
            jobby.thomas Jobby Thomas
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: