Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2195

Using URLDecoder.decode on locations is wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • framework-2.0.4
    • framework-2.0.5
    • Framework
    • None

    Description

      URLDecoder is supposed to be for decoding form goo stuffed into a url, not for decoding the path component of a url. Using it for this produces wrong results. In partucular, mac os x likes to make temporary files with strings like "+++++++" in the path. When run through URLDecoder these turn into spaces which means felix can't find the file you just gave it a valid file system location for. Since equinox does this correctly we can't use felix in geronimo until this is fixed.

      IIUC URLDecoder is used as an attempt to maintain compatibility with ancient vms that lack URI and its correct decoding behavior. Fortunately apache harmony implements URI so the attached patch borrows the implementation from harmony to provide correct behavior on antique vms.

      Attachments

        1. FELIX-2195.diff
          3 kB
          David Jencks

        Activity

          People

            karlpauls Karl Pauls
            djencks David Jencks
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: