Skip Menu |

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

Report information
The Basics
Id: 27398
Status: resolved
Priority: 0/
Queue: WWW-Myspace

People
Owner: Nobody in particular
Requestors: mikejallred [...] gmail.com
Cc:
AdminCc:

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



Subject: Method call mismatch, with patch
Date: Sun, 3 Jun 2007 15:28:22 -0400
To: bug-www-myspace [...] rt.cpan.org
From: "Mike Allred" <mikejallred [...] gmail.com>

Message body is not shown because sender requested not to inline it.

From what I can see, the recently added follow_link was being called with get_page syntax and going to the base URL instead of the Home page. I fixed that and put the DEBUG output in get_page into the iterator so multiple gets would be printed. I have verified this works with a login + get_friends. I am still seeing intermittent problems with going the Home page when clicking "Home" even with a browser, but this patch should clear up some blockers. Ain't Myspace fun? :)
Subject: Re: [rt.cpan.org #27398] Method call mismatch, with patch
Date: Sun, 3 Jun 2007 13:22:14 -0700
To: bug-WWW-Myspace [...] rt.cpan.org
From: Grant Grueninger <grantg [...] spamarrest.com>
Oops, that was sloppy of me... Thanks for catching it. I fixed the call to follow_link instead of applying the patch: $self->follow_link( url_regex => qr/fuseaction=user/i, re=> 'SignOut' ); And added the following debug statement within the "do" loop in get_page: ( $DEBUG ) && print " - Attempt No: $attempt\n"; I noticed that it's a bit redundant to Olaf's "trace_func" handler, but we'll deal with that later. :) Grant On Jun 3, 2007, at 12:31 PM, Mike Allred via RT wrote: Show quoted text
> > Sun Jun 03 15:31:09 2007: Request 27398 was acted upon. > Transaction: Ticket created by mikejallred@gmail.com > Queue: WWW-Myspace > Subject: Method call mismatch, with patch > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: mikejallred@gmail.com > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=27398 > > > > From what I can see, the recently added follow_link was being > called with > get_page syntax and going to the base URL instead of the Home > page. I fixed > that and put the DEBUG output in get_page into the iterator so > multiple gets > would be printed. I have verified this works with a login + > get_friends. > > I am still seeing intermittent problems with going the Home page when > clicking "Home" even with a browser, but this patch should clear up > some > blockers. Ain't Myspace fun? :) > > From what I can see, the recently added follow_link was being > called with get_page syntax and going to the base URL instead of > the Home page. I fixed that and put the DEBUG output in get_page > into the iterator so multiple gets would be printed. I have > verified this works with a login + get_friends. > > I am still seeing intermittent problems with going the Home page > when clicking "Home" even with a browser, but this patch should > clear up some blockers. Ain't Myspace fun? :) > <Myspace.pm.diff>
Subject: Re: [rt.cpan.org #27398] Method call mismatch, with patch
Date: Sun, 3 Jun 2007 17:17:42 -0400
To: bug-WWW-Myspace [...] rt.cpan.org
From: "Mike Allred" <mikejallred [...] gmail.com>
Params::Validate is a good way to catch those types of things. It has saved me countless hours. :) On 6/3/07, grantg@spamarrest.com via RT <bug-WWW-Myspace@rt.cpan.org> wrote: Show quoted text
> > > <URL: http://rt.cpan.org/Ticket/Display.html?id=27398 > > > Oops, that was sloppy of me... > > Thanks for catching it. I fixed the call to follow_link instead of > applying the patch: > $self->follow_link( > url_regex => qr/fuseaction=user/i, > re=> 'SignOut' > ); > > And added the following debug statement within the "do" loop in > get_page: > ( $DEBUG ) && print " - Attempt No: $attempt\n"; > > I noticed that it's a bit redundant to Olaf's "trace_func" handler, > but we'll deal > with that later. :) > > Grant > > On Jun 3, 2007, at 12:31 PM, Mike Allred via RT wrote: >
> > > > Sun Jun 03 15:31:09 2007: Request 27398 was acted upon. > > Transaction: Ticket created by mikejallred@gmail.com > > Queue: WWW-Myspace > > Subject: Method call mismatch, with patch > > Broken in: (no value) > > Severity: (no value) > > Owner: Nobody > > Requestors: mikejallred@gmail.com > > Status: new > > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=27398 > > > > > > > From what I can see, the recently added follow_link was being > > called with > > get_page syntax and going to the base URL instead of the Home > > page. I fixed > > that and put the DEBUG output in get_page into the iterator so > > multiple gets > > would be printed. I have verified this works with a login + > > get_friends. > > > > I am still seeing intermittent problems with going the Home page when > > clicking "Home" even with a browser, but this patch should clear up > > some > > blockers. Ain't Myspace fun? :) > > > > From what I can see, the recently added follow_link was being > > called with get_page syntax and going to the base URL instead of > > the Home page. I fixed that and put the DEBUG output in get_page > > into the iterator so multiple gets would be printed. I have > > verified this works with a login + get_friends. > > > > I am still seeing intermittent problems with going the Home page > > when clicking "Home" even with a browser, but this patch should > > clear up some blockers. Ain't Myspace fun? :) > > <Myspace.pm.diff>
> > >
Yep, Params::Validate is very helpful :) Olaf