Bug #67044

Normalize Type int to integer doesn't work in DTOs

Added by Kevin Ditscheid over 6 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-05-20
Due date:
% Done:

100%

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

Description

I walk across a bug with the PropertyMapper when i declare a property as int instead of integer in a DTO Model.
The error message says as follows:

#1297759968: Exception while property mapping at property path "confirmation":No converter found which can be used to convert from "string" to "int".

I found an issue report and a fix in the TYPO3 FLOW Bugtracker under: https://forge.typo3.org/issues/47054

Maybe this fix has not been ported to extbase yet.

After i changed the declaration from int to integer, everything works as expected.

To reproduce this, simply add an action in a controller which expects a DTO as parameter and let it validate this. Add a property with declaration int to the DTO and submit it to the created action with an integer value for this property.

I encountered this with TYPO3 6.2.13 from github TYPO3_6-2 branch.

#1

Updated by Gerrit Code Review over 6 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39628

#2

Updated by Gerrit Code Review over 6 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39628

#3

Updated by Wouter Wolters over 6 years ago

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

Updated by Gerrit Code Review over 6 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39959

#5

Updated by Wouter Wolters over 6 years ago

  • Status changed from Under Review to Resolved
#6

Updated by Benni Mack almost 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF