camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Carman <ja...@carmanconsulting.com>
Subject Re: Log dynamic filename
Date Wed, 02 Oct 2013 11:52:22 GMT
This is related to a security vulnerability which was reported
recently.  Can you try changing to a <simple> expression rather than a
<constant>?

On Wed, Oct 2, 2013 at 7:49 AM, c.spiegel <c.spiegel@waldmann.com> wrote:
> Hi there,
>
> I have a route defined as follows:
>
> <route id="bla">
> <from uri="....">
> <setHeader headerName="CamelFileName">
> <constant>${date:now:yyyyMMddHHmmssSSS}.txt</constant>
> </setHeader>
> <log message="my filename ${header.CamelFileName} !"/>
> <to uri="ftp://bla"/>
> </route>
>
> The generated filename is (as supposed) the timestamp when it's created plus
> the suffix .txt. But the log entry is the pattern/expression how it's
> defined.
>
> The filename is 20131001120000000.txt but
> the log entry looks like this:
> "my filename ${date:now:yyyyMMddHHmmssSSS}.txt"
>
> I want to log the generated filename which is set in the header.
>
> Could someone please tell me what's wrong?
>
> I'm using Camel 2.8.4.
>
> Thx in advance.
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Log-dynamic-filename-tp5740747.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message