ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Sandor (JIRA)" <>
Subject [jira] Created: (IVY-751) SFTPRepository.list(String) hides exceptions
Date Wed, 27 Feb 2008 17:43:51 GMT
SFTPRepository.list(String) hides exceptions

                 Key: IVY-751
             Project: Ivy
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
            Reporter: Adrian Sandor

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();
            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.

View raw message