You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Bertrand Donnet (JIRA)" <ji...@apache.org> on 2015/06/04 12:02:38 UTC
[jira] [Commented] (CAMEL-8831) Problem with camel-file file name
id
[ https://issues.apache.org/jira/browse/CAMEL-8831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14572484#comment-14572484 ]
Bertrand Donnet commented on CAMEL-8831:
----------------------------------------
Hello,
I have tried with the following route :
<routes xmlns="http://camel.apache.org/schema/spring">
<route id="file:/Camel/Reception">
<from uri="file:/Camel/Reception"/>
<to uri="file:/Camel/Output1?fileName=${file:name}_${header.CamelSplitIndex}_${exchangeId}" />
<split streaming="true">
<tokenize token="\$" />
<to uri="file:/Camel/Output2?fileName=${file:name}_${header.CamelSplitIndex}_${exchangeId}" />
</split>
</route>
</routes>
And the result is still the same :
MT101-A.FIN_0_ID-RSLAP46-51873-1433411974649-0-1
MT101-A.FIN_0_ID-RSLAP46-51873-1433411974649-0-3
> Problem with camel-file file name id
> ------------------------------------
>
> Key: CAMEL-8831
> URL: https://issues.apache.org/jira/browse/CAMEL-8831
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.15.2
> Environment: Windows 8 64 bits
> Reporter: Bertrand Donnet
> Assignee: Claus Ibsen
>
> It seems that the id variable used for a file endpoint is not correct anymore when splitting and routing message to different destinations.
> Here is my route from XML:
> <routes xmlns="http://camel.apache.org/schema/spring">
> <route id="file:/Camel/Reception">
> <from uri="file:/Camel/Reception"/>
> <to uri="file:/Camel/Output1?fileName=${file:name}_${header.CamelSplitIndex}_${id}" />
> <split streaming="true">
> <tokenize token="\$" />
> <to uri="file:/Camel/Output2?fileName=${file:name}_${header.CamelSplitIndex}_${id}" />
> </split>
> </route>
> </routes>
> and the output with version 2.15.2 is :
> myfile_0_ID-RSLAP46-50540-1433406804658-0-4
> myfile_1_ID-RSLAP46-50540-1433406804658-0-6
> myfile_2_ID-RSLAP46-50540-1433406804658-0-8
> instead of this one (OK with version 2.15.1):
> myfile_0_ID-RSLAP46-50540-1433406804658-0-2
> myfile_1_ID-RSLAP46-50540-1433406804658-0-2
> myfile_2_ID-RSLAP46-50540-1433406804658-0-2
> Is there a new feature added in 2.15.2 for that ?
> Thanks a lot for your great work
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)