Bug #55401

NodeDataRepository returns broken QueryResult if inconsistent nodes exist

Added by Bernhard Schmitt over 1 year ago. Updated over 1 year ago.

Status:New Start date:2014-01-28
Priority:Must have Due date:
Assigned To:- % Done:

0%

Category:Query handling
Target version:-

Description

If nodes exist that are inconsistent in that they have invalid relations (e.g. to Media images that have been deleted) in their serialized properties, the NodeDataRepository will on findAll() return an empty QueryResult (but with the correct count() value). That makes it technically impossible to repair the nodes in a proper way.

Version: Neos beta1 - 1.0.1

History

#1 Updated by Bernhard Schmitt over 1 year ago

I've traced an exception thrown when using findByIdentifier on such a node that might be involved:

Entity was not found.
Doctrine\ORM\EntityNotFoundException thrown in file
/[...]/Data/Temporary/Development/Doctrine/Proxies/__CG__TYPO3FlowResourceResource.php in line 32.

61 TYPO3\Flow\Persistence\Doctrine\Proxies\__CG__\TYPO3\Flow\Resource\Resource::__load()
60 TYPO3\Flow\Persistence\Doctrine\Proxies\__CG__\TYPO3\Flow\Resource\Resource::getResourcePointer()
59 TYPO3\Media\Domain\Service\ImageService_Original::transformImage(TYPO3\Media\Domain\Model\Image, array|2|)
58 TYPO3\Media\Domain\Model\ImageVariant_Original::initializeObject(2)
57 TYPO3\Media\Domain\Model\ImageVariant_Original::__wakeup()
56 TYPO3\Media\Domain\Model\ImageVariant::__wakeup()
55 unserialize("a:8:{s:9:"alignment";s:0:"";s:7:"caption";s:25:"<p…ode";s:36:"c755055b-4b0a-528e-3299-9545ed1008bc";}")
54 Doctrine\DBAL\Types\ArrayType::convertToPHPValue("a:8:{s:9:"alignment";s:0:"";s:7:"caption";s:25:"<p…ode";s:36:"c755055b-4b0a-528e-3299-9545ed1008bc";}", Doctrine\DBAL\Platforms\MySqlPlatform)
...

Maybe that helps.

Also available in: Atom PDF