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

encode issue in CDCServlet if url contains blank

    XMLWordPrintable

    Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 9.5.3_RC1
    • 9.5.5, 10.0.1, 10.1.0-Xpress
    • cdsso
    • openAM server and apache agent are all in RHEL5
    • Rank:
      1|hzn8p3:

      Description

      Recently I test cdsso in openAM9.5.3_RC1, if the target url contains blank, it will be changed to "+", then get 404 error.
      For example: if I want to access "/Reports list/report1.html", it will redirect to "/Reports+list/report1.html" after authentication success, this only happens in cdsso.
      Then I look into the source code, see below codes in method redirectWithAuthNResponse:
      try {
      gotoURL = URLEncDec.encodeUrlPath(gotoURL);
      } catch

      this encode will replace blank to "+", I just comment this, then it works. I can't understand why to encode here, and why not just use java.net.URLencoder.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: