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

Wrong InputStream reference is used in method storeFile of class ScpOperations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.11.0
    • 2.10.7, 2.11.2, 2.12.0
    • camel-jsch
    • None
    • Unknown

    Description

      In method storeFile(String name, Exchange exchange) of class org.apache.camel.component.jsch.ScpOperations the wrong reference of the required input stream is used (line 131). Should be

      write(channel, file, is, cfg);

      instead of

      write(channel, file, exchange.getIn().getMandatoryBody(InputStream.class), cfg);

      Attachments

        Activity

          People

            Unassigned Unassigned
            andeng A. Engelmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: