Bug #37543

Additional __identity field when using TYPO3.Media

Added by Michel Albers over 9 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Must have
Category:
ViewHelpers
Start date:
2012-05-28
Due date:
% Done:

0%

Estimated time:
0.50 h
Has patch:
No

Description

When using a <f:form.upload /> field for uploading a TYPO3.Media Image, FLUID adds a hidden _identity field for the Image which results in an "_identity mapping is not allowed" exception when saving the record. Removing the hidden __identity field by deleting

$content .= $this->renderAdditionalIdentityFields();

from FormViewHelper.php on line 127 solves the particular problem. Some further if / else conditions are needed.

#1

Updated by Michel Albers over 9 years ago

  • Assignee deleted (Robert Lemke)
#2

Updated by Sebastian Kurfuerst over 9 years ago

  • Status changed from New to Accepted
  • Assignee set to Sebastian Kurfuerst

I'll take care of that; the solution you proposed is just a workaround unfortunately.

#3

Updated by Karsten Dambekalns over 9 years ago

  • Target version changed from 1.1 beta 2 to 1.1 RC1
#4

Updated by Karsten Dambekalns over 9 years ago

  • Target version changed from 1.1 RC1 to 1.1
#5

Updated by Bastian Waidelich about 9 years ago

  • Status changed from Accepted to Needs Feedback
  • Assignee changed from Sebastian Kurfuerst to Bastian Waidelich

This should be fixed with https://review.typo3.org/#/c/12221/

Can you please confirm?

#6

Updated by Karsten Dambekalns about 9 years ago

I just wrote Michel an email asking again for feedback.

#7

Updated by Michel Albers about 9 years ago

Thanks! I'll check on that this evening!

#8

Updated by Michel Albers about 9 years ago

Still getting the error "it's not allowed to map property __identity" when submitting the upload form with a previously set value. Sorry :/

#9

Updated by Martin Keck about 9 years ago

Two remarks from my point of view (using 1.1 rc2 and TYPO3.Media) to probably make things clearer:
1. The problem only emerges when editing/updating an existing content (or whatever element) having a TYPO3.Media image as property (i. e. in newly created form there's no _identity hidden field for the image created)
2. I can confirm Michel's comment, that the suggested patch does not change anything (it's already part of rc2). The hidden field's still there, e. g. <input type="hidden" name="content[image][
_identity]" value="11db8fa6-71ad-4f89-a0d3-e75c4c545412" />. Removing it from the HTML output before submitting the form leads to a correctly updated image.

#10

Updated by Karsten Dambekalns about 9 years ago

  • Target version changed from 1.1 to 1.1.1
#11

Updated by Karsten Dambekalns almost 9 years ago

  • Target version changed from 1.1.1 to 2052
#13

Updated by Bastian Waidelich over 8 years ago

  • Status changed from Needs Feedback to Closed

Thanks for the feedback (I lost track of this one)

#14

Updated by Karsten Dambekalns about 8 years ago

  • Target version changed from 2052 to 1.1.1

Also available in: Atom PDF