Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-32467

Avoid encoding URL twice on https redirect

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1, 3.1.0
    • Fix Version/s: None
    • Component/s: Web UI
    • Labels:
      None

      Description

      Currently, on https redirect, the original URL is encoded as an HTTPS URL. However, the original URL could be encoded already, so that the return result of method
      UriInfo.getQueryParameters will contain encoded keys and values. For example, a parameter
      order[0][dir] will become order%255B0%255D%255Bcolumn%255D after encoded twice, and the decoded
      key in the result of UriInfo.getQueryParameters will be order%5B0%5D%5Bcolumn%5D.

      To fix the problem, we try decoding the query parameters before encoding it. This is to make sure we encode the URL exactly once.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Gengliang.Wang Gengliang Wang
                Reporter:
                Gengliang.Wang Gengliang Wang
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: