Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 08D11186F8 for ; Wed, 14 Oct 2015 15:40:29 +0000 (UTC) Received: (qmail 63409 invoked by uid 500); 14 Oct 2015 15:40:07 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 63374 invoked by uid 500); 14 Oct 2015 15:40:06 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 63358 invoked by uid 99); 14 Oct 2015 15:40:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Oct 2015 15:40:06 +0000 Date: Wed, 14 Oct 2015 15:40:06 +0000 (UTC) From: "Christopher Tubbs (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-4026) Setting ACCUMULO_CLIENT_CONF_PATH with no client.conf file present throws ConfigurationException 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/ACCUMULO-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14957100#comment-14957100 ] Christopher Tubbs commented on ACCUMULO-4026: --------------------------------------------- We can merge the PR for this issue, and I've created a subtask to make it more tolerant. > Setting ACCUMULO_CLIENT_CONF_PATH with no client.conf file present throws ConfigurationException > ------------------------------------------------------------------------------------------------ > > Key: ACCUMULO-4026 > URL: https://issues.apache.org/jira/browse/ACCUMULO-4026 > Project: Accumulo > Issue Type: Bug > Components: client, core > Affects Versions: 1.7.0 > Reporter: Jim Klucar > Assignee: Jim Klucar > Priority: Trivial > Fix For: 1.7.1, 1.8.0 > > > Setting the environment variable ACCUMULO_CLIENT_CONF_PATH to a directory that exists but does not contain a file named client.conf throws > org.apache.commons.configuration.ConfigurationException: Cannot load a configuration from a directory > To demo this, simply set ACCUMULO_CLIENT_CONF_PATH to /tmp, make sure client.conf doesn't exist in /tmp and try to run the accumulo shell. > The problem is ClientConfiguration.java on line 221 checks File.canRead() which is true for a Directory and a File. The solution is to make the branch check File.isFile() && File.canRead() -- This message was sent by Atlassian JIRA (v6.3.4#6332)