[dancer-users] Dancer2 0.166000 - 404 Behaviour Change
ZahirLalani at oliver.agency
Wed Jan 20 14:40:40 GMT 2016
> -----Original Message-----
> From: dancer-users [mailto:dancer-users-bounces at dancer.pm] On Behalf Of
> Dave Cross
> Sent: 20 January 2016 14:08
> To: Perl Dancer users mailing list <dancer-users at dancer.pm>
> Subject: Re: [dancer-users] Dancer2 0.166000 - 404 Behaviour Change
> Quoting Dave Cross <dave at dave.org.uk>:
> > I plan to dig a little deeper into the problem later in the week,
> Couldn't resist a quick look, and I think I've found the problem. It's this commit.
> It switches from using "-f" to see if the template exists, to using $engine-
> >pathname_exists. This changes the behaviour as
> pathname_exists() uses Template::Context::template(), which dies if the
> template can't be found.
> So the call to pathname_exists() probably needs to be in a try/catch block.
> I'll see if I can come up with a failing test and a patch.
Yes we had this too this morning - turned out to be a rogue absolute path to a view. Changing to relative fixed it
More information about the dancer-users