Project

General

Profile

Actions

Bug #56498

closed

TCA setting for input field allows one character too much.

Added by Erik Sokoll about 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-03-03
Due date:
% Done:

0%

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

Description

If you use input (text) fields for plugins with db fields tinytext or varchar it is possible to insert 256 characters but both kind of db fields have only 255 characters and this will cause the error "102: These fields are not properly updated in database: (title) Probably value mismatch with fieldtype.".
So if you insert very long text to the input field it will be cut by the field setting (maxlength="256") and if you remove on char now (256 - 1 = 255) every thing works fine without error.
You can reproduce this error e.g. in EXT News title field or in normal cType header.
Tested versions 6.0.7 and 6.2-dev.

As a note: The title field of pages is correctly set to maxlength="255".

Actions

Also available in: Atom PDF