Bug #9360
ObjectSerializer does not detect recursion in object references
Status: | Resolved | Start date: | 2010-08-18 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Robert Lemke | % Done: | 100% |
|
Category: | Object | |||
Target version: | TYPO3 Flow Base Distribution - 1.0 alpha 11 | |||
PHP Version: | Complexity: | |||
Has patch: | Affected Flow version: |
Description
Given the following object relations:
$objectA = new $className(); $objectB = new $className(); $objectA->child = $objectB; $objectB->parent = $objectA;
On trying to serialize $objectA with serializeObjectAsPropertyArray(), the object serializer will end up in an infinite loop trying to recursively serialize the two objects.
Associated revisions
[+BUGFIX] FLOW3 (Object): The ObjectSerializer now detects recursive reference in the object structure to be serialized. This should now allow to add even complex object structures to a session object which is then transparently stored by FLOW3. Resolves #9360
Change-Id: I202b78c9c3bc835a017c35baf2293e6e5776ad32
History
#1 Updated by Karsten Dambekalns almost 5 years ago
- Category changed from MVC - Routing to Object
#2 Updated by Robert Lemke almost 5 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r5009.