geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-5038) Need to URLEncode temp bundle location since felix URLDecodes it
Date Wed, 20 Jan 2010 08:45:57 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12802748#action_12802748
] 

David Jencks commented on GERONIMO-5038:
----------------------------------------

fixed for now in rev 901105

> Need to URLEncode temp bundle location since felix URLDecodes it
> ----------------------------------------------------------------
>
>                 Key: GERONIMO-5038
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5038
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment, osgi
>    Affects Versions: 3.0
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 3.0
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message