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 264A5200BAA for ; Thu, 27 Oct 2016 13:17:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 24FB3160AF6; Thu, 27 Oct 2016 11:17:00 +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 69B2C160AE4 for ; Thu, 27 Oct 2016 13:16:59 +0200 (CEST) Received: (qmail 46946 invoked by uid 500); 27 Oct 2016 11:16:58 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 46925 invoked by uid 99); 27 Oct 2016 11:16:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Oct 2016 11:16:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 578C72C1F56 for ; Thu, 27 Oct 2016 11:16:58 +0000 (UTC) Date: Thu, 27 Oct 2016 11:16:58 +0000 (UTC) From: "Rakesh R (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-13201) Print the directory paths when ViewFs denies the rename operation on internal dirs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 27 Oct 2016 11:17:00 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15611568#comment-15611568 ] Rakesh R commented on HADOOP-13201: ----------------------------------- cc/[~vinayrpet] > Print the directory paths when ViewFs denies the rename operation on internal dirs > ---------------------------------------------------------------------------------- > > Key: HADOOP-13201 > URL: https://issues.apache.org/jira/browse/HADOOP-13201 > Project: Hadoop Common > Issue Type: Bug > Components: viewfs > Affects Versions: 2.7.2 > Reporter: Tianyin Xu > Assignee: Rakesh R > Attachments: HADOOP-13201-001.patch, HADOOP-13201.000.patch > > > With ViewFs, the delete and rename operations on internal dirs are denied by throwing {{AccessControlException}}. > Unlike the {{delete()}} which notify the internal dir path, rename does not. > The attached patch appends the directory path on the logged exception. > {code:title=ViewFs.java|borderStyle=solid} > InodeTree.ResolveResult resSrc = > fsState.resolve(getUriPath(src), false); > if (resSrc.isInternalDir()) { > throw new AccessControlException( > - "Cannot Rename within internal dirs of mount table: it is readOnly"); > + "Cannot Rename within internal dirs of mount table: it is readOnly" > + + src); > } > > InodeTree.ResolveResult resDst = > fsState.resolve(getUriPath(dst), false); > if (resDst.isInternalDir()) { > throw new AccessControlException( > - "Cannot Rename within internal dirs of mount table: it is readOnly"); > + "Cannot Rename within internal dirs of mount table: it is readOnly" > + + dst); > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org