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-2635) If local file included a '%' character in a file name, we can't copy to dfs becuase RawLocalFileSystem.getPath() returns urlencoded '%25'
Date Thu, 17 Jan 2008 07:04:34 GMT

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

Edward Yoon commented on HADOOP-2635:
-------------------------------------

toURI() method was used for running different operating systems (i'm not sure) at RawLocalFileStatus.
But, toString() method was used.

Therefore, 
I'll change the f.toURI().toString() to "file:" + f.getPath().

If you have other idea, please let me know.





> If local file included a '%' character in a file name, we can't copy to dfs becuase RawLocalFileSystem.getPath()
returns urlencoded '%25'
> -----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-2635
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2635
>             Project: Hadoop
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.16.0
>            Reporter: Edward Yoon
>            Assignee: Edward Yoon
>             Fix For: 0.16.0
>
>
> {code}
> FileStatus fileStatus = new RawLocalFileStatus(new File("udanax/Ageha100%.html"), getDefaultBlockSize());
> LOG.info(fileStatus.getPath());
> {code}
> Log :
> file:/root/workspace/hadoop/udanax/Ageha100%25.html

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