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:
- Parameters are encoded when a URI object is created
- HttpServlet uses RequestQuoter to html escape parameter names and values
- StringEscapeUtils is used to escape parameters in ReconfigurationServlet and DatanodeJspHelper
- URLEncoder and URLDecoder are used in multiple places
- 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
- relates to
-
HDFS-1109 HFTP and URL Encoding
- Closed