Skip Menu |

This queue is for tickets about the Net-uFTP CPAN distribution.

Report information
The Basics
Id: 58837
Status: resolved
Priority: 0/
Queue: Net-uFTP

People
Owner: Nobody in particular
Requestors: ryan.gorsuch [...] echostar.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.15
Fixed in: (no value)



Subject: Net::uFTP::get does not retrieve files
In version 0.15 the get() function does not retrieve files as advertised. As it turns out, its because Net::uFTP is just a facade for Net::uFTP::FTP and Net::uFTP::SFTP, which in turn are just facades for Net::FTP and Net::SFTP. This makes for nice code-reuse, but since Net::uFTP uses AUTOLOAD to redirect calls, it does not receive the call to Net::uFTP::get(file). The reason is that get() is implemented by Net::uFTP's base-class Class::Accessor::Fast::XS as an accessor method. The following small patch corrects the problem so that calls to Net::uFTP::get(file) are correctly dispatched to Net::uFTP. package Net::uFTP; sub get { my $self = shift; return $self->object()->get(@_); }
Subject: Fixed: Net::uFTP::get does not retrieve files
Thanks for reporting a bug. Package is patched. All in an attachment an on CPAN :-) On Pt 25 Cze 2010, 13:12:09, rgo wrote: Show quoted text
> In version 0.15 the get() function does not retrieve files as > advertised. As it turns out, its because Net::uFTP is just a facade
for Show quoted text
> Net::uFTP::FTP and Net::uFTP::SFTP, which in turn are just facades for > Net::FTP and Net::SFTP. This makes for nice code-reuse, but since > Net::uFTP uses AUTOLOAD to redirect calls, it does not receive the
call Show quoted text
> to Net::uFTP::get(file). The reason is that get() is implemented by > Net::uFTP's base-class Class::Accessor::Fast::XS as an accessor
method. Show quoted text
> > The following small patch corrects the problem so that calls to > Net::uFTP::get(file) are correctly dispatched to Net::uFTP. > > package Net::uFTP; > > sub get { > my $self = shift; > return $self->object()->get(@_); > } >
Subject: Net-uFTP-0.16.tar.gz
Download Net-uFTP-0.16.tar.gz
application/x-gzip 10.8k

Message body not shown because it is not plain text.