500.html can produce error
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
play framework | Status tracked in 1.0 | |||||
1.0 |
Fix Released
|
Undecided
|
Nicolas Leroux | |||
1.1 |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
I had several problems in my view, including #(if..} instead of #{if..} and instead of seeing the description of the problem in the browser, I got 'Application error, check logs', here is the exception:
Template execution error (In /app/views/
Execution error occured in template /app/views/
play.exceptions
at play.templates.
at play.templates.
at play.server.
at Invocation.HTTP Request(Play!)
Caused by: java.lang.
at java.util.
at java.util.
at java.util.
at /app/views/
at play.templates.
... 2 more
This happened because groovy can pick up wrong line number, in my case it was greater than the number of lines in the file. Replacing line 98 in file 500.html with this fixes the problem - the whole template file would be shown:
from = exception.
Also, on line 105, the 'line' should be escaped:
I am using r.671
thanks
description: | updated |
Changed in play: | |
status: | New → Confirmed |
Changed in play: | |
assignee: | nobody → Nicolas (nicolas-lunatech) |
Thanks for the bug report and the solution :)