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

PathScanner.forResource(..., true, ...) breaks when URL-special character in resource pathname

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • Future
    • Execution - Flow
    • None

    Description

      In class org.apache.drill.common.util.PathScanner, method forResource(...), when called in return-classpath-root mode (with a value of true for parameter stripName), breaks if the resource pathname contains any character that is not represented by itself in a URL (e.g., ":", "%"). (The method returns the resource URL rather than the requested corresponding classpath root URL.)

      Attachments

        1. DRILL-2696-1Test.4.patch.txt
          6 kB
          Daniel Barclay
        2. DRILL-2696-1Test.5.patch.txt
          6 kB
          Daniel Barclay

        Activity

          People

            Unassigned Unassigned
            dsbos Daniel Barclay
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: