hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward Yoon (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-2626) RawLocalFileStatus is badly handling URIs
Date Thu, 17 Jan 2008 10:18:34 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-2626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559889#action_12559889
] 

Edward Yoon commented on HADOOP-2626:
-------------------------------------

For example :

FileStatus fileStatus = new RawLocalFileStatus(new File("udanax/15.7%.dat"), getDefaultBlockSize());
LOG.info(fileStatus.getPath()) // It will log the 'file:/root/workspace/hadoop/udanax/15.7%25.dat'
string.



> 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.


Mime
View raw message