You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Allen Wittenauer (JIRA)" <ji...@apache.org> on 2014/07/29 21:12:39 UTC

[jira] [Resolved] (HDFS-739) "Go to parent directory" link broken running on windows

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

Allen Wittenauer resolved HDFS-739.
-----------------------------------

    Resolution: Fixed

Likely stale.

> "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: datanode
>    Affects Versions: 0.20.1
>         Environment: windows
>            Reporter: zhouyanming
>              Labels: newbie
>   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 was sent by Atlassian JIRA
(v6.2#6252)