[TYPO3-mvc] RFC #7277: Non-required action argument thows Exception on unknown get-parameter uid

Franz Koch typo3.RemoveForMessage at elements-net.de
Sun Jul 4 00:42:12 CEST 2010


Hey Marc Sebastian,

> 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

+1 on reading. So I think we can commit it. But as discussed on T3DD we 
need some additional exception handling for cases where NULL is not allowed.

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list