[BUGFIX] Form shows Fatal Error in Frontend
authorIngo Pfennigstorf <i.pfennigstorf@gmail.com>
Fri, 9 Nov 2012 14:47:05 +0000 (15:47 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Thu, 15 Nov 2012 09:32:37 +0000 (10:32 +0100)
This resolves the wrong instantiation of all classes
that contain uppercase characters within a certain
class name part, by adding the lowercased versions
to the class alias map.

Fixes: #40850
Releases: 6.0

Change-Id: I973393a5476e5b0ee8a2500117de636e43513666
Reviewed-on: http://review.typo3.org/16362
Reviewed-by: Thomas Maroschik
Reviewed-by: Mattias Nilsson
Reviewed-by: Ingo Pfennigstorf
Tested-by: Ingo Pfennigstorf
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/form/Classes/Domain/Model/Additional/AdditionalAdditionalElement.php
typo3/sysext/form/Migrations/Code/ClassAliasMap.php

index 07df56e..87df8d8 100644 (file)
@@ -45,7 +45,7 @@ class AdditionalAdditionalElement {
         * @param string $class Name of the additional
         * @param mixed $value Typoscript configuration to construct value
         * @param string $type Typoscript content object
-        * @return tx_form_Domain_Model_Additional
+        * @return AdditionalAdditionalElement
         */
        public function addAdditional($class, $type, $value) {
                $class = strtolower((string) $class);
index 1a046fd..81947b4 100644 (file)
@@ -13,6 +13,7 @@ return array(
        'tx_form_Domain_Model_Attributes_Abstract' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Attribute\\AbstractAttribute',
        'tx_form_Domain_Model_Attributes_Accept' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Attribute\\AcceptAttribute',
        'tx_form_Domain_Model_Attributes_Acceptcharset' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Attribute\\AcceptCharsetAttribute',
+       'TYPO3\\CMS\\Form\\Domain\\Model\\Attribute\\AcceptcharsetAttribute' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Attribute\\AcceptCharsetAttribute',
        'tx_form_Domain_Model_Attributes_Accesskey' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Attribute\\AccesskeyAttribute',
        'tx_form_Domain_Model_Attributes_Action' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Attribute\\ActionAttribute',
        'tx_form_Domain_Model_Attributes_Alt' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Attribute\\AltAttribute',
@@ -46,6 +47,7 @@ return array(
        'tx_form_Domain_Model_Element_Button' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Element\\ButtonElement',
        'tx_form_Domain_Model_Element_Checkbox' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Element\\CheckboxElement',
        'tx_form_Domain_Model_Element_Checkboxgroup' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Element\\CheckboxGroupElement',
+       'TYPO3\\CMS\\Form\\Domain\\Model\\Element\\CheckboxgroupElement' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Element\\CheckboxGroupElement',
        'tx_form_Domain_Model_Element_Container' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Element\\ContainerElement',
        'tx_form_Domain_Model_Element_Content' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Element\\ContentElement',
        'tx_form_Domain_Model_Element_Fieldset' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Element\\FieldsetElement',
@@ -58,6 +60,7 @@ return array(
        'tx_form_Domain_Model_Element_Password' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Element\\PasswordElement',
        'tx_form_Domain_Model_Element_Radio' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Element\\RadioElement',
        'tx_form_Domain_Model_Element_Radiogroup' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Element\\RadioGroupElement',
+       'TYPO3\\CMS\\Form\\Domain\\Model\\Element\\RadiogroupElement' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Element\\RadioGroupElement',
        'tx_form_Domain_Model_Element_Reset' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Element\\ResetElement',
        'tx_form_Domain_Model_Element_Select' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Element\\SelectElement',
        'tx_form_Domain_Model_Element_Submit' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Element\\SubmitElement',
@@ -68,6 +71,7 @@ return array(
        'tx_form_Domain_Model_JSON_Element' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Json\\AbstractJsonElement',
        'tx_form_Domain_Model_JSON_Button' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Json\\ButtonJsonElement',
        'tx_form_Domain_Model_JSON_Checkboxgroup' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Json\\CheckboxGroupJsonElement',
+       'TYPO3\\CMS\\Form\\Domain\\Model\\Json\\CheckboxgroupJsonElement' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Json\\CheckboxGroupJsonElement',
        'tx_form_Domain_Model_JSON_Checkbox' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Json\\CheckboxJsonElement',
        'tx_form_Domain_Model_JSON_Container' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Json\\ContainerJsonElement',
        'tx_form_Domain_Model_JSON_Fieldset' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Json\\FieldsetJsonElement',
@@ -78,6 +82,7 @@ return array(
        'tx_form_Domain_Model_JSON_Name' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Json\\NameJsonElement',
        'tx_form_Domain_Model_JSON_Password' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Json\\PasswordJsonElement',
        'tx_form_Domain_Model_JSON_Radiogroup' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Json\\RadioGroupJsonElement',
+       'TYPO3\\CMS\\Form\\Domain\\Model\\Json\\RadiogroupJsonElement' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Json\\RadioGroupJsonElement',
        'tx_form_Domain_Model_JSON_Radio' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Json\\RadioJsonElement',
        'tx_form_Domain_Model_JSON_Reset' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Json\\ResetJsonElement',
        'tx_form_Domain_Model_JSON_Select' => 'TYPO3\\CMS\\Form\\Domain\\Model\\Json\\SelectJsonElement',
@@ -95,11 +100,16 @@ return array(
        'tx_form_System_Filter_Integer' => 'TYPO3\\CMS\\Form\\Filter\\IntegerFilter',
        'tx_form_System_Filter_Lowercase' => 'TYPO3\\CMS\\Form\\Filter\\LowerCaseFilter',
        'tx_form_System_Filter_Regexp' => 'TYPO3\\CMS\\Form\\Filter\\RegExpFilter',
+       'TYPO3\\CMS\\Form\\Filter\\RegexpFilter' => 'TYPO3\\CMS\\Form\\Filter\\RegExpFilter',
        'tx_form_System_Filter_Removexss' => 'TYPO3\\CMS\\Form\\Filter\\RemoveXssFilter',
+       'TYPO3\\CMS\\Form\\Filter\\RemovexssFilter' => 'TYPO3\\CMS\\Form\\Filter\\RemoveXssFilter',
        'tx_form_System_Filter_Stripnewlines' => 'TYPO3\\CMS\\Form\\Filter\\StripNewLinesFilter',
+       'TYPO3\\CMS\\Form\\Filter\\StripnewlinesFilter' => 'TYPO3\\CMS\\Form\\Filter\\StripNewLinesFilter',
        'tx_form_System_Filter_Titlecase' => 'TYPO3\\CMS\\Form\\Filter\\TitleCaseFilter',
+       'TYPO3\\CMS\\Form\\Filter\\TitlecaseFilter' => 'TYPO3\\CMS\\Form\\Filter\\TitleCaseFilter',
        'tx_form_System_Filter_Trim' => 'TYPO3\\CMS\\Form\\Filter\\TrimFilter',
        'tx_form_System_Filter_Uppercase' => 'TYPO3\\CMS\\Form\\Filter\\UpperCaseFilter',
+       'TYPO3\\CMS\\Form\\Filter\\UppercaseFilter' => 'TYPO3\\CMS\\Form\\Filter\\UpperCaseFilter',
        'tx_form_System_Layout' => 'TYPO3\\CMS\\Form\\Layout',
        'tx_form_System_Localization' => 'TYPO3\\CMS\\Form\\Localization',
        'tx_form_System_Postprocessor_Mail' => 'TYPO3\\CMS\\Form\\PostProcess\\MailPostProcessor',
@@ -119,17 +129,23 @@ return array(
        'tx_form_System_Validate_Email' => 'TYPO3\\CMS\\Form\\Validation\\EmailValidator',
        'tx_form_System_Validate_Equals' => 'TYPO3\\CMS\\Form\\Validation\\EqualsValidator',
        'tx_form_System_Validate_Fileallowedtypes' => 'TYPO3\\CMS\\Form\\Validation\\FileAllowedTypesValidator',
+       'TYPO3\\CMS\\Form\\Validation\\FileallowedtypesValidator' => 'TYPO3\\CMS\\Form\\Validation\\FileAllowedTypesValidator',
        'tx_form_System_Validate_Filemaximumsize' => 'TYPO3\\CMS\\Form\\Validation\\FileMaximumSizeValidator',
+       'TYPO3\\CMS\\Form\\Validation\\FilemaximumsizeValidator' => 'TYPO3\\CMS\\Form\\Validation\\FileMaximumSizeValidator',
        'tx_form_System_Validate_Fileminimumsize' => 'TYPO3\\CMS\\Form\\Validation\\FileMinimumSizeValidator',
+       'TYPO3\\CMS\\Form\\Validation\\FileminimumsizeValidator' => 'TYPO3\\CMS\\Form\\Validation\\FileMinimumSizeValidator',
        'tx_form_System_Validate_Float' => 'TYPO3\\CMS\\Form\\Validation\\FloatValidator',
        'tx_form_System_Validate_Greaterthan' => 'TYPO3\\CMS\\Form\\Validation\\GreaterThanValidator',
+       'TYPO3\\CMS\\Form\\Validation\\GreaterthanValidator' => 'TYPO3\\CMS\\Form\\Validation\\GreaterThanValidator',
        'tx_form_System_Validate_Inarray' => 'TYPO3\\CMS\\Form\\Validation\\InArrayValidator',
+       'TYPO3\\CMS\\Form\\Validation\\InarrayValidator' => 'TYPO3\\CMS\\Form\\Validation\\InArrayValidator',
        'tx_form_System_Validate_Integer' => 'TYPO3\\CMS\\Form\\Validation\\IntegerValidator',
        'tx_form_System_Validate_Interface' => 'TYPO3\\CMS\\Form\\Validation\\ValidatorInterface',
        'tx_form_System_Validate_Ip' => 'TYPO3\\CMS\\Form\\Validation\\IpValidator',
        'tx_form_System_Validate_Length' => 'TYPO3\\CMS\\Form\\Validation\\LengthValidator',
        'tx_form_System_Validate_Lessthan' => 'TYPO3\\CMS\\Form\\Validation\\LessthanValidator',
        'tx_form_System_Validate_Regexp' => 'TYPO3\\CMS\\Form\\Validation\\RegExpValidator',
+       'TYPO3\\CMS\\Form\\Validation\\RegexpValidator' => 'TYPO3\\CMS\\Form\\Validation\\RegExpValidator',
        'tx_form_System_Validate_Required' => 'TYPO3\\CMS\\Form\\Validation\\RequiredValidator',
        'tx_form_System_Validate_Uri' => 'TYPO3\\CMS\\Form\\Validation\\UriValidator',
        'tx_form_View_Confirmation_Additional' => 'TYPO3\\CMS\\Form\\View\\Confirmation\\Additional\\AdditionalElementView',
@@ -139,6 +155,7 @@ return array(
        'tx_form_View_Confirmation_Element_Abstract' => 'TYPO3\\CMS\\Form\\View\\Confirmation\\Element\\AbstractElementView',
        'tx_form_View_Confirmation_Element_Checkbox' => 'TYPO3\\CMS\\Form\\View\\Confirmation\\Element\\CheckboxElementView',
        'tx_form_View_Confirmation_Element_Checkboxgroup' => 'TYPO3\\CMS\\Form\\View\\Confirmation\\Element\\CheckboxGroupElementView',
+       'TYPO3\\CMS\\Form\\View\\Confirmation\\Element\\CheckboxgroupElementView' => 'TYPO3\\CMS\\Form\\View\\Confirmation\\Element\\CheckboxGroupElementView',
        'tx_form_View_Confirmation_Element_Container' => 'TYPO3\\CMS\\Form\\View\\Confirmation\\Element\\ContainerElementView',
        'tx_form_View_Confirmation_Element_Fieldset' => 'TYPO3\\CMS\\Form\\View\\Confirmation\\Element\\FieldsetElementView',
        'tx_form_View_Confirmation_Element_Fileupload' => 'TYPO3\\CMS\\Form\\View\\Confirmation\\Element\\FileuploadElementView',
@@ -146,6 +163,7 @@ return array(
        'tx_form_View_Confirmation_Element_Option' => 'TYPO3\\CMS\\Form\\View\\Confirmation\\Element\\OptionElementView',
        'tx_form_View_Confirmation_Element_Radio' => 'TYPO3\\CMS\\Form\\View\\Confirmation\\Element\\RadioElementView',
        'tx_form_View_Confirmation_Element_Radiogroup' => 'TYPO3\\CMS\\Form\\View\\Confirmation\\Element\\RadioGroupElementView',
+       'TYPO3\\CMS\\Form\\View\\Confirmation\\Element\\RadiogroupElementView' => 'TYPO3\\CMS\\Form\\View\\Confirmation\\Element\\RadioGroupElementView',
        'tx_form_View_Confirmation_Element_Select' => 'TYPO3\\CMS\\Form\\View\\Confirmation\\Element\\SelectElementView',
        'tx_form_View_Confirmation_Element_Textarea' => 'TYPO3\\CMS\\Form\\View\\Confirmation\\Element\\TextareaElementView',
        'tx_form_View_Confirmation_Element_Textline' => 'TYPO3\\CMS\\Form\\View\\Confirmation\\Element\\TextlineElementView',
@@ -158,6 +176,7 @@ return array(
        'tx_form_View_Form_Element_Button' => 'TYPO3\\CMS\\Form\\View\\Form\\Element\\ButtonElementView',
        'tx_form_View_Form_Element_Checkbox' => 'TYPO3\\CMS\\Form\\View\\Form\\Element\\CheckboxElementView',
        'tx_form_View_Form_Element_Checkboxgroup' => 'TYPO3\\CMS\\Form\\View\\Form\\Element\\CheckboxGroupElementView',
+       'TYPO3\\CMS\\Form\\View\\Form\\Element\\CheckboxgroupElementView' => 'TYPO3\\CMS\\Form\\View\\Form\\Element\\CheckboxGroupElementView',
        'tx_form_View_Form_Element_Container' => 'TYPO3\\CMS\\Form\\View\\Form\\Element\\ContainerElementView',
        'tx_form_View_Form_Element_Content' => 'TYPO3\\CMS\\Form\\View\\Form\\Element\\ContentElementView',
        'tx_form_View_Form_Element_Fieldset' => 'TYPO3\\CMS\\Form\\View\\Form\\Element\\FieldsetElementView',
@@ -170,6 +189,7 @@ return array(
        'tx_form_View_Form_Element_Password' => 'TYPO3\\CMS\\Form\\View\\Form\\Element\\PasswordElementView',
        'tx_form_View_Form_Element_Radio' => 'TYPO3\\CMS\\Form\\View\\Form\\Element\\RadioElementView',
        'tx_form_View_Form_Element_Radiogroup' => 'TYPO3\\CMS\\Form\\View\\Form\\Element\\RadioGroupElementView',
+       'TYPO3\\CMS\\Form\\View\\Form\\Element\\RadiogroupElementView' => 'TYPO3\\CMS\\Form\\View\\Form\\Element\\RadioGroupElementView',
        'tx_form_View_Form_Element_Reset' => 'TYPO3\\CMS\\Form\\View\\Form\\Element\\ResetElementView',
        'tx_form_View_Form_Element_Select' => 'TYPO3\\CMS\\Form\\View\\Form\\Element\\SelectElementView',
        'tx_form_View_Form_Element_Submit' => 'TYPO3\\CMS\\Form\\View\\Form\\Element\\SubmitElementView',
@@ -183,6 +203,7 @@ return array(
        'tx_form_View_Mail_Html_Element_Abstract' => 'TYPO3\\CMS\\Form\\View\\Mail\\Html\\Element\\AbstractElementView',
        'tx_form_View_Mail_Html_Element_Checkbox' => 'TYPO3\\CMS\\Form\\View\\Mail\\Html\\Element\\CheckboxElementView',
        'tx_form_View_Mail_Html_Element_Checkboxgroup' => 'TYPO3\\CMS\\Form\\View\\Mail\\Html\\Element\\CheckboxGroupElementView',
+       'TYPO3\\CMS\\Form\\View\\Mail\\Html\\Element\\CheckboxgroupElementView' => 'TYPO3\\CMS\\Form\\View\\Mail\\Html\\Element\\CheckboxGroupElementView',
        'tx_form_View_Mail_Html_Element_Container' => 'TYPO3\\CMS\\Form\\View\\Mail\\Html\\Element\\ContainerElementView',
        'tx_form_View_Mail_Html_Element_Fieldset' => 'TYPO3\\CMS\\Form\\View\\Mail\\Html\\Element\\FieldsetElementView',
        'tx_form_View_Mail_Html_Element_Fileupload' => 'TYPO3\\CMS\\Form\\View\\Mail\\Html\\Element\\FileuploadElementView',
@@ -191,6 +212,7 @@ return array(
        'tx_form_View_Mail_Html_Element_Option' => 'TYPO3\\CMS\\Form\\View\\Mail\\Html\\Element\\OptionElementView',
        'tx_form_View_Mail_Html_Element_Radio' => 'TYPO3\\CMS\\Form\\View\\Mail\\Html\\Element\\RadioElementView',
        'tx_form_View_Mail_Html_Element_Radiogroup' => 'TYPO3\\CMS\\Form\\View\\Mail\\Html\\Element\\RadioGroupElementView',
+       'TYPO3\\CMS\\Form\\View\\Mail\\Html\\Element\\RadiogroupElementView' => 'TYPO3\\CMS\\Form\\View\\Mail\\Html\\Element\\RadioGroupElementView',
        'tx_form_View_Mail_Html_Element_Select' => 'TYPO3\\CMS\\Form\\View\\Mail\\Html\\Element\\SelectElementView',
        'tx_form_View_Mail_Html_Element_Textarea' => 'TYPO3\\CMS\\Form\\View\\Mail\\Html\\Element\\TextareaElementView',
        'tx_form_View_Mail_Html_Element_Textline' => 'TYPO3\\CMS\\Form\\View\\Mail\\Html\\Element\\TextlineElementView',
@@ -199,6 +221,7 @@ return array(
        'tx_form_View_Mail_Plain_Element_Abstract' => 'TYPO3\\CMS\\Form\\View\\Mail\\Plain\\Element\\AbstractElementView',
        'tx_form_View_Mail_Plain_Element_Checkbox' => 'TYPO3\\CMS\\Form\\View\\Mail\\Plain\\Element\\CheckboxElementView',
        'tx_form_View_Mail_Plain_Element_Checkboxgroup' => 'TYPO3\\CMS\\Form\\View\\Mail\\Plain\\Element\\CheckboxGroupElementView',
+       'TYPO3\\CMS\\Form\\View\\Mail\\Plain\\Element\\CheckboxgroupElementView' => 'TYPO3\\CMS\\Form\\View\\Mail\\Plain\\Element\\CheckboxGroupElementView',
        'tx_form_View_Mail_Plain_Element_Container' => 'TYPO3\\CMS\\Form\\View\\Mail\\Plain\\Element\\ContainerElementView',
        'tx_form_View_Mail_Plain_Element_Fieldset' => 'TYPO3\\CMS\\Form\\View\\Mail\\Plain\\Element\\FieldsetElementView',
        'tx_form_View_Mail_Plain_Element_Fileupload' => 'TYPO3\\CMS\\Form\\View\\Mail\\Plain\\Element\\FileuploadElementView',
@@ -207,6 +230,7 @@ return array(
        'tx_form_View_Mail_Plain_Element_Option' => 'TYPO3\\CMS\\Form\\View\\Mail\\Plain\\Element\\OptionElementView',
        'tx_form_View_Mail_Plain_Element_Radio' => 'TYPO3\\CMS\\Form\\View\\Mail\\Plain\\Element\\RadioElementView',
        'tx_form_View_Mail_Plain_Element_Radiogroup' => 'TYPO3\\CMS\\Form\\View\\Mail\\Plain\\Element\\RadioGroupElementView',
+       'TYPO3\\CMS\\Form\\View\\Mail\\Plain\\Element\\RadiogroupElementView' => 'TYPO3\\CMS\\Form\\View\\Mail\\Plain\\Element\\RadioGroupElementView',
        'tx_form_View_Mail_Plain_Element_Select' => 'TYPO3\\CMS\\Form\\View\\Mail\\Plain\\Element\\SelectElementView',
        'tx_form_View_Mail_Plain_Element_Textarea' => 'TYPO3\\CMS\\Form\\View\\Mail\\Plain\\Element\\TextareaElementView',
        'tx_form_View_Mail_Plain_Element_Textline' => 'TYPO3\\CMS\\Form\\View\\Mail\\Plain\\Element\\TextlineElementView',