Project

General

Profile

Actions

Bug #95484

closed

Empty json responses cause JavaScript errors and error notifications in backend

Added by Benjamin Franzke over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Category:
Backend API
Target version:
Start date:
2021-10-06
Due date:
% Done:

100%

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

Description

When no page is configured to be visible in the page tree, an error occurs because JsonResponse return empty string instead of [] for empty arrays.

Empty strings are invalid json, while [] would have been valid.

Screenshot:


Files

pagetree-empty-error.png (73.4 KB) pagetree-empty-error.png Benjamin Franzke, 2021-10-06 04:10
Actions

Also available in: Atom PDF