Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 3072
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors: acp7 [...] citmail.buffalo.edu
Cc:
AdminCc:

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



From: "Potozniak, Andrew" <acp7 [...] citmail.buffalo.edu>
To: "'bug-www-mechanize [...] rt.cpan.org'" <bug-www-mechanize [...] rt.cpan.org>
Subject: FW: Mech History Bug
Date: Mon, 28 Jul 2003 15:21:02 -0400

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

Show quoted text
-----Original Message----- From: Potozniak, Andrew Sent: Monday, July 28, 2003 3:19 PM To: 'Andy Lester' Subject: Mech History Bug Andy, Here is the code that will show you 2 cases of mech's history bug. I think I might have an idea what's happening from the results on case 1, but I'll let you decide on that. --------------------------------------------------- Andrew Potozniak Administrative Computing Student Assistant State University of New York at Buffalo <mailto:acp7@citmail.buffalo.edu> acp7@citmail.buffalo.edu 645-3587 x 7123 <http://www.potozniak.org> http://www.potozniak.org ---------------------------------------------------
From: "Potozniak, Andrew" <acp7 [...] citmail.buffalo.edu>
To: "'bug-WWW-Mechanize [...] rt.cpan.org'" <bug-WWW-Mechanize [...] rt.cpan.org>
Subject: RE: [cpan #3072] AutoReply: FW: Mech History Bug
Date: Mon, 28 Jul 2003 15:37:56 -0400
RT-Send-Cc:
I think I found why this bug happens: OK so we surf to my home page by means of a $mech->get('http://www.potozniak.org/perl'); So in our history stack we currently have this: http://www.potozniak.org/perl <- current page Now I went to the first link corresponding to the $mech->follow_link( n => 1 ); sub routine which brings us to perl/ted/ Now in our history stack we have this: http://www.potozniak.org/perl/ted/ <- current page http://www.potozniak.org/perl/ Then I went to the first link on our current page by the same means as last time. $mech->follow_link( n => 1 ); sub routine which brings us to perl/ted/post.pl Now in our history stack we have this: http://www.potozniak.org/perl/ted/post.pl <- current page http://www.potozniak.org/perl/ted/ http://www.potozniak.org/perl/ And then I decided to do a $mech->get('http://www.google.com'); So we would think that our history stack would look like this: http://www.google.com/ <- current page http://www.potozniak.org/perl/ted/post.pl http://www.potozniak.org/perl/ted/ http://www.potozniak.org/perl/ But when we do a back we go back to http://www.potozniak.org/ted/ Why might this happen you may ask yourself. I think that when you call get the current page before the get is over ridden with the page we are now at from the get. Making our history stack look like this instead of the stack above: http://www.google.com/ <- current page http://www.potozniak.org/perl/ted/ <- will be the url after a back http://www.potozniak.org/perl/ <- will be the url after a double back I hope this helps out a bit. :-D --------------------------------------------------- Andrew Potozniak Administrative Computing Student Assistant State University of New York at Buffalo acp7@citmail.buffalo.edu 645-3587 x 7123 http://www.potozniak.org --------------------------------------------------- Show quoted text
> -----Original Message----- > From: WWW-Mechanize [mailto:bug-WWW-Mechanize@rt.cpan.org] > Sent: Monday, July 28, 2003 3:21 PM > To: acp7@citmail.buffalo.edu > Subject: [cpan #3072] AutoReply: FW: Mech History Bug > > > Greetings, > This message has been automatically generated in response to your > bug report about WWW-Mechanize, a summary of which appears below. > > There is no need to reply to this message right now. Your bug in WWW- > Mechanize has been assigned an ID of [cpan #3072]. Please include the > string: > > [cpan #3072] > > in the subject line of all future correspondence about this issue. To do > so, > you may reply to this message. > > Thank you, > bug-WWW-Mechanize@rt.cpan.org > > -------------------------------------------------------------------------