[BUGFIX] Only set request for Web_Response
authorTobias Liebig <tobias.liebig@typo3.org>
Wed, 27 Jun 2012 13:49:41 +0000 (15:49 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 21 Jul 2012 10:12:50 +0000 (12:12 +0200)
commit529143ca81bd60cd2502597c3262a0669de1d641
treee4e1267173832b86336ee9be96cd84226c37674c
parente0652a73dddc15652a3474ff44597c05662cc1c6
[BUGFIX] Only set request for Web_Response

The current request is needed in Tx_Extbase_MVC_Web_Response to
distinguish between a cached or a non-cached request in
addAdditionalHeaderData() as the PageRenderer does not support USER_INTs
currently. This works fine is the ActionController is called with a
Web_Response, but causes an fatal error if a Cli_Response is in charge.

This fix and the $request member in Web_Response should be removed,
once the PageRenderer is fixed for USER_INTs. For now, this patch fixes
a fatal error in the fluid unit tests.

Change-Id: I56fabc3a51ce2c5192ab4488c817b938ed8797ca
Fixes: #36751
Releases: 6.0
Reviewed-on: http://review.typo3.org/12401
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Daniel Lorenz
Tested-by: Daniel Lorenz
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/extbase/Classes/MVC/Controller/ActionController.php
typo3/sysext/extbase/Classes/MVC/Web/Response.php