fix: DatabaseImporter silently continues on SQL execution errors #188
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?
Summary
DatabaseImporter.phpcatches SQL execution errors in the import loop and logs them but continues to the next statement. A partially-imported database is left in an inconsistent state with no clear indication to the user that the import was incomplete.Location
source/packages/com_mokosuitebackup/src/Engine/DatabaseImporter.phpFix
warning(notcomplete) if any statements failedBranch created:
feature/188-fix-databaseimporter-silently-continues-Confirmed in 02.56.05 — keep open.
DatabaseImporter::import()still swallows errors: the catch atDatabaseImporter.php:97-102(and the tail-statement path at:116-118) only callserror_log(...)and continues. The method returns just$statementsExecuted(:124) with no failure count, no stop-on-error mode, and no way to surface a warning restore status. None of the three requested remediations are implemented.