Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D87AE1892C for ; Wed, 28 Oct 2015 01:14:38 +0000 (UTC) Received: (qmail 15859 invoked by uid 500); 28 Oct 2015 01:14:27 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 15835 invoked by uid 500); 28 Oct 2015 01:14:27 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 15807 invoked by uid 99); 28 Oct 2015 01:14:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Oct 2015 01:14:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A909D2C14F2 for ; Wed, 28 Oct 2015 01:14:27 +0000 (UTC) Date: Wed, 28 Oct 2015 01:14:27 +0000 (UTC) From: "Daniel Dai (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-12282) beeline - update command printing in verbose mode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-12282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Dai updated HIVE-12282: ------------------------------ Attachment: HIVE-12282.1.patch > beeline - update command printing in verbose mode > ------------------------------------------------- > > Key: HIVE-12282 > URL: https://issues.apache.org/jira/browse/HIVE-12282 > Project: Hive > Issue Type: Bug > Components: Beeline > Reporter: Daniel Dai > Assignee: Daniel Dai > Fix For: 2.0.0 > > Attachments: HIVE-12282.1.patch > > > In verbose mode, beeline prints the password used in commandline to STDERR. > This is not a good security practice. > Issue is in BeeLine.java code - > {code} > if (url != null) { > String com = "!connect " > + url + " " > + (user == null || user.length() == 0 ? "''" : user) + " " > + (pass == null || pass.length() == 0 ? "''" : pass) + " " > + (driver == null ? "" : driver); > debug("issuing: " + com); > dispatch(com); > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)