Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: steven [...] pyro.eu.org
Cc:
AdminCc:

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



Subject: New Myspace login form breaks all functionality; patch included
Date: Thu, 22 May 2008 15:32:39 +0100
To: bug-www-myspace [...] rt.cpan.org
From: Steven Chamberlain <steven [...] pyro.eu.org>
Hi, Myspace have again changed their login form slightly. This broke login, and therefore nothing else would work either. My attached patch appears to fix this, and the test suite shows no other problems. Eventually it would be best if WWW::Myspace could guess all of the login form details, but at the moment I don't mind submitting patches to fix it whenever it breaks -- it doesn't happen *too* often. Regards, -- Steven Chamberlain steven@pyro.eu.org
Index: Myspace.pm =================================================================== --- Myspace.pm (revision 579) +++ Myspace.pm (working copy) @@ -633,6 +633,22 @@ my $submitted=""; $self->get_page( 'http://www.myspace.com/' ); if ( $self->current_page->decoded_content =~ + /ctl00\$ctl00\$Main\$cpMain\$SplashDisplay\$ctl01\$Email_Textbox/io ) + { + # 2008-05-22 -- slight change to form input names; this could easily + # change back in the future (it has done so previously) + $submitted = $self->submit_form( { +# page => 'http://www.myspace.com/', + form_name => 'aspnetForm', + fields_ref => { 'ctl00$ctl00$Main$cpMain$SplashDisplay$ctl01$Email_Textbox' => $self->account_name, + 'ctl00$ctl00$Main$cpMain$SplashDisplay$ctl01$Password_Textbox' => $self->password, + # '__EVENTTARGET' => 'ctl00$ctl00$Main$cpMain$SplashDisplay$ctl01$Login_ImageButton', + # '__EVENTARGUMENT' => '', + }, + action => 'http://secure.myspace.com/index.cfm?fuseaction=login.process', + # no_click => 1, + } ) ; + } elsif ( $self->current_page->decoded_content =~ /ctl00\$ctl00\$Main\$cpMain\$SplashDisplay\$ctl00\$Email_Textbox/io ) { # 2008-04-11 -- they added an extra ctl00$ and cpMain$ to the names of
Subject: Re: [rt.cpan.org #36100] New Myspace login form breaks all functionality; patch included
Date: Thu, 22 May 2008 17:22:42 -0700
To: bug-WWW-Myspace [...] rt.cpan.org
From: Grant Grueninger <grantg [...] spamarrest.com>
Steven, Thanks again! I'd like to give you svn commit access - please sign up on sourceforge and send me your "unix username" and I'll add you as a developer. Also read this (see if you can now - it may require me to add you as a developer first): http://www-myspace.wiki.sourceforge.net/ Grant On May 22, 2008, at 7:34 AM, Steven Chamberlain via RT wrote: Show quoted text
> > Thu May 22 10:34:11 2008: Request 36100 was acted upon. > Transaction: Ticket created by steven@pyro.eu.org > Queue: WWW-Myspace > Subject: New Myspace login form breaks all functionality; > patch included > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: steven@pyro.eu.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=36100 > > > > Hi, > > Myspace have again changed their login form slightly. This broke > login, > and therefore nothing else would work either. My attached patch > appears > to fix this, and the test suite shows no other problems. > > Eventually it would be best if WWW::Myspace could guess all of the > login > form details, but at the moment I don't mind submitting patches to fix > it whenever it breaks -- it doesn't happen *too* often. > > Regards, > -- > Steven Chamberlain > steven@pyro.eu.org > > Index: Myspace.pm > =================================================================== > --- Myspace.pm (revision 579) > +++ Myspace.pm (working copy) > @@ -633,6 +633,22 @@ > my $submitted=""; > $self->get_page( 'http://www.myspace.com/' ); > if ( $self->current_page->decoded_content =~ > + /ctl00\$ctl00\$Main\$cpMain\$SplashDisplay\$ctl01\ > $Email_Textbox/io ) > + { > + # 2008-05-22 -- slight change to form input names; this > could easily > + # change back in the future (it has done so previously) > + $submitted = $self->submit_form( { > +# page => 'http://www.myspace.com/', > + form_name => 'aspnetForm', > + fields_ref => { 'ctl00$ctl00$Main$cpMain$SplashDisplay > $ctl01$Email_Textbox' => $self->account_name, > + 'ctl00$ctl00$Main$cpMain$SplashDisplay > $ctl01$Password_Textbox' => $self->password, > + # '__EVENTTARGET' => 'ctl00$ctl00$Main > $cpMain$SplashDisplay$ctl01$Login_ImageButton', > + # '__EVENTARGUMENT' => '', > + }, > + action => 'http://secure.myspace.com/index.cfm? > fuseaction=login.process', > + # no_click => 1, > + } ) ; > + } elsif ( $self->current_page->decoded_content =~ > /ctl00\$ctl00\$Main\$cpMain\$SplashDisplay\$ctl00\ > $Email_Textbox/io ) > { > # 2008-04-11 -- they added an extra ctl00$ and cpMain$ to > the names of
Subject: Re: [rt.cpan.org #36100] New Myspace login form breaks all functionality; patch included
Date: Sun, 25 May 2008 03:42:05 +0100
To: bug-WWW-Myspace [...] rt.cpan.org
From: Steven Chamberlain <steven [...] pyro.eu.org>
Hello, grantg@spamarrest.com via RT wrote: Show quoted text
> I'd like to give you svn commit access - please sign up on > sourceforge and send me your "unix username" and I'll add you as a > developer.
Thanks, that sounds great. My SourceForge username is "s-chamberlain". As far as I know, that username is used for SVN access to SourceForge as well. Show quoted text
I'm not able to see that page, even when logged into my account. I think that, as you say, I need to be added as a developer first. Thanks again, -- Steven Chamberlain steven@pyro.eu.org
This was fixed in 0.81.