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 "Daryn Sharp (JIRA)" <ji...@apache.org> on 2013/10/03 17:40:43 UTC
[jira] [Created] (HADOOP-10013) FileSystem checkPath accepts
invalid paths with an authority but no scheme
Daryn Sharp created HADOOP-10013:
------------------------------------
Summary: 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.1#6144)