[
https://issues.apache.org/jira/browse/HDFS-739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13182024#comment-13182024
]
Harsh J commented on HDFS-739:
------------------------------
I think using File API for that is a bad idea. We should use Path.
> "Go to parent directory" link broken running on windows
> -------------------------------------------------------
>
> Key: HDFS-739
> URL: https://issues.apache.org/jira/browse/HDFS-739
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node
> Affects Versions: 0.20.1
> Environment: windows
> Reporter: zhouyanming
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> src/webapps/datanode/browseDirectory.jsp
> File f = new File(dir);
> String parent;
> if ((parent = f.getParent()) != null)
> out.print("<a href=\"" + req.getRequestURL() + "?dir=" + parent +
> "&namenodeInfoPort=" + namenodeInfoPort +
> "\">Go to parent directory</a><br>");
> File.getParent() return separator "\" not "/"
--
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