hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph Fourny (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-15217) org.apache.hadoop.fs.FsUrlConnection does not handle paths with spaces
Date Thu, 08 Feb 2018 22:23:06 GMT
Joseph Fourny created HADOOP-15217:

             Summary: org.apache.hadoop.fs.FsUrlConnection does not handle paths with spaces
                 Key: HADOOP-15217
                 URL: https://issues.apache.org/jira/browse/HADOOP-15217
             Project: Hadoop Common
          Issue Type: Bug
          Components: fs
    Affects Versions: 2.6.5
            Reporter: Joseph Fourny
         Attachments: TestCase.java

When _FsUrlStreamHandlerFactory_ is registered with java.net.URL (ex: when Spark is initialized),
it breaks URLs with spaces (even though they are properly URI-encoded). I traced the problem
down to _FSUrlConnection.connect()_ method. It naively gets the path from the URL, which
contains encoded spaces, and pases it to _org.apache.hadoop.fs.Path(String)_ constructor.
This is not correct, because the docs clearly say that the string must NOT be encoded. Doing
so causes double encoding within the Path class (ie: %20 becomes %2520). 


This message was sent by Atlassian JIRA

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org

View raw message