You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "lohit vijayarenu (JIRA)" <ji...@apache.org> on 2008/04/04 08:37:28 UTC

[jira] Created: (HADOOP-3170) FileSystem.getUri().resolve() should handle Path created on Windows

FileSystem.getUri().resolve() should handle Path created on Windows
-------------------------------------------------------------------

                 Key: HADOOP-3170
                 URL: https://issues.apache.org/jira/browse/HADOOP-3170
             Project: Hadoop Core
          Issue Type: Bug
         Environment: windows
            Reporter: lohit vijayarenu


FileSystem.getUri() returns URI constructed from string "file:///" This when applied to absolute Paths created on Windows breaks. For example when using a patch constructed like this with DistributedCache(). makeAbsolute(Path) seems to return path with drive letter followed by colon. URI.resolve() treats this part as authority for local filesystem on windows. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HADOOP-3170) FileSystem.getUri().resolve() should handle Path created on Windows

Posted by "lohit vijayarenu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

lohit vijayarenu resolved HADOOP-3170.
--------------------------------------

    Resolution: Invalid

Doug pointed out I had to use File#toUri(). Closing this was invalid.

> FileSystem.getUri().resolve() should handle Path created on Windows
> -------------------------------------------------------------------
>
>                 Key: HADOOP-3170
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3170
>             Project: Hadoop Core
>          Issue Type: Bug
>         Environment: windows
>            Reporter: lohit vijayarenu
>
> FileSystem.getUri() returns URI constructed from string "file:///" This when applied to absolute Paths created on Windows breaks. For example when using a patch constructed like this with DistributedCache(). makeAbsolute(Path) seems to return path with drive letter followed by colon. URI.resolve() treats this part as authority for local filesystem on windows. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.