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

fix(files): Properly handle denied ownership transfers #45884

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Jun 14, 2024

Summary

When the receiver denies the transfer the notification handler was missing, so no notification was created for the transfer owner.

But also the internal notification was created two times:

  1. When rejecting the transfer
  2. By the reject function when dismissing the notification

This is fixed by only relying on the dismiss function.


image

Checklist

When the receiver denies the transfer the notification handler was missing,
so no notification was created for the transfer owner.

But also the internal notification was created two times:
1. When rejecting the transfer
2. By the reject function when dismissing the notification

This is fixed by only relying on the dismiss function.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux added this to the Nextcloud 30 milestone Jun 14, 2024
@susnux susnux requested review from a team, ArtificialOwl, Fenn-CS, yemkareems and SystemKeeper and removed request for a team June 14, 2024 15:39
@susnux
Copy link
Contributor Author

susnux commented Jun 14, 2024

/backport to stable29

@susnux
Copy link
Contributor Author

susnux commented Jun 14, 2024

/backport to stable28

@susnux susnux requested a review from come-nc June 14, 2024 15:40
Copy link
Contributor

@SystemKeeper SystemKeeper left a comment

Choose a reason for hiding this comment

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

Tested and works:
image

@come-nc come-nc merged commit e01fbff into master Jun 17, 2024
164 checks passed
@come-nc come-nc deleted the fix/files-ownership-deny branch June 17, 2024 07:42
@botsarenthuman
Copy link

Is there a test to cover this actually works?

@blizzz blizzz mentioned this pull request Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Notification was not parsed by any notifier [app: files, subject: transferownershipRequestDenied]
4 participants