[TYPO3-english] Re: links of f:widget:paginate result in "Request URI too long"

Manuel Raaf raaf at badw.de
Tue Jul 18 10:26:54 CEST 2017


Update: the occurence of the error is not limited to this widget, since "__trustedProperties" contains to many values also if no paginator is used. Thus, the error must be somewhere around fluid/Classes/ViewHelpers/FormViewHelper.php and the setting/handling of the variable $formFieldNames in extbase/Classes/Mvc/Controller/MvcPropertyMappingConfigurationService.php and the function generateTrustedPropertiesToken() BUT ONLY IF the <select> has set the attribute "multiple" to "true". If this value is false, everything works just fine and not-selected <options> do not occur anywhere. 

For some (very very bad or even no) reason, every part of the form is stored in "__trustedProperties" serialized, though storing every <option> of a <select> is totally useless since doesn't even contain values. Hence, it could not be used for anything, I guess.

Here is a snippet of the serialized "_trustedProperties" that will be added as encoded query string later on: 

a:6:{s:15:"searchSubmitted";i:1;s:11:"corpusLemma";i:1;s:10:"corpusWort";i:1;s:12:"wortUndLemma";i:1;s:11:"corpusSigel";a:706:{i:0;i:1;i:1;i:1;i:2;i:1;i:3;i:1;i:4;i:1;i:5;i:1;i:6;i:1;i:7;i:1;i:8;i:1;i:9;i:1;i:10;i:1;i:11;i:1;i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:17;i:1;i:18;i:1;i:19;i:1;i:20;i:1;i:21;i:1;i:22;i:1;i:23;i:1;i:24;i:1;i:25;i:1;i:26;i:1;i:27;i:1;i:28;i:1;i:29;i:1;i:30;i:1;i:31;i:1;i:32;i:1;i:33;i:1......}

The array "corpusSigel" contains key->values that always have the form of number_of_current_index->1
That doesn't make sense to me - not at all. The ViewHelper needs to know what fields it should contain - fine. But it does not need to know how many unselected <option>s there are; especially so if it's without values. 


More information about the TYPO3-english mailing list