coolify/app/Livewire/Project/Database
Andras Bacsai 74c70b431c fix: prevent TypeError in database General components with null server
Nullable server + guard to avoid TypeError/NPE. Don't terminate the app, terminate the bug.

Changes:
- Made Server property nullable (?Server $server = null) in all 8 database General components
- Added guard clause in mount() to check for null server before accessing it
- Displays user-friendly error message when destination server is not configured
- Prevents crashes in methods like isLogDrainEnabled() and sslCertificates()

Fixed components:
- Mariadb, Dragonfly, Clickhouse, Keydb
- Mysql, Mongodb, Redis, Postgresql

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-14 17:04:48 +02:00
..
Backup Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00
Clickhouse fix: prevent TypeError in database General components with null server 2025-10-14 17:04:48 +02:00
Dragonfly fix: prevent TypeError in database General components with null server 2025-10-14 17:04:48 +02:00
Keydb fix: prevent TypeError in database General components with null server 2025-10-14 17:04:48 +02:00
Mariadb fix: prevent TypeError in database General components with null server 2025-10-14 17:04:48 +02:00
Mongodb fix: prevent TypeError in database General components with null server 2025-10-14 17:04:48 +02:00
Mysql fix: prevent TypeError in database General components with null server 2025-10-14 17:04:48 +02:00
Postgresql fix: prevent TypeError in database General components with null server 2025-10-14 17:04:48 +02:00
Redis fix: prevent TypeError in database General components with null server 2025-10-14 17:04:48 +02:00
BackupEdit.php feat(backup): enhance backup job with S3 upload handling and notifications 2025-10-07 15:02:23 +02:00
BackupExecutions.php feat(backup): enhance backup job with S3 upload handling and notifications 2025-10-07 15:02:23 +02:00
BackupNow.php feat(auth): implement authorization checks for database management 2025-08-23 18:50:35 +02:00
Configuration.php feat(auth): implement authorization checks for database management 2025-08-23 18:50:35 +02:00
CreateScheduledBackup.php feat(auth): implement authorization checks for database management 2025-08-23 18:50:35 +02:00
Heading.php feat(auth): implement authorization checks for database management 2025-08-23 18:50:35 +02:00
Import.php Revert "refactor(file-transfer): replace base64 encoding with direct file transfer method in various components for improved clarity and efficiency" 2025-09-15 17:56:48 +02:00
InitScript.php Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00
ScheduledBackups.php feat(auth): implement authorization checks for database management 2025-08-23 18:50:35 +02:00