Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12991

SftpEndpoint does not allow to use custom process strategy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.23.0
    • 2.23.1, 2.24.0, 3.0.0
    • camel-ftp
    • None
    • Novice

    Description

      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

      @Override
      protected RemoteFileConsumer<SftpRemoteFile> buildConsumer(Processor processor) {
          return new SftpConsumer(this, processor, createRemoteFileOperations(), createGenericFileStrategy());
      }

      it is working in FileEnpoint

      protected FileConsumer newFileConsumer(Processor processor, GenericFileOperations<File> operations) {
          return new FileConsumer(this, processor, operations, processStrategy != null ? processStrategy : createGenericFileStrategy());
      }

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              kolas Seweryn Walendzik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: