Bug #67044

Normalize Type int to integer doesn't work in DTOs

Added by Kevin Ditscheid almost 4 years ago. Updated 6 months ago.

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

100%

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.

Associated revisions

Revision 11a544b3 (diff)
Added by Wouter Wolters almost 4 years ago

[BUGFIX] PropertyMapper now normalizes simple types

This fixes a bug where the property mapper was unable to find a
valid typeconverter for properties annotated with int or bool.

Resolves: #67044
Releases: master,6.2
Change-Id: Ie15b6d83e70c5857a09f1d8baa21c168924d63b4
Reviewed-on: http://review.typo3.org/39628
Reviewed-by: Helmut Hummel <>
Reviewed-by: Andreas Fernandez <>
Tested-by: Andreas Fernandez <>
Reviewed-by: Markus Klein <>
Tested-by: Markus Klein <>

Revision a729ddd7 (diff)
Added by Wouter Wolters almost 4 years ago

[BUGFIX] PropertyMapper now normalizes simple types

This fixes a bug where the property mapper was unable to find a
valid typeconverter for properties annotated with int or bool.

Resolves: #67044
Releases: master,6.2
Change-Id: Ie15b6d83e70c5857a09f1d8baa21c168924d63b4
Reviewed-on: http://review.typo3.org/39959
Reviewed-by: Andreas Fernandez <>
Tested-by: Andreas Fernandez <>
Reviewed-by: Wouter Wolters <>
Tested-by: Wouter Wolters <>

History

#1 Updated by Gerrit Code Review almost 4 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 almost 4 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 almost 4 years ago

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

#4 Updated by Gerrit Code Review almost 4 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 almost 4 years ago

  • Status changed from Under Review to Resolved

#6 Updated by Benni Mack 6 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF