You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "David Jencks (JIRA)" <ji...@apache.org> on 2010/04/01 17:31:27 UTC

[jira] Commented: (OPENEJB-1252) URL->File decoding should avoid "+" in paths

    [ https://issues.apache.org/jira/browse/OPENEJB-1252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12852420#action_12852420 ] 

David Jencks commented on OPENEJB-1252:
---------------------------------------

I'm mystified by your change.  My copy of harmony luni calls the decode method you copied during URI.getPath(), so I assume any java implementing URI will too.  Why do you want your own copy of this method to maintain?

> URL->File decoding should avoid "+" in paths
> --------------------------------------------
>
>                 Key: OPENEJB-1252
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1252
>             Project: OpenEJB
>          Issue Type: Bug
>    Affects Versions: 3.1.3
>            Reporter: David Jencks
>            Assignee: David Blevins
>             Fix For: 3.1.3
>
>
> URLS tries to use URLDecoder on a file path.  This converts the "+" characters mac os x likes to put in temp file names into " " (space) which causes disasters.  The javadoc says its not for paths, just form content encoded in a url.
> Use URI.create instead.

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