Bug #34048
ResolveValidator breaks on DateTime method arguments
| Status: | Closed | Start date: | 2012-02-17 | |
|---|---|---|---|---|
| Priority: | Must have | Due date: | ||
| Assignee: | Bastian Waidelich | % Done: | 0% |
|
| Category: | Validation | |||
| Target version: | TYPO3 Flow Base Distribution - 1.0.5 | |||
| PHP Version: | Complexity: | |||
| Has patch: | No | FLOW3 version affected: | Git 1.0 | |
| Votes: | 4 (View) |
Description
When a dateTime argument is set in a method the ResolveValidator breaks, he tries to create a DateTime (instead of a validator)
Fixable by the following:
Change \TYPO3\FLOW3\Validation\ValidatorResolver::resolveValidatorObjectName (line 278)
if ($this->objectManager->isRegistered($validatorType)) {
to
if ($this->objectManager->isRegistered($validatorType) &&
$this->reflectionService->isClassImplementationOf($this->objectManager->getClassNameByObjectName($validatorType),
'TYPO3\FLOW3\Validation\Validator\ValidatorInterface')) {
Related issues
| duplicated by TYPO3.Flow - Bug #35338: Action arguments of type DateTime throw Exception | Resolved | 2012-03-28 |
History
Updated by Julian Wachholz about 1 year ago
Hi,
I guess #35338 fixes this issue. :)
Updated by Karsten Dambekalns about 1 year ago
- Category set to Validation
- Status changed from New to Closed
- Assignee set to Bastian Waidelich
- Target version set to 1.0.5
- FLOW3 version affected changed from Git master to Git 1.0
Closing as duplicate of #35338.