Skip Menu |
 

This queue is for tickets about the MojoX-Renderer-Xslate CPAN distribution.

Report information
The Basics
Id: 84324
Status: resolved
Priority: 0/
Queue: MojoX-Renderer-Xslate

People
Owner: Nobody in particular
Requestors: dmaki [...] cpan.org
Cc:
AdminCc:

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



Subject: Module enters in deep recursion if exception.* and not_found.* templates do not exist
Download (untitled) / with headers
text/plain 433b
When xslate is the default handler, and you encounter an exception or a not found, MojoX::Renderer::Xslate goes into the "catch" block to render the error(s).... but if those templates are not found, then that's another exception, so then we get into repeated recursion. it seems that the render_exception() call should either be omitted or be protected from this recursion by detecting if it's called from within the catch block.
Download (untitled) / with headers
text/plain 565b
On Sun Mar 31 23:35:16 2013, DMAKI wrote: Show quoted text
> When xslate is the default handler, and you encounter an exception or > a not found, MojoX::Renderer::Xslate goes into the "catch" block > to render the error(s).... but if those templates are not found, > then that's another exception, so then we get into repeated > recursion. > > it seems that the render_exception() call should either be omitted or > be protected from this recursion by detecting if it's called from > within the catch block.
Do you have a simple test case exhibiting the issue?
fixed in 0.09


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.