Project

General

Profile

Actions

Bug #106506

open

Save of a form results in 503 on read only systems

Added by Christian Rath-Ulrich 25 days ago. Updated 21 days ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2025-04-03
Due date:
% Done:

0%

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

Description

Forms from folders that are not writable should not be editable:

When a form is saved in a readonly system, a 503 error occurs.

Forms that cannot be saved should also not be editable.


Files

Screenshot at Apr 03 14-53-52.png (77.5 KB) Screenshot at Apr 03 14-53-52.png Christian Rath-Ulrich, 2025-04-03 12:54
Actions #1

Updated by Andreas Kienast 23 days ago

  • Status changed from New to Needs Feedback

Could you please provide a stack trace? I just tried to reproduce this, I get a notification that saving the form was not possible.

Actions #2

Updated by Christian Rath-Ulrich 21 days ago ยท Edited

Core: Exception handler (WEB): Uncaught TYPO3 Exception: Exception::__construct(): Argument #1 ($message) must be of type string, null given | TypeError thrown in file /app/vendor/typo3/cms-form/Classes/Mvc/Configuration/YamlSource.php in line 126. Requested URL: https://<URL>/typo3/module/web/FormFormbuilder/FormEditor/saveForm?token=--AnonymizedToken--

I try to reproduce the error on my locale machine but as it's not read-only its not easy

as far as I understand the part of the code the problem is that on line 126 (in version 12) 112 in version 14 of cms-form/Classes/Mvc/Configuration/YamlSource.php see https://github.com/TYPO3/typo3/blob/da29fc6fe375cc03ea870f79697e7a7458de2402/typo3/sysext/form/Classes/Mvc/Configuration/YamlSource.php#L112

if error_get_last() does not return a valid array with a message key, the constructor of the Exception dies

Important site note the system runs on k8s

Actions

Also available in: Atom PDF