Uploaded image for project: 'JBoss Common'
  1. JBoss Common
  2. JBCOMMON-103

FileURLConnection's use of URLDecoder causes it to break with file URLs with '+' symbols in the path

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.2.17.GA
    • Fix Version/s: 2.2.18.GA
    • Component/s: None
    • Labels:
      None

      Description

      FileURLConnection uses URLDecoder.decode() as part of its process for turning URL paths into filesystem paths. However, this causes paths with '' symbols to be incorrectly decoded; the '' symbols are turned into spaces. (This is most relevant on mac os x, where the temp directory often contains plus symbols).

      This bug is basically identical to JBVFS-129, and I believe the fix is the same (use File's constructor taking a URI argument).

      I'll attach a patch with a testcase and a patch with a potential fix.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  alesj Ales Justin
                  Reporter:
                  matt.drees Matt Drees
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: