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 2DE81200ACA for ; Wed, 18 May 2016 23:59:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2CCA21609B0; Wed, 18 May 2016 21:59:15 +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 785A7160A1B for ; Wed, 18 May 2016 23:59:14 +0200 (CEST) Received: (qmail 94950 invoked by uid 500); 18 May 2016 21:59:13 -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 94797 invoked by uid 99); 18 May 2016 21:59:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 May 2016 21:59:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 56CB72C1F78 for ; Wed, 18 May 2016 21:59:13 +0000 (UTC) Date: Wed, 18 May 2016 21:59:13 +0000 (UTC) From: "Andrew Wang (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-13157) Follow-on improvements to hadoop credential commands MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 18 May 2016 21:59:15 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Wang updated HADOOP-13157: --------------------------------- Resolution: Fixed Fix Version/s: (was: 2.9.0) 2.8.0 Status: Resolved (was: Patch Available) Thanks Mike for the branch-2* patches, and to Akira for catching my mistake with the branch-2 commit. Committed respective patches to branch-2 and 2.8. > Follow-on improvements to hadoop credential commands > ---------------------------------------------------- > > Key: HADOOP-13157 > URL: https://issues.apache.org/jira/browse/HADOOP-13157 > Project: Hadoop Common > Issue Type: Bug > Components: security > Affects Versions: 2.8.0 > Reporter: Mike Yoder > Assignee: Mike Yoder > Fix For: 2.8.0 > > Attachments: HADOOP-13157.001.patch, HADOOP-13157.002.patch, HADOOP-13157.003.branch-2.8.patch, HADOOP-13157.004.branch-2.patch > > > [~andrew.wang] had some follow-up code review comments from HADOOP-12942. Hence this issue. > Ping [~lmccay] as well. > The comments: > {quote} > Overall this looks okay, the only correctness question I have is about the difference in behavior when the pwfile doesn't exist. > The rest are all nits, would be nice to do these cleanups though. > File hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/JavaKeyStoreProvider.java: > Line 147: > Could this be a static helper? > Line 161: new > The javadoc says it returns null in this situation. This is also a difference from the implementation in the AbstractJKSP. Intentional? > Line 175: private void locateKeystore() throws IOException { > static helper? for the construct*Path methods too? > File hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/KeyShell.java: > Line 50: @VisibleForTesting public static final String NO_VALID_PROVIDERS = > FYI for the future, our coding style is to put annotations on their own separate line. > File hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/alias/AbstractJavaKeyStoreProvider.java: > Line 326: private char[] locatePassword() throws IOException { > this method looks very similar to the one in JavaKeyStoreProvider, except the env var it looks for is different, is there potential for code reuse? > Line 394: " o In the environment variable " + > Using a "*" is the usual way of doing a bullet point, e.g. markdown and wiki syntax. > Line 399: "http://hadoop.apache.org/docs/current/hadoop-project-dist/" + > This link is not tied to a version, so could be inaccurate. > {quote} -- 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