Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 01632D41F for ; Thu, 19 Jul 2012 18:32:36 +0000 (UTC) Received: (qmail 74408 invoked by uid 500); 19 Jul 2012 18:32:35 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 74263 invoked by uid 500); 19 Jul 2012 18:32:35 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 74254 invoked by uid 99); 19 Jul 2012 18:32:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jul 2012 18:32:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 313B314285B for ; Thu, 19 Jul 2012 18:32:35 +0000 (UTC) Date: Thu, 19 Jul 2012 18:32:35 +0000 (UTC) From: "Suresh Srinivas (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <164788664.77308.1342722755203.JavaMail.jiratomcat@issues-vm> In-Reply-To: <324904042.70013.1342631975064.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (HADOOP-8606) FileSystem.get may return the wrong filesystem MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-8606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418544#comment-13418544 ] Suresh Srinivas commented on HADOOP-8606: ----------------------------------------- +1 for the patch. > FileSystem.get may return the wrong filesystem > ---------------------------------------------- > > Key: HADOOP-8606 > URL: https://issues.apache.org/jira/browse/HADOOP-8606 > Project: Hadoop Common > Issue Type: Bug > Components: fs > Affects Versions: 1.0.0, 0.23.0, 2.0.0-alpha, 3.0.0 > Reporter: Daryn Sharp > Assignee: Daryn Sharp > Attachments: HADOOP-8606.branch-1.patch, HADOOP-8606.patch > > > {{FileSystem.get(URI, conf)}} will return the default fs if the scheme is null, regardless of whether the authority is null too. This causes URIs of "//authority/path" to _always_ refer to "/path" on the default fs. To the user, this appears to "work" if the authority in the null-scheme URI matches the authority of the default fs. When the authorities don't match, the user is very surprised that the default fs is used. -- 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