Project

General

Profile

Actions

Bug #91382

closed

Ajax Widgets with QueryResult Object as Argument throw an Error since 9.5.17

Added by Jonas Götze about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
Start date:
2020-05-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

When using a fluid ajax widget (custom or from core, e.g. autocomplete widget) which stores its configuration in the session you get an Exception:

#1588178538 TYPO3\CMS\Fluid\Core\Widget\Exception

Widget configuration items either must be null, scalar, array or JSON serializable, got "TYPO3\CMS\Extbase\Persistence\Generic\QueryResult"

<input type="text" id="myautocomplete" name="myautocomplete" />
<f:widget.autocomplete objects="{news}" for="myautocomplete" searchProperty="title" />

This is because the security related change here https://github.com/TYPO3/TYPO3.CMS/commit/e4fb92a85bed8067d45d2c25c4b559642f206248 which does not accept such an object as it is not JsonSerializable.
Though I am unsure about where and how this should be fixed.


Files

var_dump.html (36.3 KB) var_dump.html Jonas Götze, 2020-05-14 14:58
composer.json (1.29 KB) composer.json Jonas Götze, 2020-05-14 15:00
typo3_52c8fd3ac4.log (24.6 KB) typo3_52c8fd3ac4.log Jonas Götze, 2020-05-14 15:07

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #91418: UnknownClassException with Fluid autocomplete widgetClosed2020-05-16

Actions
Actions

Also available in: Atom PDF