Skip Menu |

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

Report information
The Basics
Id: 32432
Status: resolved
Priority: 0/
Queue: Net-FTPSSL

People
Owner: Nobody in particular
Requestors: praveens [...] affableit.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.04
Fixed in: 0.05



Subject: Error after PASV command is executed automatically by FTPSSL.pm
We are trying to initiate FTPSSL session to get and put files with one of our partners. It looks like the connection is established, but when the FTPSSL.pm executes the PASV command (don't know if there is an option to turn it off), we get a message Show quoted text
>>> PASV
<<< 230-You have 0 transfer credits remaining. Use of uninitialized value in split at /opt/perl_32/lib/site_perl/5.8.3/Net/FTPS SL.pm line 141. The line 141 in FTPSSL.pm is " my @address = split( /,/, $3 ); " I would very much appreciate any help on this issue. Is there a fix already in place for this issue? If yes, where can I get the fix/patch? or Am I missing some parameter in my command call Here is a snapshot of the code that we are trying to execute: ----------------------------------------------------------------------- #!/usr/bin/perl -w use strict; use Net::FTPSSL; my $last_message; my $ftps = Net::FTPSSL->new('<IP Address>', Port => <Port>, Encryption => 'E', Debug => 1) or die "Can't open <IP Address> in port <Port>"; $ftps->login('<User ID>', '<Password>') or die "Can't login: ", $ftps->$last_message(); $ftps->cwd("<Pickup Directory>") or die "Can't change directory: ", $ftps->last_message; $ftps->nlst("<Pickup Directory>") or die "Can't put file: ", $ftps->last_message; $ftps->get("<FileName>") or die "Can't put file: ", $ftps- Show quoted text
>last_message;
$ftps->quit(); -----------------------------------------------------------------------
From: kral [...] cpan.org
On Ven. 18 Gen. 2008 17:54:22, prases wrote: Show quoted text
> We are trying to initiate FTPSSL session to get and put files with one > of our partners. It looks like the connection is established, but when > the FTPSSL.pm executes the PASV command (don't know if there is an > option to turn it off), we get a message >
> >>> PASV
> <<< 230-You have 0 transfer credits remaining. > Use of uninitialized value in split > at /opt/perl_32/lib/site_perl/5.8.3/Net/FTPS > SL.pm line 141. > > The line 141 in FTPSSL.pm is > > " my @address = split( /,/, $3 ); " > > I would very much appreciate any help on this issue. Is there a fix > already in place for this issue? If yes, where can I get the > fix/patch? or Am I missing some parameter in my command call
Well, the module expects that the first line after a PASV command would be the address of the server. Instead, it receives "230-You have 0 transfer credits remaining.". There isn't any patch for this at the moment, but you can turn off this message (about the credits) on the ftp server. HTH, -- Marco
Subject: Re: [rt.cpan.org #32432] Error after PASV command is executed automatically by FTPSSL.pm
Date: Wed, 23 Jan 2008 22:21:39 -0800
To: bug-Net-FTPSSL [...] rt.cpan.org
From: Affable IT <praveens [...] affableit.com>
Hello Marco, Thanks for your response. Do you have any plans for a patch to resolve this issue at any time in the near future? Regards, Praveen Seshan Marco Dalla Stella via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=32432 > > > On Ven. 18 Gen. 2008 17:54:22, prases wrote: >
>> We are trying to initiate FTPSSL session to get and put files with one >> of our partners. It looks like the connection is established, but when >> the FTPSSL.pm executes the PASV command (don't know if there is an >> option to turn it off), we get a message >> >>
>>>>> PASV >>>>>
>> <<< 230-You have 0 transfer credits remaining. >> Use of uninitialized value in split >> at /opt/perl_32/lib/site_perl/5.8.3/Net/FTPS >> SL.pm line 141. >> >> The line 141 in FTPSSL.pm is >> >> " my @address = split( /,/, $3 ); " >> >> I would very much appreciate any help on this issue. Is there a fix >> already in place for this issue? If yes, where can I get the >> fix/patch? or Am I missing some parameter in my command call >>
> > Well, the module expects that the first line after a PASV command would > be the address of the server. Instead, it receives "230-You have 0 > transfer credits remaining.". > There isn't any patch for this at the moment, but you can turn off this > message (about the credits) on the ftp server. > > HTH, >