Skip to content

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

Merged
come-nc merged 1 commit into
masterfrom
fix/files-ownership-deny
Jun 17, 2024
Merged

fix(files): Properly handle denied ownership transfers#45884
come-nc merged 1 commit into
masterfrom
fix/files-ownership-deny

Conversation

@susnux

@susnuxsusnux commented Jun 14, 2024

Copy link
Copy Markdown
Contributor

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>
@susnuxsusnux added this to the Nextcloud 30 milestone Jun 14, 2024
@susnux
susnux requested review from a team, ArtificialOwl, SystemKeeper, nfebe and yemkareems and removed request for a teamJune 14, 2024 15:39
@susnux

Copy link
Copy Markdown
ContributorAuthor

/backport to stable29

@susnux

Copy link
Copy Markdown
ContributorAuthor

/backport to stable28

@susnux
susnux requested a review from come-ncJune 14, 2024 15:40

@SystemKeeperSystemKeeper left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested and works:
image

@botsarenthuman

Copy link
Copy Markdown

Is there a test to cover this actually works?

@blizzzblizzz mentioned this pull request Jul 24, 2024
Sign up for freeto 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

@susnux@botsarenthuman@SystemKeeper@come-nc