Fix findings of the full security and bug scan
CMS quality / php (8.2) (push) Waiting to run
CMS quality / php (8.4) (push) Waiting to run
CMS quality / browser (push) Waiting to run
CMS quality / mysql (push) Waiting to run

- Update Symfony to 7.4.24/25 and Twig to 3.31.1 (19 advisories), npm ws
- Forms: honeypot no longer named "website" (a field labelled Website
  silently dropped every submission), reserve technical field names,
  keep single-line fields on one line
- Installer: English installations stored pages under "en" and served 404
- Schedules from before ADR 116 no longer publish the latest draft
- Moving a page: refuse reserved addresses, claim the version atomically
- Content packages: check close(), require all media, verify extracted
  bytes, clean up on failure, clear the media mirror after import
- Updater: failed copies in public/ and plugins/ abort and roll back public/
- Restore: missing media fail the restore; cms:restore keeps maintenance on
- Editor preview honours the page's header and footer choice

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
kantarciandClaude Opus 5.5 committed 2026-12-03 20:03:43 +01:00
1 parent 4a33090905
commit 33dc413ef6
22 files changed
+659 -246

No files matched your search

+19
View File
@@ -143,6 +143,25 @@ final class BackupTest extends TestCase
self::assertFileExists($this->root.'/var/media/bild-480.webp');
}
public function testAMediaFileThatCannotBeWrittenBackFailsTheRestore(): void
{
$backup = $this->backup->create('Test');
// Die Datei lässt sich nicht zurückschreiben (hier: ein Ordner an ihrer Stelle; live
// fehlende Schreibrechte). Vorher zählte die Wiederherstellung sie still nicht mit und
// meldete Erfolg, obwohl die Datenbank auf das Bild verweist.
unlink($this->root.'/var/media/bild-480.webp');
mkdir($this->root.'/var/media/bild-480.webp');
$result = $this->backup->restore($backup['name']);
rmdir($this->root.'/var/media/bild-480.webp');
self::assertFalse($result['ok']);
$media = array_values(array_filter($result['steps'], static fn (array $s): bool => 'Medien ergänzen' === $s['step']))[0] ?? null;
self::assertNotNull($media);
self::assertFalse($media['ok']);
self::assertStringContainsString('bild-480.webp', $media['detail']);
}
public function testATamperedBackupIsNotRestored(): void
{
$backup = $this->backup->create('Test');