Project

General

Profile

Actions

Bug #70046

closed

IntegerValidator doesn't work

Added by Alexander Averbuch over 8 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
Extbase
Target version:
Start date:
2015-09-23
Due date:
% Done:

0%

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

Description

I define in the model the field accountID:

/**
* accountId
* 
* @var integer
*/
protected $accountId = 0;

In dem Formular trage ich ins Feld 100000000000000000000000000 ein, und Extbase bzw. Validator meckert nicht. Statt eine Fehlermeldung zu zeigen, wird der größte Integer-Wert 2147483647 in die DB geschrieben. Außerdem wenn ich im Formular das Feld leer lasse, wird in die DB 0 geschrieben und ich bekomme ebenso keine Fehlermeldung. (leer <> 0)

Ich habe festgestellt, dass Integer-Validator gar nicht ins Spiel kommt. Die Validierung läuft über IntegerConverter, was an der Stelle falsch ist.

Actions #1

Updated by Wouter Wolters over 8 years ago

  • Status changed from New to Rejected

Please write english next time, TYPO3 is not a german only product. Thanks.

The IntegerValidator is used when you define a annotation like @validate Integer on your property.
This is not a bug but a configuration error.

Actions

Also available in: Atom PDF