Conversation
|
@cssjoe says:
I'm going to put this PR on hold so we can get some releases out today.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #447 +/- ##
=========================================
Coverage 25.46% 25.46%
Complexity 2920 2920
=========================================
Files 202 202
Lines 14698 14697 -1
=========================================
Hits 3743 3743
+ Misses 10955 10954 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This may need better result messages.
|
|
Status update (Aug 2026 triage): Still open and still relevant — |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Permission prep stops after first failure
- Changed set_writable_permissions to collect all chmod errors instead of returning false on first failure, ensuring all archive files get permission checks before restore continues.
Or push these changes by commenting:
@cursor push 2055cf0cfb
Preview (2055cf0cfb)
diff --git a/admin/class-boldgrid-backup-admin-restore-helper.php b/admin/class-boldgrid-backup-admin-restore-helper.php
--- a/admin/class-boldgrid-backup-admin-restore-helper.php
+++ b/admin/class-boldgrid-backup-admin-restore-helper.php
@@ -261,12 +261,11 @@
__( 'Permission denied. Unable to restore the following file: %1$s', 'boldgrid-backup' ),
$full_path
);
- return false;
}
}
}
- return true;
+ return empty( $this->errors );
}
/**You can send follow-ups to the cloud agent here.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 69c3568. Configure here.
| if ( ! $this->restore_helper->set_writable_permissions( $info['filepath'] ) ) { | ||
| $error_message = $this->restore_helper->get_last_error(); | ||
| $this->logger->add( $error_message ); | ||
| return [ 'error' => $error_message ]; |
There was a problem hiding this comment.
Permission prep stops after first failure
Medium Severity
set_writable_permissions still returns on the first chmod failure, so later archive paths are never prepared. Restore now continues into unzip_file anyway, which can then fail on files that would have been writable if permission prep had finished.
Reviewed by Cursor Bugbot for commit 69c3568. Configure here.



Note
Medium Risk
Changes pre-restore failure handling for a critical path; restores may proceed with permission issues that previously blocked the operation, though unzip and later steps can still fail.
Overview
Archive restore no longer stops when
set_writable_permissionsfails (withZipArchiveavailable). The failure message is still written to the restore log, but the flow proceeds to unzip—matching the existing behavior whenZipArchiveis missing.This addresses cases where permission prep failed even though the restore could still complete successfully.
Reviewed by Cursor Bugbot for commit 69c3568. Bugbot is set up for automated code reviews on this repo. Configure here.