Bug #67044
closedNormalize Type int to integer doesn't work in DTOs
100%
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.
Updated by Gerrit Code Review about 9 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
Updated by Gerrit Code Review about 9 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
Updated by Wouter Wolters about 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 11a544b31bfd9eaa11fc13ade285f774dcd3373f.
Updated by Gerrit Code Review about 9 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
Updated by Wouter Wolters about 9 years ago
- Status changed from Under Review to Resolved
Applied in changeset a729ddd7824c3a766d14bbf6b1ba1eb9b61931fe.