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 2024/08/08 07:09:00 UTC

[jira] [Resolved] (CAMEL-21051) SftpOperations.retrieveFileToStreamInBody potentially hides exceptions

     [ https://issues.apache.org/jira/browse/CAMEL-21051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-21051.
---------------------------------
    Resolution: Fixed

> SftpOperations.retrieveFileToStreamInBody potentially hides exceptions
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-21051
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21051
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-sftp
>    Affects Versions: 4.5.0, 4.7.0
>         Environment: Occurs on Windows and linux
>            Reporter: Manuel Hartl
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.8.0
>
>
> 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 {color:#000000}{color:#0066cc}changeCurrentDirectory() in the finally block throws another exception.{color}{color}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)