Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command to scan trashbin for database inconsistencies #37149

Closed
wants to merge 1 commit into from

Conversation

come-nc
Copy link
Contributor

@come-nc come-nc commented Mar 9, 2023

  • Resolves: #

Summary

Add a command to scan trashbin database table and filesystem and check that both matches. This helps diagnostic of complex situation.

TODO

  • ...

Checklist

@come-nc come-nc added enhancement 2. developing Work in progress labels Mar 9, 2023
@come-nc come-nc self-assigned this Mar 9, 2023
@come-nc come-nc added this to the Nextcloud 27 milestone Mar 9, 2023
This was referenced May 3, 2023
@come-nc come-nc modified the milestones: Nextcloud 27, Nextcloud 28 May 11, 2023
@skjnldsv skjnldsv mentioned this pull request Nov 1, 2023
@blizzz blizzz mentioned this pull request Nov 6, 2023
@come-nc come-nc modified the milestones: Nextcloud 28, Nextcloud 29 Nov 7, 2023
@Altahrim Altahrim mentioned this pull request Mar 12, 2024
@come-nc come-nc modified the milestones: Nextcloud 29, Nextcloud 30 Mar 12, 2024
This was referenced Jul 30, 2024
This was referenced Aug 5, 2024
\OC_User::setUserId($uid);

$filesInTrash = Helper::getTrashFiles('/', $uid);
$filesInTrashDatabase = Trashbin::getLocations($uid);

Check failure

Code scanning / Psalm

UndefinedMethod Error

Method OCA\Files_Trashbin\Trashbin::getlocations does not exist
@skjnldsv skjnldsv mentioned this pull request Aug 13, 2024
@skjnldsv skjnldsv closed this Aug 14, 2024
@skjnldsv skjnldsv removed this from the Nextcloud 30 milestone Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants