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

Gerold Broser commented on CAMEL-12990:
---------------------------------------

Using {{streamDownload=true}} causes:
  
{code:java}
org.apache.camel.component.file.GenericFileOperationFailedException: File 
operation failed: 451 Another command is currently pending, please try again 
later.
 Cannot change directory to: /. Code: 451
    at 
org.apache.camel.component.file.remote.FtpOperations.doChangeDirectory(FtpOperations.java:838)
    at 
org.apache.camel.component.file.remote.FtpOperations.changeCurrentDirectory(FtpOperations.java:801)
    at 
org.apache.camel.component.file.remote.FtpOperations.retrieveFileToStreamInBody(FtpOperations.java:451)
    at 
org.apache.camel.component.file.remote.FtpOperations.retrieveFile(FtpOperations.java:379)
    at 
org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:411)
    at 
org.apache.camel.component.file.remote.RemoteFileConsumer.processExchange(RemoteFileConsumer.java:133)
    at 
org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:223)
    at 
org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:187)
    at 
org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174)
    at 
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101)
    ...
{code}
 

> FTP endpoint with 'localWorkDirectory' considers File Consumer's 'noop' option
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-12990
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12990
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-ftp
>    Affects Versions: 2.22.1
>            Reporter: Gerold Broser
>            Priority: Minor
>              Labels: feature, ftp
>
> [https://camel.apache.org/ftp2.html] reads:
> {quote}See [File|https://camel.apache.org/file2.html] for more options as all 
> the options from [File|https://camel.apache.org/file2.html] is inherited.
> {quote}
>  and in *Using Local Work Directory*:
> {quote}And finally, when the Exchange is complete the local file is deleted.
> {quote}
>  [https://camel.apache.org/file2.html] reads:
> {quote}
> |{{noop}}|{{false}}|If *{{true}}*, the file is not moved or deleted in any 
> way.|
> {quote}
> I have a use case where I'd need the file transferred to 
> \{{localWorkDirectory}} to stay there. Otherwise I have to change 
> \{{localWorkDirectory}} to something else and add a Producer endpoint to my 
> route which copies the file to the intended directory (i.e. the former 
> \{{localWorkDirectory}}), which is inconvenient with GiB-size files.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to