#106506Save of a form results in 503 on read only systems
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.
Reviews 2
Files 1
History 513
-
Andreas Kienast commented and changed status
NewNeeds Feedback <span data-processor="relativetime" data-value="2025-04-04T14:04:56+00:00" > 04/04/25, 14:04 </span> -
Christian Rath-Ulrich commented <span data-processor="relativetime" data-value="2025-04-07T07:16:16+00:00" > 04/07/25, 07:16 </span>
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—</url>
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
-
Gerrit Code Review pushed patch set 1 for main to change 91143 status
Needs FeedbackUnder Review <span data-processor="relativetime" data-value="2025-10-17T17:55:27+00:00" > 10/17/25, 17:55 </span> -
Gerrit Code Review pushed patch set 2 for main to change 91143 <span data-processor="relativetime" data-value="2025-10-17T18:09:00+00:00" > 10/17/25, 18:09 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 91143 <span data-processor="relativetime" data-value="2025-10-17T18:18:58+00:00" > 10/17/25, 18:18 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 91143 <span data-processor="relativetime" data-value="2025-10-17T18:33:58+00:00" > 10/17/25, 18:33 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 91143 <span data-processor="relativetime" data-value="2025-10-19T17:18:49+00:00" > 10/19/25, 17:18 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 91143 <span data-processor="relativetime" data-value="2025-10-23T09:37:48+00:00" > 10/23/25, 09:37 </span>
-
Elias Häußler commented <span data-processor="relativetime" data-value="2025-10-23T10:22:10+00:00" > 10/23/25, 10:22 </span>
Note that this affects only form definitions which are stored in extensions (as part of a configured
allowedExtensionPaths).For reproduction, form definitions must not be writable (or set to read-only via
chmod 600), while the related folder must be writable (e.g.chmod 755). -
Gerrit Code Review pushed patch set 7 for main to change 91143 <span data-processor="relativetime" data-value="2025-10-23T10:30:31+00:00" > 10/23/25, 10:30 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 91244 <span data-processor="relativetime" data-value="2025-10-24T17:05:55+00:00" > 10/24/25, 17:05 </span>
-
Josua Vogel commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-10-24T17:20:08+00:00" > 10/24/25, 17:20 </span>Applied in changeset commit:706536d7df353a288387a7e83b81b706ce6cfccb.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T14:22:03+00:00" > 12/02/25, 14:22 </span>
Could you please provide a stack trace? I just tried to reproduce this, I get a notification that saving the form was not possible.