Derby
  1. Derby
  2. DERBY-5897

Broken handling of paths with special characters in compatibility/VersionCombinationConfigurator

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10.1.1
    • Fix Version/s: 10.10.1.1
    • Component/s: Test
    • Labels:
      None

      Description

      Some of the code handling paths in compatibility/VersionCombinationConfigurator is broken.
      The issue is that the location of a given class is given as a URL. This means the path will be URL encoded, and, for instance, spaces will be encoded as '%20'.

      This bug typically shows itself as an NPE when invoking compatibility._Suite.

        Activity

        Hide
        Knut Anders Hatlen added a comment -

        [bulk update: close all resolved issues that haven't had any activity the last year]

        Show
        Knut Anders Hatlen added a comment - [bulk update: close all resolved issues that haven't had any activity the last year]
        Hide
        Kristian Waagan added a comment -

        Committed patch 1a, with some formatting modifications, to trunk with revision 1372345.

        Show
        Kristian Waagan added a comment - Committed patch 1a, with some formatting modifications, to trunk with revision 1372345.
        Hide
        Kristian Waagan added a comment -

        Attaching patch 1a, which fixes the encoded URL issue by converting the URL to an URI and passing it to the File(URI) constructor.

        Also added a new sanity check (fail-fast) and a debug printout.

        Patch ready for review.

        Show
        Kristian Waagan added a comment - Attaching patch 1a, which fixes the encoded URL issue by converting the URL to an URI and passing it to the File(URI) constructor. Also added a new sanity check (fail-fast) and a debug printout. Patch ready for review.

          People

          • Assignee:
            Kristian Waagan
            Reporter:
            Kristian Waagan
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development