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 A1414200CAC for ; Mon, 19 Jun 2017 11:59:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A028A160BE4; Mon, 19 Jun 2017 09:59:03 +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 E61D0160BE1 for ; Mon, 19 Jun 2017 11:59:02 +0200 (CEST) Received: (qmail 49604 invoked by uid 500); 19 Jun 2017 09:59:02 -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 49593 invoked by uid 99); 19 Jun 2017 09:59:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jun 2017 09:59:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 82357CA857 for ; Mon, 19 Jun 2017 09:59:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 5CI33UwGN1bl for ; Mon, 19 Jun 2017 09:59:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id D0F905FC93 for ; Mon, 19 Jun 2017 09:59:00 +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 63290E073C for ; Mon, 19 Jun 2017 09:59: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 2014623FFE for ; Mon, 19 Jun 2017 09:59:00 +0000 (UTC) Date: Mon, 19 Jun 2017 09:59:00 +0000 (UTC) From: "Hongyuan Li (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HADOOP-14429) FTPFileSystem#getFsAction always returns FsAction.NONE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 19 Jun 2017 09:59:03 -0000 [ https://issues.apache.org/jira/browse/HADOOP-14429?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 053516#comment-16053516 ]=20 Hongyuan Li edited comment on HADOOP-14429 at 6/19/17 9:58 AM: --------------------------------------------------------------- [~brahmareddy]=20 1=E3=80=81i forgot to remove unused imports, will remove them in next patch= .=20 2=E3=80=81some messages can be added into assertEquals and wiil be added in= the next patch. 3=E3=80=81since i am not good at naming method, how about using {{getAcesss= SetFTPFile}} in replace for {{getFTPFile}} Thnks for your advice. :) *Update/Correction* =20 3=E3=80=81 using {{getAccessPremissionsSetFTPFile}} was (Author: hongyuan li): [~brahmareddy]=20 1=E3=80=81i forgot to remove unused imports, will remove them in next patch= .=20 2=E3=80=81some messages can be added into assertEquals and wiil be added in= the next patch. 3=E3=80=81since i am not good at naming method, how about using {{getAcesss= SetFTPFile}} in replace for {{getFTPFile}} Thnks for your advice. :) > FTPFileSystem#getFsAction always returns FsAction.NONE > ------------------------------------------------------- > > Key: HADOOP-14429 > URL: https://issues.apache.org/jira/browse/HADOOP-14429 > Project: Hadoop Common > Issue Type: Bug > Components: fs > Affects Versions: 3.0.0-alpha2 > Reporter: Hongyuan Li > Assignee: Hongyuan Li > Attachments: HADOOP-14429-001.patch, HADOOP-14429-002.patch, HADO= OP-14429-003.patch, HADOOP-14429-004.patch, HADOOP-14429-005.patch, HADOOP-= 14429-006.patch, HADOOP-14429-007.patch, HADOOP-14429-008.patch > > > =20 > {code} > private FsAction getFsAction(int accessGroup, FTPFile ftpFile) { > FsAction action =3D FsAction.NONE; > if (ftpFile.hasPermission(accessGroup, FTPFile.READ_PERMISSION)) { > action.or(FsAction.READ); > } > if (ftpFile.hasPermission(accessGroup, FTPFile.WRITE_PERMISSION)) { > action.or(FsAction.WRITE); > } > if (ftpFile.hasPermission(accessGroup, FTPFile.EXECUTE_PERMISSION)) { > action.or(FsAction.EXECUTE); > } > return action; > } > {code} > from code above, we can see that the getFsAction method doesnot modify t= he action generated by FsAction action =3D FsAction.NONE,which means it ret= urn FsAction.NONE all the time; -- 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