[Dancer-users] more random bugs

Puneet Kishor punk.kish at gmail.com
Wed Oct 12 21:34:25 CEST 2011


a small follow-up below --

On Oct 12, 2011, at 2:06 PM, Puneet Kishor wrote:

> 
> On Oct 12, 2011, at 2:51 PM, Joel Roth wrote:
> 
>> On Wed, Oct 12, 2011 at 12:52:06PM -0500, Puneet Kishor wrote:
>>> random, in other words, not easy to reproduce.
>>> 
>>> I have 
>>> 
>>> 	get '/present/:page_name' => sub { .. };
>>> 
>>> followed by
>>> 
>>> 	get '/*?' => sub { .. };
>>> 
>>> Yet, from time to time, a regular web page, meant to be picked up the second route above, gets picked up by the first route, thereby sending the wrong html template.
>>> 
>>> As I said, I can't reliably reproduce it, but from time to time, when I load my web site at
>>> 
>>> 	http://punkish.org/The-Paradigm,-The-Framework,-and-The-Instantiation
>>> 
>>> (notice, no "present" in the path_info), I get the wrong template.
>>> 
>>> Please, please... my favorite Perl-thing, please don't turn buggy on me. I have close to a dozen apps riding on this, and I want it to be rock-solid-reliable.
>> 
>> Hi,
>> 
>> When I successively reload this link, it alternates
>> not-quite regularly between a white-characters-on-black
>> background, and dark-characters-on-white
>> template.
>> 
>> Reloading in succession, each format displays between
>> one and three times.
>> 
>> Every time I reload, the displayed photo changes.
>> 
>> What I (naively) wonder is if you might be inadvertently
>> retaining some state information.
>> 
>> Maybe you've fixed it, because at the end of writing
>> this email, the templating is stable.
>> 
> 
> 
> Hi Joel, Many thanks for checking it out and confirming my fears.
> 
> I haven't fixed anything. It is just random. The white characters on black background is "wrong" as it should appear only when /present/ is present in the route. That URI I gave above should always, 100% of the time, show black characters on white background. Yes, the photo should change as that is randomly selected.
> 
> This is very disconcerting.
> 


as I mentioned above, which template is used is (or should be) determined solely by the route used. And, needless to say, the "presentation" template is exclusively within the `get '/present/:page_name'` route. The app doesn't even have any logins or any session implementation from me. Other than the fact that it is running on Starman, which, I guess, makes it a persistent application. I can understand that if I had a web page accessible at punkish.org/present (being a stand alone, regular, black characters on white bg page) then that would conflict with punkish.org/present/a_page (being a route delivering a white chars on black bg presentation of a page called "a_page"). But, that is not the case.

Très bizarre.

Puneet.



More information about the Dancer-users mailing list