[Catalyst] writing a test suite for my app

Daniel McBrearty danielmcbrearty at gmail.com
Fri May 19 16:52:33 CEST 2006


I think I can see why this is the case - in T:W:M:Catalyst.pm ...:

# check if that was a redirect.  These codes based off of
    # http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
    if ( grep { $response->code() == $_ } 301, 302, 307 ) {

      # blah ... essentially do the redirect ...
    }

He doesn't check in the base object to see if  redirects are allowed.

I guess we need ...

if ( (grep { $response->code() == $_ } 301, 302, 307) &&
$self->checkInBaseObject) {

I'll see if I can see how that should work from LWP::UserAgent ...



On 5/19/06, Perrin Harkins <perrin at elem.com> wrote:
>
> On Thu, 2006-05-18 at 22:13 +0200, Daniel McBrearty wrote:
> > hmmm. it really doesn't seem to be working. I've dumped the
> > requests_redirectable var out, I definitely see an empty array right
> > before the request is sent. Yet, when the redirect comes in, $mech
> > follows it.
> >
> > bug?
>
> Yes, it looks like T::WWW::M::Catalyst overrides _make_request() in a
> way that breaks this.  I'd suggest filing a bug report on RT.
>
> - Perrin
>
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>



-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060519/3f906800/attachment.htm 


More information about the Catalyst mailing list