infiniteLoop through failed validation should be stated clear
|Priority:||Should have||Due date:|
concearning "[TYPO3-mvc] Tx_Extbase_MVC_Exception_InfiniteLoop" we should see if we could state clear when an infiniteLoop occurs through failed validation.
the exception is thrown in Dispatcher.php:dispatch() after 101 tries to process the $request.
my idea would be to grab the info of $request->error (Tx_Extbase_MVC_Controller_ArgumentError). as it allready has a nice to read error-message ($request->errors->[argument]->message) and an exception code ($request->errors->[argument]->code) we could use this to build an exception. if we can not determine the type of error occured we can still throw Tx_Extbase_MVC_Exception_InfiniteLoop.
Updated by Claus Due over 1 year ago
- % Done changed from 0 to 100
This should be closed I think. New exception message reads: "Could not ultimately dispatch the request after ' . $dispatchLoopCount . ' iterations. Most probably, a @dontvalidate annotation is missing on re-displaying a form with validation errors." which is nicely informative - tells you that validation caused the problem and where to look for a cause.