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 10:42:38 UTC

[jira] [Created] (CAMEL-8831) Problem with camel-file file name id

Bertrand Donnet created CAMEL-8831:
--------------------------------------

             Summary: 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


It seems that the ${id} variable is not unique 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 for your great work





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)