You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Fabio Marinelli (JIRA)" <ji...@apache.org> on 2009/09/01 15:08:12 UTC

[jira] Commented: (CAMEL-1974) Package scanning cannot be used for folders containing special characters

    [ https://issues.apache.org/activemq/browse/CAMEL-1974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53951#action_53951 ] 

Fabio Marinelli commented on CAMEL-1974:
----------------------------------------

I found this interesting issue ( https://issues.apache.org/jira/browse/LAUNCHER-10 ) on another apache project. 
They had the same problem and it seems that the solution comes with:

new URI(resource).getPath()

instead of 

URLDecoder.decode(resource, "UTF-8")

at least for file protocol.

Bye

> Package scanning cannot be used for folders containing special characters
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-1974
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1974
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.0.0
>         Environment: macbook pro, osx leopard
>            Reporter: Fabio Marinelli
>         Attachments: DefaultPackageScanClassResolverTest.diff, package+scan+test.jar
>
>
> I found out this problem developing a test case with cargo on my macbook. Temporary directory on leopard is something like (/private/var/folders/is/ispMf0ylEtCIOP8skg0va++++TI/-Tmp-) and cargo deploys the embedded container there.
> Problem happens when camel tries to find converters by using DefaultPackageScanClassResolver class; it converts the temporary path, using URLDecoder, in the invalid path "/private/var/folders/is/ispMf0ylEtCIOP8skg0va    TI/-Tmp-"
> You can reproduce this bug by patching the DefaultPackageScanClassResolverTest and adding the following resource file, that I'm going to attach to this issue.

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