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 C5D52200C7C for ; Mon, 22 May 2017 06:07:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C4531160BD0; Mon, 22 May 2017 04:07:11 +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 16323160BCF for ; Mon, 22 May 2017 06:07:10 +0200 (CEST) Received: (qmail 29738 invoked by uid 500); 22 May 2017 04:07:10 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 29727 invoked by uid 99); 22 May 2017 04:07:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 May 2017 04:07:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A1C7C190D4E for ; Mon, 22 May 2017 04:07:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id GqQqkhTkmeyY for ; Mon, 22 May 2017 04:07:08 +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 BABBD5FDFE for ; Mon, 22 May 2017 04:07:07 +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 CD749E0DAF for ; Mon, 22 May 2017 04:07:06 +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 35D3921B5E for ; Mon, 22 May 2017 04:07:05 +0000 (UTC) Date: Mon, 22 May 2017 04:07:05 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ZOOKEEPER-2731) Cleanup findbug warnings in branch-3.4: Malicious code vulnerability Warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 22 May 2017 04:07:12 -0000 [ https://issues.apache.org/jira/browse/ZOOKEEPER-2731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16019125#comment-16019125 ] ASF GitHub Bot commented on ZOOKEEPER-2731: ------------------------------------------- Github user rakeshadr commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/232#discussion_r117658709 --- Diff: src/java/main/org/apache/zookeeper/ZooDefs.java --- @@ -96,21 +97,20 @@ /** * This is a completely open ACL . */ - public final ArrayList OPEN_ACL_UNSAFE = new ArrayList( - Collections.singletonList(new ACL(Perms.ALL, ANYONE_ID_UNSAFE))); + public final List OPEN_ACL_UNSAFE = --- End diff -- @afine , Its touching an exposed API and changing to List will impact b/w compatibility. Could you please follow the branch-3.5 fix like adding an exclude entry in `findbugsExcludeFile.xml`, ``` ``` API doc referenece http://zookeeper.apache.org/doc/r3.4.10/api/ Also, please read the discussions in https://issues.apache.org/jira/browse/ZOOKEEPER-1362 > Cleanup findbug warnings in branch-3.4: Malicious code vulnerability Warnings > ----------------------------------------------------------------------------- > > Key: ZOOKEEPER-2731 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2731 > Project: ZooKeeper > Issue Type: Sub-task > Affects Versions: 3.4.9 > Reporter: Rakesh R > Assignee: Abraham Fine > Fix For: 3.4.11 > > > Please refer the attached sheet in parent jira. Below is the details of findbug warnings. > {code} > MS org.apache.zookeeper.Environment.JAAS_CONF_KEY isn't final but should be > Bug type MS_SHOULD_BE_FINAL (click for details) > In class org.apache.zookeeper.Environment > Field org.apache.zookeeper.Environment.JAAS_CONF_KEY > At Environment.java:[line 34] > MS org.apache.zookeeper.server.ServerCnxn.cmd2String is a mutable collection which should be package protected > Bug type MS_MUTABLE_COLLECTION_PKGPROTECT (click for details) > In class org.apache.zookeeper.server.ServerCnxn > Field org.apache.zookeeper.server.ServerCnxn.cmd2String > At ServerCnxn.java:[line 230] > MS org.apache.zookeeper.ZooDefs$Ids.OPEN_ACL_UNSAFE is a mutable collection > Bug type MS_MUTABLE_COLLECTION (click for details) > In class org.apache.zookeeper.ZooDefs$Ids > Field org.apache.zookeeper.ZooDefs$Ids.OPEN_ACL_UNSAFE > At ZooDefs.java:[line 100] > MS org.apache.zookeeper.ZooKeeperMain.commandMap is a mutable collection which should be package protected > Bug type MS_MUTABLE_COLLECTION_PKGPROTECT (click for details) > In class org.apache.zookeeper.ZooKeeperMain > Field org.apache.zookeeper.ZooKeeperMain.commandMap > At ZooKeeperMain.java:[line 53] > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)