[ 
https://issues.apache.org/jira/browse/DRILL-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15015122#comment-15015122
 ] 

ASF GitHub Bot commented on DRILL-2618:
---------------------------------------

Github user adeneche commented on the pull request:

    https://github.com/apache/drill/pull/270#issuecomment-158266801
  
    +1 overall, there are 2 places where @amansinha100 could give his opinion 
about
    
    can we add a unit test too ?


> 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
>          Components: Storage - Other
>            Reporter: Daniel Barclay (Drill)
>            Assignee: Hanifi Gunes
>             Fix For: 1.4.0
>
>
> {{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)

Reply via email to