Skip Menu |

This queue is for tickets about the Net-SFTP-Foreign-Backend-Net_SSH2 CPAN distribution.

Report information
The Basics
Id: 61544
Status: resolved
Worked: 2 hours (120 min)
Priority: 0/
Queue: Net-SFTP-Foreign-Backend-Net_SSH2

People
Owner: salva [...] cpan.org
Requestors: Philippe.Vouters [...] laposte.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.01
Fixed in: (no value)



Net::SFTP::Foreign when used with Net::SFTP::Foreign::Backend::Net::SSH2 1.0 fails with an unitialized value in method put (fileno($sftp->{ssh_in})). To overcome the situation, the line $sftp->{ssh_in} = $ssh2->sock; must be added at near the end of _init_transport. Also Net::SFTP::Foreign fails when the $self->_conn_failed method in Net::SFTP::Foreign::Backend::Net::SSH2 is called. Should it rather read there $sftp->_conn_lost instead of $sftp->conn_failed ??? Perl V5.10 on Linux Fedora 13 and Active State Perl V5.10 on Windows 7. Error message raised by Net::SFTP::Foreign when using a put method : Use of uninitialized value in ref-to-glob cast at /usr/local/share/perl5/Net/SFTP/Foreign.pm line 1913. Use of uninitialized value in ref-to-glob cast at /usr/local/share/perl5/Net/SFTP/Foreign.pm line 1913.
Subject: Re: [rt.cpan.org #61544]
Date: Wed, 22 Sep 2010 03:44:07 -0700 (PDT)
To: bug-Net-SFTP-Foreign-Backend-Net_SSH2 [...] rt.cpan.org
From: Salvador Fandino <sfandino [...] yahoo.com>
Show quoted text
----- Original Message ----
> From: Philippe Vouters via RT ><bug-Net-SFTP-Foreign-Backend-Net_SSH2@rt.cpan.org> > Sent: Wed, September 22, 2010 3:41:14 AM > Subject: [rt.cpan.org #61544] > > Tue Sep 21 21:41:13 2010: Request 61544 was acted upon. > Transaction: Ticket created by Vouters > Queue: Net-SFTP-Foreign-Backend-Net_SSH2 > Subject: (No subject given) > Broken in: 0.01 > Severity: Important > Owner: Nobody > Requestors: Philippe.Vouters@laposte.net > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=61544 > > > > Net::SFTP::Foreign when used with Net::SFTP::Foreign::Backend::Net::SSH2 > 1.0 fails with an unitialized value in method put > (fileno($sftp->{ssh_in})). To overcome the situation, the line > $sftp->{ssh_in} = $ssh2->sock; must be added at near the end of > _init_transport.
Actually, the problem was caused by some dead code on Net::SFTP::Foreign left over from the backend refactoring. New version 1.61 is available from CPAN.
> Also Net::SFTP::Foreign fails when the $self->_conn_failed method in > Net::SFTP::Foreign::Backend::Net::SSH2 is called. Should it rather read > there $sftp->_conn_lost instead of $sftp->conn_failed ???
I have implemented the missing method, a new version of the module is also available from CPAN. Thank you for the bug report. BTW, on the other hand, posting bug reports to CPAN Ratings without letting the author solve them first is not very pollite! - Salva