You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2018/12/11 13:17:00 UTC

[jira] [Commented] (CAMEL-12991) SftpEndpoint does not allow to use custom process strategy

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

Claus Ibsen commented on CAMEL-12991:
-------------------------------------

You are welcome to provide a PR with a fix

> SftpEndpoint does not allow to use custom process strategy
> ----------------------------------------------------------
>
>                 Key: CAMEL-12991
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12991
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.23.0
>            Reporter: Seweryn Walendzik
>            Priority: Minor
>             Fix For: 3.0.0, 2.24.0, 2.23.1
>
>
> SftpEndpoint always create generic file strategy even processStrategy object is set in endpoint, same code is used in FtpEndpoint so it's not working also
> {code:java}
> @Override
> protected RemoteFileConsumer<SftpRemoteFile> buildConsumer(Processor processor) {
>     return new SftpConsumer(this, processor, createRemoteFileOperations(), createGenericFileStrategy());
> }{code}
> it is working in FileEnpoint
> {code:java}
> protected FileConsumer newFileConsumer(Processor processor, GenericFileOperations<File> operations) {
>     return new FileConsumer(this, processor, operations, processStrategy != null ? processStrategy : createGenericFileStrategy());
> }{code}



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