Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6756

Avoid URL.getFile() when actually expecting paths.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 8.7.0
    • 9.0.0-M5, 8.8.0
    • wicket-core
    • None

    Description

      WICKET-6714 introduced using "URL.getFile" to convert some parts of an URL to a path in the local file system. This doesn't work properly, because the result of "getFile" is not properly decoded e.g. in case the URL/path contains spaces. While this concrete issue has been fixed by WICKET-6755 already, in theory this needs to be fixed i the entire code base as well. Each place URL.getFile is used to get some local file system path is wrong.

      https://stackoverflow.com/questions/2166039/java-how-to-get-a-file-from-an-escaped-url

      This is issue is created to make aware of that problem and because during WICKET-6755 I've found at least one additional place already where this problem happens.

      Attachments

        Issue Links

          Activity

            People

              svenmeier Sven Meier
              tschoening Thorsten Schöning
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: