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: Send password to owner when password sending fails, regardless of enforcement #50517

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nfebe
Copy link
Contributor

@nfebe nfebe commented Jan 28, 2025

Previously, the sendPasswordToOwner method would only trigger if password enforcement was enabled and sending the password to the recipient failed. This behavior was inconsistent with the intended functionality, as the owner should receive the password whenever sending to the recipient fails, regardless of whether password enforcement is enabled.

This change ensures that the owner is notified of the password whenever sending it to the recipient fails, improving consistency and user experience.

Fixes : #50512

Uses : #50515

@nfebe
Copy link
Contributor Author

nfebe commented Jan 28, 2025

/backport to stable31

@nfebe
Copy link
Contributor Author

nfebe commented Jan 28, 2025

/backport to stable30

@nfebe
Copy link
Contributor Author

nfebe commented Jan 28, 2025

/backport to stable29

Copy link
Member

@provokateurin provokateurin left a comment

Choose a reason for hiding this comment

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

Tests need to be adjusted

@nfebe nfebe force-pushed the fix/50512/send-password-2-owner branch from 9e6fdc5 to beacb35 Compare January 29, 2025 11:40
nfebe added 2 commits January 29, 2025 12:42
Previously, the share owner notification email did not display the recipient email addresses,
making it difficult for the owner to know who the share was sent to.
This fix ensures that the recipient email addresses are included in the notification email.

Signed-off-by: nfebe <[email protected]>
…f enforcement

Previously, the `sendPasswordToOwner` method would only trigger if password enforcement was enabled and sending the password to the recipient failed. This behavior was inconsistent with the intended functionality, as the owner should receive the password whenever sending to the recipient fails, regardless of whether password enforcement is enabled.

This change ensures that the owner is notified of the password whenever sending it to the recipient fails, improving consistency and user experience.

Signed-off-by: nfebe <[email protected]>
@nfebe nfebe force-pushed the fix/50512/send-password-2-owner branch from beacb35 to 362ba1a Compare January 29, 2025 11:45
@provokateurin
Copy link
Member

Needs a rebase (not sure why the other commit still shows up here) and tests need to be adjusted.

@nfebe
Copy link
Contributor Author

nfebe commented Jan 29, 2025

Needs a rebase (not sure why the other commit still shows up here) and tests need to be adjusted.

This was branched of the ticket mentioned in the description as "uses".

  • Since "uses" is now merged a rebase against master would remove the commit.
  • I have taken note of the test failures and would adjust.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🏗️ In progress
2 participants