Bug #34672

Production context is not working

Added by Kira Backes over 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Must have
Category:
Reflection
Start date:
2012-03-08
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

When running an application (that uses Collections) in Production context the following exception is thrown:

  Catchable Fatal Error: Argument 2 passed to
  TYPO3\FLOW3\Validation\Validator\GenericObjectValidator_Original::addPropertyValidator()
  must implement interface
  TYPO3\FLOW3\Validation\Validator\ValidatorInterface, null given, called
  in
  /var/development/flow3/finderON/Data/Temporary/Production/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_Validation_ValidatorResolver_Original.php
  on line 240 and defined in
  /var/development/flow3/finderON/Data/Temporary/Production/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_Validation_Validator_GenericObjectValidator_Original.php
  line 148

.

Can be fixed by changing TYPO3\FLOW3\Reflection\ReflectionService.php:433
(Method isClassImplementationOf)

        $this->loadOrReflectClassIfNecessary($className);

to

        $this->loadOrReflectClassIfNecessary($className);
        $this->loadOrReflectClassIfNecessary($interfaceName);
#1

Updated by Karsten Dambekalns over 9 years ago

  • Project changed from TYPO3 Flow Base Distribution to TYPO3.Flow
#2

Updated by Karsten Dambekalns over 9 years ago

  • Category set to Reflection
  • Status changed from New to Needs Feedback
  • Assignee set to Karsten Dambekalns
  • Target version set to 1.1
  • Has patch set to No

Makes sense - could the problem be distilled into a functional test?

#3

Updated by Karsten Dambekalns about 9 years ago

  • Status changed from Needs Feedback to Accepted
#4

Updated by Gerrit Code Review about 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/10820

#5

Updated by Karsten Dambekalns about 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF