ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin (JIRA)" <j...@apache.org>
Subject [jira] Updated: (IVY-734) SFTP should verify input parameter for hostname
Date Fri, 29 Feb 2008 08:08:51 GMT

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

Xavier Hanin updated IVY-734:
-----------------------------

    Fix Version/s:     (was: 2.0.0-beta-2)
                   2.0

> SFTP should verify input parameter for hostname
> -----------------------------------------------
>
>                 Key: IVY-734
>                 URL: https://issues.apache.org/jira/browse/IVY-734
>             Project: Ivy
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.0.0-beta-1
>            Reporter: Nat
>             Fix For: 2.0
>
>
> SFTP resolver doesn't have proper check when hostname missing from both url and hostname.
If it's not specified in both places, the following exception will be thrown
> Caused by: java.lang.NullPointerException 
>         at org.apache.ivy.plugins.repository.ssh.SshCache.createCacheKey(SshCache.java:184)

>         at org.apache.ivy.plugins.repository.ssh.SshCache.getCacheEntry(SshCache.java:165)

>         at org.apache.ivy.plugins.repository.ssh.SshCache.getSession(SshCache.java:307)

>         at org.apache.ivy.plugins.repository.ssh.AbstractSshBasedRepository.getSession(AbstractSshBasedRepository.java:82)

>         at org.apache.ivy.plugins.repository.sftp.SFTPRepository.getSftpChannel(SFTPRepository.java:223)

>         at org.apache.ivy.plugins.repository.sftp.SFTPRepository.put(SFTPRepository.java:134)

>         at org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130)

>         at org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:177)

>         at org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:167)

>         at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:242)

>         at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:195)

>         at org.apache.ivy.core.install.InstallEngine.install(InstallEngine.java:146)

>         at org.apache.ivy.Ivy.install(Ivy.java:511) 
>         at org.apache.ivy.ant.IvyInstall.doExecute(IvyInstall.java:95)

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


Mime
View raw message