[ 
https://issues.apache.org/jira/browse/CAMEL-15543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17197707#comment-17197707
 ] 

Jan Bednar edited comment on CAMEL-15543 at 9/17/20, 1:57 PM:
--------------------------------------------------------------

This is fixed in 2.24.3. Please reopen if you have same issue in 2.24.3, 3.0.0, 
2.25.0 or later. The linked issue also mentions workaround, if you cant upgrade.


was (Author: bedla):
This is fixed in 2.24.3. Please reopen if you have same issue in 2.24.3, 3.0.0, 
2.25.0 or later.

> Apache Camel File Append Not Working in Windows
> -----------------------------------------------
>
>                 Key: CAMEL-15543
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15543
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.24.1
>         Environment: Windows 10, JDK 11
>            Reporter: Sreejesh
>            Priority: Major
>
> I have a simple route where I write some string to an output file and then 
> trying to append the contents of the original file. But it ignores and it 
> overwrites the file.
>  
> *{{{{from("file://inputFolder")}}}}*
>     *{{{{.routeId("InputFolderToTestSedaRoute")
>     .setProperty("myFileConsumedBody", simple("${body}"))
>     .setBody(constant("FIRST LINE!"))}}}}*
>     *{{{{.to("file://\{{outputFolder}}")
>     .setBody(simple("${exchangeProperty.myFileConsumedBody}"))}}}}*
>     *{{{{.log("*** STEP 100: ${headers} :***")}}}}*
>     *{{{{.delay(10000)
>     .to("file://outputFolder?fileExist=Append")
>     ;}}}}*
> I added delay to observe what happens.
>  # If there is an input file named myFile.txt, Camel picks that file as 
> expected.
>  # It keeps the file to an custome exchange property as in the code.
>  # It opens a file named myFile.txt and writes the content "FIRST LINE!" in 
> it and waits for the delay to expire.
>  # I can open and verify the contents, everything looks good.
>  # Once delay expires, Camel overwrites the file myFile.txt with the original 
> content it picked from input folder (even though I have asked Camel to 
> append).
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to