-
-
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
Bugfix/32630/get access list use correct array key #36305
Bugfix/32630/get access list use correct array key #36305
Conversation
Thank you very much 👍 Can you have a look at the failing test:
|
bc2c24e
to
b9eec92
Compare
Thank you 👍 Please revert the changes to composer.lock |
Hi @kesselb ; that commit seems to have been brought in from master during rebase? |
b9eec92
to
cc60f3b
Compare
cc60f3b
to
9e48b82
Compare
This was using the array key "public", which collided with the array key used for share-by-link in DefaultShareProvider. Now using correct key "mail". Signed-off-by: Adam Serbinski <[email protected]>
Change array key from public to mail. Signed-off-by: Adam Serbinski <[email protected]>
9e48b82
to
9a567fe
Compare
@kesselb ; think I cleared it up by rebasing again. |
Thank you 👍 I read the discussion in #2834 to understand server/lib/private/Share20/Manager.php Lines 1761 to 1763 in f5c361c
The above code will "merge" the values together. I believe that's good news for your other pull request. |
Hi @kesselb ; I believe that the documentation is correct and that the PR #2834 you referenced is from a more primitive state before the 'mail' key was added. Per @schiessle ; "... To make it more generic we could also add another key 'mail' to the array, which would probably be the better solution." |
The documentation for
I guess that was an idea, but not done. The takeaway for your pull request to list the mail shares for a node is to keep the current behavior (add public = true when at least one mail share exist) and add the mail attribute to the result. I'm unsure if we need this pr. There is nothing broken to be fixed apart from the documentation. Sorry, for asking you to create a pull request for this change. |
Summary
Switch to correct array key in ShareByMailProvider/getAccessList -- should be 'mail' not 'public'.