You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Doug Cutting (Commented) (JIRA)" <ji...@apache.org> on 2012/02/17 23:06:57 UTC

[jira] [Commented] (HADOOP-8087) Path parsing is flawed

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

Doug Cutting commented on HADOOP-8087:
--------------------------------------

Paths are a subset of URIs.  A relative URI permits an authority even when a scheme is not present.

I'd expect "//foo/bar" to be interpreted as "${defaultScheme}//foo/bar".

http://tools.ietf.org/html/rfc3986#section-3.3
http://tools.ietf.org/html/rfc3986#section-4.2

                
> Path parsing is flawed
> ----------------------
>
>                 Key: HADOOP-8087
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8087
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.23.0, 0.24.0
>            Reporter: Daryn Sharp
>            Assignee: Daryn Sharp
>
> {{Path}} is incorrectly parsing {{//dir/path}} in a very unexpected way.  While it should translate to the directory {{$fs.default.name}/dir/path}}, it instead discards the {{//dir}} and returns
> {{$fs.default.name/path}}.  The problem is {{Path}} is trying to parsing an authority even when a scheme is not present.

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