[
https://issues.apache.org/jira/browse/HADOOP-10013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14496516#comment-14496516
]
Brahma Reddy Battula commented on HADOOP-10013:
-----------------------------------------------
[~daryn] AFAIK this bug not exists in branch-2 and trunk..can we close this
jira..?
{code}
String thatScheme = uri.getScheme();
if (thatScheme == null) // fs is relative
return;
{code}
> FileSystem checkPath accepts invalid paths with an authority but no scheme
> --------------------------------------------------------------------------
>
> Key: HADOOP-10013
> URL: https://issues.apache.org/jira/browse/HADOOP-10013
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 2.0.0-alpha, 3.0.0
> Reporter: Daryn Sharp
>
> {{FileSystem#checkPath}} will consider paths of the form //junk/path as being
> valid for the given fs. The problem is {{checkPath}} shorts out if the path
> contains no scheme - assuming it must be a relative or absolute path for the
> given fs - whereas the condition should be no scheme _and_ no authority.
> This causes {{DistributedFileSystem#getPathName}} to convert //junk/path into
> /path, which silently hides the use of invalid paths.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)