coolify/app/Livewire/Project
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
..
Application refactor(validation): tokenize shell-safe command pattern 2026-04-20 22:00:41 +02:00
Database fix(database): tighten Postgres init script filename handling 2026-04-20 21:26:34 +02:00
New refactor: scope destination and resource lookups by current team 2026-04-19 11:55:12 +02:00
Resource refactor: scope destination and resource lookups by current team 2026-04-19 11:55:12 +02:00
Service fix(service): block UI editing of file volumes exceeding 5 MiB 2026-04-28 22:36:56 +02:00
Shared refactor(volumes): validate input and escape shell args 2026-04-20 11:27:10 +02:00
AddEmpty.php fix(models): replace forceFill/forceCreate with fill/create and add fillable guards 2026-03-31 13:45:31 +02:00
CloneMe.php fix(models): replace forceFill/forceCreate with fill/create and add fillable guards 2026-03-31 13:45:31 +02:00
DeleteEnvironment.php refactor(redirect): replace redirect calls with redirectRoute helper for consistency 2025-12-26 13:29:59 +01:00
DeleteProject.php refactor: scope server and project queries to current team 2026-03-28 12:29:08 +01:00
Edit.php feat(validation): centralize validation patterns for names and descriptions 2025-08-19 12:14:48 +02:00
EnvironmentEdit.php refactor(redirect): replace redirect calls with redirectRoute helper for consistency 2025-12-26 13:29:59 +01:00
Index.php refactor: replace queries with cached versions for performance improvements 2025-12-08 13:39:33 +01:00
Show.php fix(models): replace forceFill/forceCreate with fill/create and add fillable guards 2026-03-31 13:45:31 +02:00