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

Xavier Hanin updated IVY-751:
-----------------------------

    Fix Version/s: 2.0

> SFTPRepository.list(String) hides exceptions
> --------------------------------------------
>
>                 Key: IVY-751
>                 URL: https://issues.apache.org/jira/browse/IVY-751
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
>            Reporter: Adrian Sandor
>             Fix For: 2.0
>
>
> With an sftp repository, if any connection or authentication problem happens, 
> the error is hidden and the code behaves as if the action succeeded but 
> nothing was found. This makes it very hard to identify the problem and fix 
> the configuration.
> I tracked the issue to the list method in SFTPRepository, where I found:
>         catch (Exception e) {
>             // silent fail, return null listing
>         }
> I would change the code to something like this:
>         catch (SftpException e) {
>             IOException ioe = new IOException();
>             ioe.initCause(e);
>             throw ioe;
>         }
> so any exception will be thrown as an IOException.
> I'm sure there are other options too.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to