Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-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 1B6B31721C for ; Mon, 30 Mar 2015 04:11:56 +0000 (UTC) Received: (qmail 5082 invoked by uid 500); 30 Mar 2015 04:11:53 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 5052 invoked by uid 500); 30 Mar 2015 04:11:52 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 5043 invoked by uid 99); 30 Mar 2015 04:11:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2015 04:11:52 +0000 Date: Mon, 30 Mar 2015 04:11:52 +0000 (UTC) From: "Daniel Barclay (Drill) (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-2618) BasicFormatMatcher calls getFirstPath(...) without checking # of paths is not zero 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/DRILL-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Barclay (Drill) updated DRILL-2618: ------------------------------------------ Description: {{BasicFormatMatcher.isReadable(...)}} calls {{getFirstPath(...)}} without checking that there is at least one path. This can cause an IndexOutOfBoundsException. To reproduce, create an empty directory {{/tmp/CaseInsensitiveColumnNames}} and run {{exec/java-exec/src/test/java/org/apache/drill/TestExampleQueries.java}}. was: {{BasicFormatMatcher.isReadable(...)}} calls {{getFirstPath(...)}} without checking that there is at least one path. To reproduce, create an empty directory {{/tmp/CaseInsensitiveColumnNames}} and run {{exec/java-exec/src/test/java/org/apache/drill/TestExampleQueries.java}}. > BasicFormatMatcher calls getFirstPath(...) without checking # of paths is not zero > ---------------------------------------------------------------------------------- > > Key: DRILL-2618 > URL: https://issues.apache.org/jira/browse/DRILL-2618 > Project: Apache Drill > Issue Type: Bug > Reporter: Daniel Barclay (Drill) > > {{BasicFormatMatcher.isReadable(...)}} calls {{getFirstPath(...)}} without checking that there is at least one path. This can cause an IndexOutOfBoundsException. > To reproduce, create an empty directory {{/tmp/CaseInsensitiveColumnNames}} and run {{exec/java-exec/src/test/java/org/apache/drill/TestExampleQueries.java}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332)