-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Get access list share by email recipients #32631
Get access list share by email recipients #32631
Conversation
* | ||
* The access list to '/folder1/folder2/fileA' **without** $currentAccess is: | ||
* [ | ||
* users => ['user1', 'user2', 'user4'], | ||
* remote => bool, | ||
* public => bool | ||
* mail => bool | ||
* mail => ['email1@maildomain1', 'email2@maildomain2'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is an api break :( not sure if we can change this, but if it never worked it's probably fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it certainly is an API break. I went through the history and it never actually used the correct array key.
Hi @ASerbinski Thanks for your pull request 👍 Sorry for not getting back to you sooner. |
Would you mind splitting the bug fix and enhancement into own pull requests? As Carl mentioned, the enhancement comes with an API break. |
a9c0f18
to
3191654
Compare
e6f987d
to
53bfa7c
Compare
53bfa7c
to
dfe8e45
Compare
Failing test seem related, for example:
|
@ASerbinski see comment from blizzz #32631 (comment) |
37d9142
to
1c92874
Compare
Added a commit based on php documentation; https://www.php.net/manual/en/pdostatement.rowcount.php "For statements that produce result sets, such as SELECT, the behavior is undefined" Passing applicable unit test;
Other failures are unrelated and seem to refer to some kind of network failure. |
Previously was returning only boolean true if the Node was shared by email, or false if not. Now provides an array containing the list of email share recipients. Signed-off-by: Adam Serbinski <[email protected]>
This allows the share URI to be regenerated. Signed-off-by: Adam Serbinski <[email protected]>
Signed-off-by: Adam Serbinski <[email protected]>
…'mail' To preserve prior behaviour where 'public' was set 'true' if there are any mail recipients. The 'mail' key will be an array of email recipients. Signed-off-by: Adam Serbinski <[email protected]>
PDOStatement::rowCount behavior is undefined for SELECT statements for some database types, therefore manually set the value for 'public' based on actual results fetched. Signed-off-by: Adam Serbinski <[email protected]>
1c92874
to
f45eb75
Compare
@AndyScherzinger is it good now? |
I am AFK but asked @sorbaugh to lend a hand in getting it merged |
Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 |
@ASerbinski merged 👍 Fancy writing a piece for the documentation repo to make the command easy to discover for others? 🙏 Thanks for the work on implementing this feature and for yet another contribution 🎉💯🚀 |
Thank you very much! |
Close #32629
Summary:
Return the recipients for an email share.
We already have
mail
, but it's unused / broken.The backstory:
In #2834
mail => bool
was documented but not implemented.Commit to change mail to public: cab4111