Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the LWPx-ParanoidAgent CPAN distribution.

Report information
The Basics
Id: 44391
Status: rejected
Priority: 0/
Queue: LWPx-ParanoidAgent

People
Owner: Nobody in particular
Requestors: alessio.signorini [...] spryte.it
Cc:
AdminCc:

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



Subject: Can't locate object method "host" via package "URI::_generic"
This error is usually returned when the URL is malformed. The method host() of URI::_generic fails returning a undef, which LWPx::UserAgent do not handle properly. The method host() is not in fact contained in URI::_generic but in file.pm. It took me a while to find out so I thought I would save time to whoever is reading this. A quick fix for this problem is changing line 200 of ParanoidAgent.pm into if ((not $host) || ($self->_bad_host($host))) { In this way a bad host or an bad URL raise an error (403).