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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0
    • Component/s: Storage - Other
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: