Bug #33564

Persisting image throws Exception

Added by Karsten Dambekalns over 3 years ago. Updated about 3 years ago.

Status:Resolved Start date:2012-01-31
Priority:Must have Due date:
Assigned To:Bastian Waidelich % Done:

100%

Category:-
Target version:-

Description

When trying to upload an image I get this result:

http://dl.dropbox.com/u/1536167/Phoenix/stacktrace.html


Related issues

related to TYPO3.Flow - Bug #32700: Validation does not work for collections Resolved 2011-12-19
related to TYPO3.Flow - Bug #33883: Repositories must be singleton, but no checks are done on... Resolved 2012-02-13

Associated revisions

Revision f2ecaba8
Added by Bastian Waidelich over 3 years ago

[BUGFIX] Persisting image throws Exception

The imageRepository was not of type Singelton but is a property of
the image domain model. That's why the GenericObjectValidator
tried to validate it.

Change-Id: I7122cf0e2778c07a0e0c0a419004d1e66435b565
Fixes: #33564

History

#1 Updated by Bastian Waidelich over 3 years ago

  • Project changed from TYPO3.Neos to TYPO3.Media
  • Status changed from New to Accepted
  • Assigned To set to Bastian Waidelich
  • Priority changed from Should have to Must have

#2 Updated by Bastian Waidelich over 3 years ago

  • Subject changed from Uploading an image is broken to Persisting image throws Exception

#3 Updated by Adrian Föder over 3 years ago

inserting

@FLOW3\Scope("singleton")

at the ImageRepository fixes the issue; removing it makes the error occur again (just for evidence it's the actual reason)

#4 Updated by Gerrit Code Review over 3 years ago

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8782

#5 Updated by Bastian Waidelich over 3 years ago

  • Status changed from Accepted to Under Review

BTW: I think, this behavior changed with http://forge.typo3.org/issues/32700

#6 Updated by Bastian Waidelich about 3 years ago

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

Also available in: Atom PDF