[ https://issues.apache.org/jira/browse/ACCUMULO-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14955649#comment-14955649 ]
ASF GitHub Bot commented on ACCUMULO-4026: ------------------------------------------ GitHub user klucar opened a pull request: https://github.com/apache/accumulo/pull/48 added conf.isFile() check Fixes ACCUMULO-4026 You can merge this pull request into a Git repository by running: $ git pull https://github.com/klucar/accumulo ACCUMULO-4026 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/accumulo/pull/48.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #48 ---- commit b1718b0fc873266bebe416289419ccf026defaec Author: klucar <klu...@gmail.com> Date: 2015-10-13T20:48:54Z added conf.isFile() check ---- > 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 > Priority: Trivial > > 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)