You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by demetrios <de...@dstglobalsolutions.com> on 2013/01/02 06:53:50 UTC

Issue with property values from files post 2.9.1 2.10.3 update

Hi
I needed to update the version of camel I use from 2.9.1 to 2.10.3 to
address the issue found here
https://issues.apache.org/jira/browse/CAMEL-5608

As a result of this I am having problems with property values sourced from
my properties files in the camel context.

I have a property in a file which is loaded which contains a path locations
eg.   C:\Users\Temp
The value is defined in the file as 
temp.dir.local=C:\\Users\\Temp.
Previous to my update to 2.10.3 this worked fine.  I was able to log ooutput
from the camel context and the output would be C:\Users\Temp.

After the upgrade the output now returns as C:UsersTemp omitting backslash
characters.
After some trial an error I discovered that if I defined the value in the
file as C:\\\\Users\\\\Temp this would output as C:\Users\Temp. 
So it looks like for some reason camel has double parsed the value?
I am using camel through spring.
Does anyone have any thoughts on why this is now occurring for me?




--
View this message in context: http://camel.465427.n5.nabble.com/Issue-with-property-values-from-files-post-2-9-1-2-10-3-update-tp5724758.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Issue with property values from files post 2.9.1 2.10.3 update

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Can you try using / as path separators?


On Wed, Jan 2, 2013 at 11:44 PM, demetrios
<de...@dstglobalsolutions.com> wrote:
> Has anyone got a response to this.
> I know this functionality has changed from version 2.9.3.
> In the spring context everything works as expected but once you go into the
> camel context it will for some reason re parse the expected single backslash
> as an escape character.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Issue-with-property-values-from-files-post-2-9-1-2-10-3-update-tp5724758p5724806.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Re: Issue with property values from files post 2.9.1 2.10.3 update

Posted by demetrios <de...@dstglobalsolutions.com>.
Has anyone got a response to this.
I know this functionality has changed from version 2.9.3.  
In the spring context everything works as expected but once you go into the
camel context it will for some reason re parse the expected single backslash
as an escape character.



--
View this message in context: http://camel.465427.n5.nabble.com/Issue-with-property-values-from-files-post-2-9-1-2-10-3-update-tp5724758p5724806.html
Sent from the Camel - Users mailing list archive at Nabble.com.