Project

General

Profile

Actions

Bug #53425

closed

Forms with German Umlauts throws Exception

Added by Michael Staatz about 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-11-08
Due date:
% Done:

100%

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

Description

When you ar using a form with an model as object that will be persited after submitting and you have, for example, a property "firstname" then it is no more possible to submit the form in the case of "Jürgen".
You get then an exception: "Jürgen" is not a valid cache entry identifier.

In the case of "Jürgen Heinrich" all works fine.

The Problem is the new method: TypeHandlingUtility::isCoreType()

This is because it uses the PHP function: is_subclass_of

This function is known for calling the autoloader for loading this class (you can find hints of this behavior on php.net and stackoverflow.com).

A workaround could be you modify TYPO3\CMS\Extbase\Utility\TypeHandlingUtility from:

    /**
     * Returns TRUE if the $type is a CMS core type object.
     *
     * @param string $type
     * @return boolean
     */
    static public function isCoreType($type) {
        return is_subclass_of($type, 'TYPO3\\CMS\\Core\\Type\\TypeInterface');
    }

to something like:

    /**
     * Returns TRUE if the $type is a CMS core type object.
     *
     * @param string $type
     * @return boolean
     */
    static public function isCoreType($type) {
        $reflectionType = new ReflectionClass($type);
        return $reflectionType->implementsInterface('TYPO3\\CMS\\Core\\Type\\TypeInterface');
    }

BTW: Tested with PHP 5.3 and PHP 5.4


Files

stacktrace.txt (19.5 KB) stacktrace.txt Ralf Zimmermann, 2013-11-13 11:00

Related issues 2 (0 open2 closed)

Has duplicate TYPO3 Core - Bug #60669: String value in objects to persist will trigger the class autoloaderClosedTobias Liebig2014-07-30

Actions
Has duplicate TYPO3 Core - Bug #53560: #1233058486: "someStringWithUmlautsLikeÄ" is not a valid cache entry identifier.Closed2013-11-12

Actions
Actions

Also available in: Atom PDF