camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitalii Tymchyshyn (JIRA)" <>
Subject [jira] [Commented] (CAMEL-6689) ResourceHelper do not work with encoded file pathes
Date Sun, 01 Sep 2013 01:40:51 GMT


Vitalii Tymchyshyn commented on CAMEL-6689:

Well, it says it expects an URI parameter. Valid URI has spaces escaped, that is per standard.
My use case is that I am using camel-beanio component that takes beanio mapping file address
as an uri parameter (and uses ResourceHelper). 
In my tests I inject spring Resource, call it's getUri and pass result to the component and
expect this to work. It works unless project is built in directory that has spaces ("Documens
and Settings" subdir in my case).
> ResourceHelper do not work with encoded file pathes
> ---------------------------------------------------
>                 Key: CAMEL-6689
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Vitalii Tymchyshyn
>            Priority: Minor
> ResourceHelper in both resolveMandatoryResourceAsInputStream and resolveMandatoryResourceAsUrl
do not decode file path. 
> This produces problem with file URIs like file:aaa%20bbb.txt

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message