Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C2B43200C4D for ; Wed, 22 Mar 2017 01:34:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C1523160B90; Wed, 22 Mar 2017 00:34:50 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 13B38160B81 for ; Wed, 22 Mar 2017 01:34:49 +0100 (CET) Received: (qmail 81397 invoked by uid 500); 22 Mar 2017 00:34:48 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 81374 invoked by uid 99); 22 Mar 2017 00:34:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Mar 2017 00:34:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 809A2C03A7 for ; Wed, 22 Mar 2017 00:34:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.349 X-Spam-Level: X-Spam-Status: No, score=-99.349 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id BRikWkUP7Hwd for ; Wed, 22 Mar 2017 00:34:46 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 26FA85FCB7 for ; Wed, 22 Mar 2017 00:34:46 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 24435E0236 for ; Wed, 22 Mar 2017 00:34:45 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4853224D2D for ; Wed, 22 Mar 2017 00:34:44 +0000 (UTC) Date: Wed, 22 Mar 2017 00:34:44 +0000 (UTC) From: "Erik Krogen (JIRA)" To: common-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HADOOP-14211) ChRootedFs is too aggressive about enforcing "needsAuthority" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 22 Mar 2017 00:34:50 -0000 Erik Krogen created HADOOP-14211: ------------------------------------ Summary: ChRootedFs is too aggressive about enforcing "needsAuthority" Key: HADOOP-14211 URL: https://issues.apache.org/jira/browse/HADOOP-14211 Project: Hadoop Common Issue Type: Bug Components: viewfs Affects Versions: 2.6.0 Reporter: Erik Krogen Assignee: Erik Krogen Right now {{ChRootedFs}} passes the following up to the {{AbstractFileSystem}} superconstructor: {code} super(fs.getUri(), fs.getUri().getScheme(), fs.getUri().getAuthority() != null, fs.getUriDefaultPort()); {code} This passes a value of {{authorityNeeded==true}} for any {{fs}} which has an authority, but this isn't necessarily the case--ViewFS itself is an example of this. In fact you will encounter this issue if you try to nest one ViewFS within another--I can't think of any reason why you would want to do that but there's no reason why you shouldn't be able to and in general ViewFS is making an assumption that it then proves invalid by its own behavior. The {{authorityNeeded}} check isn't necessary in this case anyway; {{fs}} is already an instantiated {{AbstractFileSystem}} which means it has already used the same constructor with the value of {{authorityNeeded}} (and corresponding validation) that it actually requires. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-dev-help@hadoop.apache.org