[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 18:21:29 CEST 2010


Sorry, I've forgotten to attach the patchfile.


Am 18.06.10 16:18, schrieb Marc Bastian Heinrichs:
> 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

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 7277_argument.patch
URL: <http://lists.typo3.org/pipermail/typo3-project-typo3v4mvc/attachments/20100618/4ed20669/attachment.txt>


More information about the TYPO3-project-typo3v4mvc mailing list