[ https://issues.apache.org/jira/browse/HADOOP-2626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Doug Cutting updated HADOOP-2626: --------------------------------- Status: Open (was: Patch Available) This patch puts an unqualified path in the returned FileStatus. That's not strictly a bug, but we've found that it's always safest to return fully-qualified paths whenever we can. To convert the java.io.File to a Path, we might use new Path(file.getPath()).makeQualified(fs). Perhaps this should be added as a fileToPath method, since there's already a path2File() method. > RawLocalFileStatus is badly handling URIs > ----------------------------------------- > > Key: HADOOP-2626 > URL: https://issues.apache.org/jira/browse/HADOOP-2626 > Project: Hadoop > Issue Type: Bug > Components: fs > Affects Versions: 0.15.2 > Reporter: Frédéric Bertin > Attachments: patch-Hadoop-2626.diff > > > as a result, files with special characters (that get encoded when translated > to URIs) are badly handled using a local filesystem. > {{new Path(f.toURI().toString()))}} should be replaced by {{new > Path(f.toURI().getPath()))}} > IMHO, each call to {{toURI().toString()}} should be considered suspicious. > There's another one in the class CopyFiles at line 641. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.