[TYPO3-mvc] RFC #7277: Non-required action argument thows Exception on unknown get-parameter uid
Marc Bastian Heinrichs
typo3 at mbh-web.de
Fri Jun 18 16:18:23 CEST 2010
This is an SVN patch request.
Type: Bugfix
Bugtracker references:
http://forge.typo3.org/issues/7277
Problem:
Example arguments
?tx_blogexample_pi1[blog]=2&tx_blogexample_pi1[action]=index&tx_blogexample_pi1[controller]=Post&no_cache=1
When the index action of the Post controller is called with an unknown
blog uid (here 2) an exception
Tx_Extbase_MVC_Exception_InvalidArgumentValue is thrown also when
the action argument is set explicit to non-required by adding an "= NULL
to the argument. So there is no chance to handle this inside the extension.
Solution:
Don't throw the exception when an argument is non-required.
Notes:
The patch has already an +1 by Felix in thread "Non-required action
argument thows Exception on unknown get-parameter uid"
http://lists.typo3.org/pipermail/typo3-project-typo3v4mvc/2010-April/003752.html
Regards,
Marc Bastian
More information about the TYPO3-project-typo3v4mvc
mailing list