Uh oh!
There was an error while loading. Please reload this page.
fix(ShareAPI): Send mails for mail shares by default - #48381
Conversation
33e46ad to
6553268CompareUh oh!
There was an error while loading. Please reload this page.
provokateurin
left a comment
There was a problem hiding this comment.
Fix makes sense, curious how it broke though.
Uh oh!
There was an error while loading. Please reload this page.
6553268 to
8103393Comparenfebe
commented
Sep 26, 2024
/backport to stable30 |
8103393 to
410854fCompare410854f to
3f7528bComparee2fa7e1 to
9f0eda3Compareprovokateurin
commented
Sep 30, 2024
Why rebase it so often? |
Some tests that seem unrelated (cypress especially are failing consistently)... Re-basing triggers a rerun, but also adds the latest updates on master in case something that broke the tests has been resolved. (Because a bunch of other PRs are failing tests too)... Now taking a closer to see if something is indeed broken. |
9f0eda3 to
aab671fCompare
nfebe
left a comment
There was a problem hiding this comment.
This breaks "File Requests"
server/apps/files_sharing/lib/Controller/ShareAPIController.php
Lines 721 to 727 in 363ba6b
Why?
- File requests are sent with an empty string for
shareWithwhich the backend uses to check if a shareWith value is available (poorly so) - The file requests shareType is 4, which is mail share and I am not sure why that is.
aab671f to
91a3ce1CompareUh oh!
There was an error while loading. Please reload this page.
91a3ce1 to
e089e40Comparee089e40 to
a154393Comparenfebe
commented
Oct 23, 2024
/compile |
susnux
commented
Oct 24, 2024
Agree, we can not change default behavior as this would be a breaking change. |
Uh oh!
There was an error while loading. Please reload this page.
dd82bef to
c1b0f46CompareUh oh!
There was an error while loading. Please reload this page.
c1b0f46 to
e69c1a5CompareIt looks like, the frontend it needs to provide the `sendMail` param for the backend to decide wether mails would be sent. Our UI does not have that at the moment so it should default to sending emails always for mail shares. Not exactly sure how this was handled earlier but this is a good starting point. Resolves : #48012 Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
e69c1a5 to
e2d2a17CompareUh oh!
There was an error while loading. Please reload this page.
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
Summary
It looks like, the frontend it needs to provide the
sendMailparam for the backend to decide whether mails would be sent.Our UI does not have that at the moment so it should default to sending emails always for mail shares.
Not exactly sure how this was handled earlier but this is a good starting point.
Resolves : #48012
Checklist