coolify/app/Livewire/Project/Service
Andras Bacsai eaaf258f25 fix(service): block UI editing of file volumes exceeding 5 MiB
Large host files mounted via Docker volumes caused the storages page to
become unusable — full file content was stored in the encrypted mediumText
column and serialised into the Livewire payload, crashing the browser.

- Add MAX_CONTENT_SIZE (5 MiB), BINARY_PLACEHOLDER, and TOO_LARGE_PLACEHOLDER
  constants to LocalFileVolume
- Check remote file size via stat/wc before cat in loadStorageOnServer and
  saveStorageOnServer; store placeholder instead of content when limit exceeded
- Expose is_too_large computed attribute (appended for Livewire serialisation)
- Guard submit, instantSave, and syncData in FileStorage Livewire component
- Truncate oversized content in Storage::refreshStorages to prevent payload bloat
- Show distinct warning banner in file-storage blade; mark textarea readonly and
  hide Save/Convert buttons for too-large files
- Add unit tests covering constants, computed flags, and toArray serialisation

Fixes #4701
2026-04-28 22:36:56 +02:00
..
Configuration.php fix: prevent duplicate services on image change and enable real-time UI refresh 2025-10-14 10:12:36 +02:00
DatabaseBackups.php feat: Refactor service database management and backup functionalities 2026-01-02 16:29:48 +01:00
EditCompose.php Complete Livewire legacy model binding migration (25+ components) 2025-10-13 15:38:59 +02:00
EditDomain.php refactor: streamline required port retrieval in EditDomain and ServiceApplicationView; add environment_variables method in ServiceApplication 2025-11-10 14:15:53 +01:00
FileStorage.php fix(service): block UI editing of file volumes exceeding 5 MiB 2026-04-28 22:36:56 +02:00
Heading.php Fix loading icon showing during automatic status checks 2025-10-24 12:58:52 +02:00
Index.php fix(validation): add input validation for database public port and proxy timeout 2026-03-29 19:11:28 +05:30
StackForm.php refactor: remove duplicated validation messages 2026-01-05 13:15:14 +01:00
Storage.php fix(service): block UI editing of file volumes exceeding 5 MiB 2026-04-28 22:36:56 +02:00