Project

General

Profile

Actions

Bug #64402

closed

ObjectStorageConverter fails to convert empty value

Added by Dirk Wenzel almost 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-01-21
Due date:
% Done:

0%

Estimated time:
0.25 h
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

Description

Class TYPO3\CMS\Extbase\Property\TypeConverter\ObjectStorageConverter

Method convertFrom fails if argument $source is an empty string:
Line 60 - Invalid argument for foreach.
(This is the case if a form with an multi-select field has been submitted for a property of type ObjectStorage)

The attached patch fixes this issue but does not contain a test for this case since unit tests for ObjectsStorageConverter are missing completly.


Files

patch.diff (984 Bytes) patch.diff Dirk Wenzel, 2015-01-21 11:54
Actions #1

Updated by Mathias Schreiber almost 10 years ago

  • Target version set to 7.4 (Backend)
Actions #2

Updated by Susanne Moog over 9 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #3

Updated by Mathias Brodala about 9 years ago

  • Status changed from New to Needs Feedback

Are you able to reproduce this with the latest TYPO3 version? The ObjectStorageConverter explicitely checks whether the source is an array and uses an empty list of child properties otherwise.

Actions #4

Updated by Dirk Wenzel about 9 years ago

Sorry, I'm on vacations and can not test this within the next two weeks!
Cheers
Dirk

Actions #5

Updated by Benni Mack about 9 years ago

  • Target version deleted (7.5)
Actions #6

Updated by Riccardo De Contardi almost 9 years ago

  • Status changed from Needs Feedback to Closed

No activity within the last 90 days => closing this issue.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Thank you

Actions

Also available in: Atom PDF