Bug #34048
ResolveValidator breaks on DateTime method arguments
Status: | Closed | Start date: | 2012-02-17 | |
---|---|---|---|---|
Priority: | Must have | Due date: | ||
Assigned To: | Bastian Waidelich | % Done: | 0% |
|
Category: | Validation | |||
Target version: | TYPO3 Flow Base Distribution - 1.0.5 | |||
PHP Version: | Complexity: | |||
Has patch: | No | Affected Flow version: | Git 1.0 |
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
History
#1 Updated by Julian Wachholz over 3 years ago
Hi,
I guess #35338 fixes this issue. :)
#2 Updated by Karsten Dambekalns over 3 years ago
- Category set to Validation
- Status changed from New to Closed
- Assigned To set to Bastian Waidelich
- Target version set to 1.0.5
- Affected Flow version changed from Git master to Git 1.0
Closing as duplicate of #35338.