ZF-8041: Layout controller plugin renders layout even if response was redirect

Issue Type: Bug Created: 2009-10-09T15:50:49.000+0000 Last Updated: 2009-11-25T00:28:54.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Olek (olek) Assignee: Marco Kaiser (bate) Tags: - Zend_Layout

Related issues: Attachments: - layout_controller_plugin_no_render_on_redirect.diff


Zend layout controller plugin does not return early on a redirect response code in postDispatch(), thus if the redirector is not configured to exit immediately after redirect (as in test environment), the layout template is still rendered, which may lead to exceptions while rendering (since the view may not be properly set up).


Posted by Olek (olek) on 2009-10-09T15:56:44.000+0000

A patch containing a failing test and a solution to make the test pass

Posted by Marco Kaiser (bate) on 2009-11-20T06:46:15.000+0000

fixed/added patch with r19090

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.