Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-5087 Use OSGi for the Geronimo classloading model.
  3. GERONIMO-5038

Need to URLEncode temp bundle location since felix URLDecodes it

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0-M1
    • deployment, osgi
    • Security Level: public (Regular issues)
    • None

    Description

      Today I started having deployment problems because the temporary files had a lot of '+' characters in them which got taken out by felix. I discovered that felix runs URLDecoder.decode(location) on the supplied location of a bundle. To counteract this we have to run URLEncoder.encode(location, "UTF-8") before handing it to felix.

      I suggested on the felix dev list that URLDecoder.decode(location, "UTF-8") would be more appropriate per javadoc, but I wonder why something intended for encoding form data in a url is being used for file names. Doesn't URL.encode or File.toURI().toURL() work?
      Leaving open in case anyone has an idea.

      Attachments

        Activity

          People

            gawor@mcs.anl.gov Jarek Gawor
            djencks David Jencks
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: