Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-2618

BasicFormatMatcher calls getFirstPath(...) without checking # of paths is not zero

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • Storage - Other
    • None

    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.

      Attachments

        Issue Links

          Activity

            People

              hgunes Hanifi Gunes
              dsbos Daniel Barclay
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: