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

SftpOperations.retrieveFileToStreamInBody potentially hides exceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.5.0, 4.7.0
    • 4.8.0
    • camel-sftp
    • None
    • Occurs on Windows and linux

    • Unknown

    Description

      The Method

      org.apache.camel.component.file.remote.SftpOperations#retrieveFileToStreamInBody executed operations in finally-block which potentially hides exceptions from try-block.

      In my case i have an out of memory exception happening during reading the sftp-data, but i dont see it because changeCurrentDirectory() in the finally block throws another exception.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              mhartl Manuel Hartl
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: