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

Felix Oertel post at typo3felix.de
Thu Apr 1 17:54:18 CEST 2010


Hey,

Am 01.04.10 16:40, schrieb Marc Bastian Heinrichs:
> 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.

Yeah, I stumbled upon this in my own extension yesterday as well.

> I think, when an argument is non-required,
> Tx_Extbase_MVC_Controller_Argument::transformValue
> should allow the $transformedValue to be NULL.
> [...]
> What do you think?

+1 on your idea, mostly lacking a better solution

+1 on your patch by reading and testing :-) Small but good change.

Regards, Felix

PS: I attached a diff created against the trunk.


More information about the TYPO3-project-typo3v4mvc mailing list