Skip Menu |

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

Report information
The Basics
Id: 80384
Status: rejected
Priority: 0/
Queue: Net-SFTP-Foreign

People
Owner: Nobody in particular
Requestors: MWilder [...] celticintl.com
Cc:
AdminCc:

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



Subject: Can't locate object method "_clear_error"
Date: Wed, 24 Oct 2012 20:11:37 +0000
To: "bug-Net-SFTP-Foreign [...] rt.cpan.org" <bug-Net-SFTP-Foreign [...] rt.cpan.org>
From: Michael Wilder <MWilder [...] celticintl.com>
Error message: Can't locate object method "_clear_error" via package "Net::SFTP::Foreign" at /usr/lib/perl5/site_perl/5.8.8/Net/SFTP/Foreign.pm line 1273. I received error message during a put sequence when it was trying to overwrite a file. my %put_params = ( 'atomic' => 0, 'cleanup' => 1, 'overwrite' => 1 ); if ( ! $sftp->put( $file, $file, %put_params ) ) { I changed line 1273 fro "_clear_error" to "_clear_error_and_status" and that fixed the problem. Is this the correct fix or am I missing a library? Thanks, Mike Wilder Celtic International $ perl -v This is perl, v5.8.8 built for x86_64-linux-thread-multi $ cat /etc/redhat-release Scientific Linux SL release 5.4 (Boron) $ uname -a Linux tinrhdev1.celticchicago.local 2.6.18-274.17.1.el5 #1 SMP Tue Jan 10 16:13:44 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
Subject: Re: [rt.cpan.org #80384] Can't locate object method "_clear_error"
Date: Thu, 25 Oct 2012 02:00:07 -0700 (PDT)
To: "bug-Net-SFTP-Foreign [...] rt.cpan.org" <bug-Net-SFTP-Foreign [...] rt.cpan.org>
From: Salvador Fandino <sfandino [...] yahoo.com>
Show quoted text
>________________________________ > From: Michael Wilder via RT <bug-Net-SFTP-Foreign@rt.cpan.org> >To: >Sent: Wednesday, October 24, 2012 10:11 PM >Subject: [rt.cpan.org #80384] Can't locate object method "_clear_error" > >Wed Oct 24 16:11:50 2012: Request 80384 was acted upon. >Transaction: Ticket created by MWilder@celticintl.com >       Queue: Net-SFTP-Foreign >     Subject: Can't locate object method "_clear_error" >   Broken in: (no value) >    Severity: (no value) >       Owner: Nobody >  Requestors: MWilder@celticintl.com >      Status: new >Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=80384 > > > >Error message: >Can't locate object method "_clear_error" via package "Net::SFTP::Foreign" at /usr/lib/perl5/site_perl/5.8.8/Net/SFTP/Foreign.pm line 1273.
Show quoted text
>
Show quoted text
>I received error message during a put sequence when it was trying to overwrite a file. > >    my %put_params = ( >        'atomic' => 0, >        'cleanup' => 1, >        'overwrite' => 1 >    ); > >        if ( ! $sftp->put( $file, $file, %put_params ) ) { > >I changed line 1273 fro "_clear_error" to "_clear_error_and_status" and that fixed the problem. Is this the correct fix or am I missing a library?
Which version of the module do you have installed? there is nothing like that on 1.73, 1.74_03 or the GitHub version. I can see a broken _clear_error call in 'rename', but this method is not called from 'put' unless 'atomic' is set.
Subject: RE: [rt.cpan.org #80384] Can't locate object method "_clear_error"
Date: Thu, 25 Oct 2012 21:16:31 +0000
To: "bug-Net-SFTP-Foreign [...] rt.cpan.org" <bug-Net-SFTP-Foreign [...] rt.cpan.org>
From: Michael Wilder <MWilder [...] celticintl.com>
Version 1.69. package Net::SFTP::Foreign; our $VERSION = '1.69'; Show quoted text
-----Original Message----- From: Salvador \"Fandiño\" via RT [mailto:bug-Net-SFTP-Foreign@rt.cpan.org] Sent: Thursday, October 25, 2012 4:00 AM To: Michael Wilder Subject: Re: [rt.cpan.org #80384] Can't locate object method "_clear_error" <URL: https://rt.cpan.org/Ticket/Display.html?id=80384 >
>________________________________ > From: Michael Wilder via RT <bug-Net-SFTP-Foreign@rt.cpan.org> >To: >Sent: Wednesday, October 24, 2012 10:11 PM >Subject: [rt.cpan.org #80384] Can't locate object method "_clear_error" > >Wed Oct 24 16:11:50 2012: Request 80384 was acted upon. >Transaction: Ticket created by MWilder@celticintl.com >       Queue: Net-SFTP-Foreign >     Subject: Can't locate object method "_clear_error" >   Broken in: (no value) >    Severity: (no value) >       Owner: Nobody >  Requestors: MWilder@celticintl.com >      Status: new >Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=80384 > > > >Error message: >Can't locate object method "_clear_error" via package "Net::SFTP::Foreign" at /usr/lib/perl5/site_perl/5.8.8/Net/SFTP/Foreign.pm line 1273.
>
>I received error message during a put sequence when it was trying to overwrite a file. > >    my %put_params = ( >        'atomic' => 0, >        'cleanup' => 1, >        'overwrite' => 1 >    ); > >        if ( ! $sftp->put( $file, $file, %put_params ) ) { > >I changed line 1273 fro "_clear_error" to "_clear_error_and_status" and that fixed the problem. Is this the correct fix or am I missing a library?
Which version of the module do you have installed? there is nothing like that on 1.73, 1.74_03 or the GitHub version. I can see a broken _clear_error call in 'rename', but this method is not called from 'put' unless 'atomic' is set.
Sorry for the late reply. I didn't notice you had answered until now. Try upgrading to the latest version of the module.
closing the bug as there have been no reply for two months and I am unable to reproduce it