bug: BackupTable deletes archive file before confirming DB row deletion #76
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: HIGH
BackupTable::delete()calls@unlink($this->absolute_path)beforeparent::delete($pk). If the DB delete fails, the archive file is permanently lost but the record still showsfilesexist = 1.Fix
Reverse the order — delete DB row first, then file:
File
src/Table/BackupTable.php:42-47