Skip to content

fix(files): Retry deleting a file if currently locked - #44901

Closed
susnux wants to merge 2 commits into
masterfrom
fix/retry-delete-if-locked
Closed

fix(files): Retry deleting a file if currently locked#44901
susnux wants to merge 2 commits into
masterfrom
fix/retry-delete-if-locked

Conversation

@susnux

Copy link
Copy Markdown
Contributor

Resolves: #44631

Summary

If a file is currently locked, wait and retry the delete operation.
Also add a user message so to inform the user.

Checklist

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnuxsusnux added this to the Nextcloud 30 milestone Apr 17, 2024
@susnux
susnux requested review from a team and PytalApril 17, 2024 18:08
@susnux
susnux requested a review from skjnldsv as a code ownerApril 17, 2024 18:08
@susnux
susnux requested review from nfebe and szaimen and removed request for a teamApril 17, 2024 18:08
@susnux

Copy link
Copy Markdown
ContributorAuthor

/backport to stable29

@PytalPytal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would mean that a deletion would be retried infinitely until page reload in the case that the file never unlocks? Seems strange and would be better to just tell the user to retry in 10s or contact sysadmin no?

@skjnldsvskjnldsv added 2. developing Work in progress stale Ticket or PR with no recent activity and removed 3. to review Waiting for reviews labels Jul 27, 2024
This was referenced Jul 30, 2024
This was referenced Aug 5, 2024
@skjnldsvskjnldsv mentioned this pull request Aug 13, 2024
@susnuxsusnux closed this Nov 13, 2024
@susnux
susnux deleted the fix/retry-delete-if-locked branch November 13, 2024 10:55
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developingWork in progressbackport-requestbugfeature: filesstaleTicket or PR with no recent activity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: delete action failed - cannot delete or move a file

3 participants

@susnux@Pytal@skjnldsv