coolify/app/Livewire/Project
Andras Bacsai 1499135409 fix: prevent invalid paths from being saved to database
Move compose file validation BEFORE database save to prevent invalid
base directory and docker compose location values from being persisted
when validation fails.

Changes:
- Move compose file validation before $this->application->save()
- Restore original values when validation fails
- Add resetErrorBag() to clear stale validation errors

This fixes two bugs:
1. Invalid paths were saved to DB even when validation failed
2. Error messages persisted after correcting to valid path

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 10:30:04 +01:00
..
Application fix: prevent invalid paths from being saved to database 2025-12-03 10:30:04 +01:00
Database fix: enhance validation for database names and filenames to prevent command injection 2025-11-27 14:51:23 +01:00
New fix: move base directory path normalization to frontend 2025-12-03 10:30:04 +01:00
Resource Fix: Fragile service name parsing in applyServiceApplicationPrerequisites 2025-11-28 17:42:04 +01:00
Service Merge branch 'next' into fix-port-modal-strip-prefixes 2025-12-01 13:43:41 +01:00
Shared Enable timestamps in log display and improve styling for better readability 2025-12-03 09:09:12 +01:00
AddEmpty.php fix(project): update redirect logic after resource creation to include environment UUID 2025-10-07 20:46:32 +02:00
CloneMe.php fix(clone): update destinations method call to ensure correct retrieval of selected destination 2025-09-18 13:44:56 +02:00
DeleteEnvironment.php feat(auth): enhance authorization checks in Livewire components for resource management 2025-08-26 10:27:38 +02:00
DeleteProject.php feat(auth): enhance authorization checks in Livewire components for resource management 2025-08-26 10:27:38 +02:00
Edit.php feat(validation): centralize validation patterns for names and descriptions 2025-08-19 12:14:48 +02:00
EnvironmentEdit.php feat(validation): centralize validation patterns for names and descriptions 2025-08-19 12:14:48 +02:00
Index.php refactor: simplify project data retrieval and enhance OAuth settings handling 2025-10-27 17:03:19 +01:00
Show.php feat(validation): centralize validation patterns for names and descriptions 2025-08-19 12:14:48 +02:00