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

SftpEndpoint does not allow to use custom process strategy

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.23.0
    • Fix Version/s: 2.23.1, 2.24.0, 3.0.0
    • Component/s: camel-ftp
    • Labels:
      None
    • Estimated Complexity:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: