Skip Menu |

This queue is for tickets about the WWW-Robot CPAN distribution.

Report information
The Basics
Id: 4209
Status: resolved
Priority: 0/
Queue: WWW-Robot

People
Owner: kmatyukhin [...] gmail.com
Requestors: dombly [...] kc4.so-net.ne.jp
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.023
Fixed in: 0.025



Subject: Fails to create an instance
It seems that LWP::RobotUA has modified and begun to check LWP::RobotUA->{'from'} contains `@'. Thus, on create_agent(), the dummy 'FROM' for the new LWP::RobotUA instance should be changed. --- .orig/WWW/Robot.pm Sat Oct 25 17:24:22 2003 +++ WWW/Robot.pm Sat Oct 25 17:35:57 2003 @@ -1157,7 +1157,7 @@ } else { - eval { $self->{ 'AGENT' } = new LWP::RobotUA( 'NAME', 'FROM' ) }; + eval { $self->{ 'AGENT' } = new LWP::RobotUA( 'NAME', 'FROM@DUMMY' ) }; if ( not $self->{ 'AGENT' } ) { $self->warn( "failed to create User Agent object: $EVAL_ERROR\n" );
Subject: Fails to create an instance, updated patch
From: pkremer [...] spurious.biz
--- Robot.pm.orig 2006-12-15 11:35:58.000000000 +0100 +++ Robot.pm 2006-12-15 11:36:44.000000000 +0100 @@ -1157,7 +1157,7 @@ } else { - eval { $self->{ 'AGENT' } = new LWP::RobotUA( 'NAME', 'FROM' ) }; + eval { $self->{ 'AGENT' } = new LWP::RobotUA( 'NAME', $options->{'EMAIL'} ) }; if ( not $self->{ 'AGENT' } ) { $self->warn( "failed to create User Agent object: $EVAL_ERROR\n" ); On Sat Oct 25 05:26:02 2003, guest wrote: Show quoted text
> It seems that LWP::RobotUA has modified and begun to check > LWP::RobotUA->{'from'} contains `@'. > Thus, on create_agent(), the dummy 'FROM' for the new LWP::RobotUA > instance should be changed. >