Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the HTTP-SimpleLinkChecker CPAN distribution.

Report information
The Basics
Id: 57584
Status: resolved
Priority: 0/
Queue: HTTP-SimpleLinkChecker

People
Owner: Nobody in particular
Requestors: paul [...] city-fan.org
Cc:
AdminCc:

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



Subject: t/403.t fails due to change in behaviour of remote server
t/403.t fails in 1.15 because the test URL no longer returns a 403 code: $ curl --HEAD 'http://groups.google.com/groups?as_uauthors=comdog@panix.com' HTTP/1.1 502 Bad Gateway Content-Type: text/html; charset=UTF-8 Content-Length: 1409 Date: Tue, 18 May 2010 14:12:12 GMT Server: GFE/2.0 I got it to pass for my own build by creating a suitable URL on my own server and substituting that into the test (see attached patch).
Subject: HTTP-SimpleLinkChecker-1.15-403URL.patch
--- HTTP-SimpleLinkChecker-1.15/t/403.t 2007-02-09 01:31:09.000000000 +0000 +++ HTTP-SimpleLinkChecker-1.15/t/403.t 2010-05-13 16:36:49.605127255 +0100 @@ -6,7 +6,7 @@ # this won't work for robots my $code = &HTTP::SimpleLinkChecker::check_link( - 'http://groups.google.com/groups?as_uauthors=comdog@panix.com'); + 'http://www.city-fan.org/HTTP-SimpleLinkChecker/403.html'); is( $code, 403, "Unauthorized code works" ); @@ -15,7 +15,7 @@ $ua->agent( "Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)" ); $code = &HTTP::SimpleLinkChecker::check_link( - 'http://groups.google.com/groups?as_uauthors=comdog@panix.com'); + 'http://www.city-fan.org/HTTP-SimpleLinkChecker/403.html'); is( $code, 200, "OK code works" );
This should be fixed in 1.16. Thanks,