[dancer-users] Dancer2 0.166000 - 404 Behaviour Change
dave at dave.org.uk
Wed Jan 20 13:54:54 GMT 2016
Has something changed (deliberately!) in the handling of 404 errors
between Dancer2 0.165000 and 0.166000?
I have a project that is being tested with Travis-CI. The last test
that used 0.165000 worked fine, but (after a few weeks not working
on the project) the next test run used 0.166000 and failed on two
tests that generate 404 errors.
I updated my local copy of Dancer2 and found I could reproduce the
problem in the web app. The problem seemed to be that the app was
always trying to use views/404.tt (which didn't exist) instead of
using public/404.html if it can't find views/404.tt - which was the
Looking through the Changes file, it seems that it might be related to this:
* GH #1093, 1095: Use a dynamic TT2 INCLUDE_PATH to allow relative
views with relative includes; fixing regression introduced by #1037.
But I haven't had time to investigate further.
I've fixed the problem by adding a views/404.tt file to the project.
But I think that's just a workaround.
I plan to dig a little deeper into the problem later in the week, but
I thought I'd mention it here first in case anyone had any insights
that could save me some time.
More information about the dancer-users