Issue Bug Closed

#106506Save of a form results in 503 on read only systems

Christian Rath-Ulrich 04/03/25, 12:54 updated 12/02/25, 14:22

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

  1. Andreas Kienast commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2025-04-04T14:04:56+00:00" > 04/04/25, 14:04 </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.

  2. 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

  3. Gerrit Code Review pushed patch set 1 for main to change 91143 status Needs Feedback Under Review <span data-processor="relativetime" data-value="2025-10-17T17:55:27+00:00" > 10/17/25, 17:55 </span>

  4. 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).

  5. Josua Vogel commented and changed status Under Review Resolved done 0 % 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.