Bug #35338
Action arguments of type DateTime throw Exception
100%
Description
If an action argument is an object, the ValidationResolver tries to instantiates that object to use it as Validator without checking the Interface.
So a simple controller action like following
public function someAction(\DateTime $date) { }
Provokes an exception
DateTime::__construct() expects parameter 1 to be string, array given
Related issues
Updated by Gerrit Code Review almost 9 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10069
Updated by Gerrit Code Review almost 9 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10069
Updated by Gerrit Code Review almost 9 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10069
Updated by Gerrit Code Review almost 9 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10069
Updated by Gerrit Code Review almost 9 years ago
Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10069
Updated by Gerrit Code Review almost 9 years ago
Patch set 6 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10069
Updated by Karsten Dambekalns almost 9 years ago
- Status changed from Under Review to Closed
Closing as duplicate of #35338.
Updated by Karsten Dambekalns almost 9 years ago
- Status changed from Closed to Under Review
- Target version changed from 1.1 to 1.0.5
Karsten Dambekalns wrote:
Closing as duplicate of #35338.
I have seen this once already, that closing a related bug closes the "other side" as well. Pffft.
Updated by Bastian Waidelich almost 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 5d1aa1b9aba4f1f80e0c82fd950b62aad4ee6b88.
Updated by Gerrit Code Review over 8 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch FLOW3-1.0 has been pushed to the review server.
It is available at http://review.typo3.org/11834
Updated by Bastian Waidelich over 8 years ago
- Status changed from Under Review to Resolved
Applied in changeset 64a8f49896332e8f69c9d01ba2f6e68f0640e213.