Zend Framework

Layout controller plugin renders layout even if response was redirect

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.8.4
  • Fix Version/s: 1.10.0
  • Component/s: Zend_Layout
  • Labels:
    None

Description

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).

Activity

Hide
Olek added a comment -

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

Show
Olek added a comment - A patch containing a failing test and a solution to make the test pass
Hide
Marco Kaiser added a comment -

fixed/added patch with r19090

Show
Marco Kaiser added a comment - fixed/added patch with r19090

People

Vote (2)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: