[ 
https://issues.apache.org/jira/browse/HDFS-58?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harsh J resolved HDFS-58.
-------------------------

    Resolution: Cannot Reproduce

This has gone stale, and looking at listStatus impls, looks like it could not 
happen.

Can't reproduce, closing out.
                
> DistributedFileSystem.listPaths with some paths causes directory to be cleared
> ------------------------------------------------------------------------------
>
>                 Key: HDFS-58
>                 URL: https://issues.apache.org/jira/browse/HDFS-58
>             Project: Hadoop HDFS
>          Issue Type: Bug
>         Environment: Linux
>            Reporter: Bryan Duxbury
>
> I am currently writing a Ruby wrapper to the Java DFS client libraries via 
> JNI. While attempting to test the listPaths method of the FileSystem class, I 
> discovered that passing a Path URI like "hdfs://tf11:7276/user/rapleaf" 
> results in the /user/rapleaf directory being cleared of all contents. A path 
> URI like "hdfs://tf11:7276/user/rapleaf/*" will list the contents of the 
> directory without damage. 
> I have verified this by creating directories and listing via the bin/hadoop 
> dfs -ls command. 
> Obviously passing an incorrectly formatted string a method that should be 
> read-only should not have destructive effects. Also, the actual required path 
> syntax for listings should be recorded in the documentation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to