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 3F482200D01 for ; Fri, 22 Sep 2017 19:47:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3DB461609D0; Fri, 22 Sep 2017 17:47:06 +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 833F71609E5 for ; Fri, 22 Sep 2017 19:47:05 +0200 (CEST) Received: (qmail 38632 invoked by uid 500); 22 Sep 2017 17:47:04 -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 38621 invoked by uid 99); 22 Sep 2017 17:47:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Sep 2017 17:47:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D349B1A6DBD for ; Fri, 22 Sep 2017 17:47:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id gsjcNWxzcYMm for ; Fri, 22 Sep 2017 17:47:02 +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 6605F5FC80 for ; Fri, 22 Sep 2017 17:47:01 +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 B244BE0B20 for ; Fri, 22 Sep 2017 17:47:00 +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 6668C24209 for ; Fri, 22 Sep 2017 17:47:00 +0000 (UTC) Date: Fri, 22 Sep 2017 17:47:00 +0000 (UTC) From: "Thomas Marquardt (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-14768) Honoring sticky bit during Deletion when authorization is enabled in WASB MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 22 Sep 2017 17:47:06 -0000 [ https://issues.apache.org/jira/browse/HADOOP-14768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16176798#comment-16176798 ] Thomas Marquardt commented on HADOOP-14768: ------------------------------------------- I opened HADOOP-14768.005.patch and still see major changes to {{NativeAzureFileSystem.delete}}. The point of my earlier feedback is that we should minimize risk for medium to high risk changes that are going to be ported to branch-2. We can do this by using config to enable the new functionality without a significant impact to existing functionality. What I had in mind is that you would leave the current delete code as-is and add a new delete method for the case when authorization is enabled: {code:java} public boolean delete(...) throws IOException { if (azureAuthorization) { return deleteWithAuthEnabled(...); } // current delete code goes here } private boolean deleteWithAuthEnabled(...) throws IOException { // new delete code for the case when authorization is enabled goes here } {code} > Honoring sticky bit during Deletion when authorization is enabled in WASB > ------------------------------------------------------------------------- > > Key: HADOOP-14768 > URL: https://issues.apache.org/jira/browse/HADOOP-14768 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs/azure > Reporter: Varada Hemeswari > Assignee: Varada Hemeswari > Labels: fs, secure, wasb > Attachments: HADOOP-14768.001.patch, HADOOP-14768.002.patch, HADOOP-14768.003.patch, HADOOP-14768.003.patch, HADOOP-14768.004.patch, HADOOP-14768.004.patch, HADOOP-14768.005.patch > > > When authorization is enabled in WASB filesystem, there is a need for stickybit in cases where multiple users can create files under a shared directory. This additional check for sticky bit is reqired since any user can delete another user's file because the parent has WRITE permission for all users. > The purpose of this jira is to implement sticky bit equivalent for 'delete' call when authorization is enabled. > Note : Sticky bit implementation for 'Rename' operation is not done as part of this JIRA -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org