You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Edward Yoon (JIRA)" <ji...@apache.org> on 2008/01/17 11:16:34 UTC
[jira] Issue Comment Edited: (HADOOP-2626) RawLocalFileStatus is
badly handling URIs
[ https://issues.apache.org/jira/browse/HADOOP-2626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559886#action_12559886 ]
udanax edited comment on HADOOP-2626 at 1/17/08 2:15 AM:
--------------------------------------------------------------
If local file included a '%' character in a file name, we can't copy to dfs becuase FileStatus.getPath() returns urlencoded '%25'.
IMO, I think it is a bug.
was (Author: udanax):
If local file included a '%' character in a file name, we can't copy to dfs becuase RawLocalFileSystem.getPath() returns urlencoded '%25'.
IMO, I think it is a bug.
> 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: HADOOP-2626.patch
>
>
> 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.