Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-7527

Make URL encoding consistent

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.23.0
    • None
    • None
    • None

    Description

      URL encoding is currently handled in at least 5 different ways. We should make these consistent:

      1. Parameters are encoded when a URI object is created
      2. HttpServlet uses RequestQuoter to html escape parameter names and values
      3. StringEscapeUtils is used to escape parameters in ReconfigurationServlet and DatanodeJspHelper
      4. URLEncoder and URLDecoder are used in multiple places
      5. encodePath from Jetty's URIUtil

      We should also be consistent about how we pass file names in URLs, some times they're passed in the path segment, sometimes they're passed in the query fragment as parameters.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              eli Eli Collins
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: