Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Sep 26, 2025

Summary

For restricting autocompletion of sharing we have various options, some of them got forgotten in the Vue migration.
Those are added back to the ui.

Then added the missing method to the share manager, the email and second user dn methods already existed but the user id one was missing. Also improved the doc blocks to make it clearer what those values mean.

Finally this fixes the user plugin to also include full-matches when group enumeration was enabled.

Checklist

@susnux susnux added this to the Nextcloud 33 milestone Sep 26, 2025
@susnux susnux requested review from a team as code owners September 26, 2025 09:37
@susnux susnux requested review from nfebe and szaimen and removed request for a team September 26, 2025 09:37
@susnux susnux added the bug label Sep 26, 2025
@susnux susnux requested a review from sorbaugh September 26, 2025 09:37
@susnux susnux added 3. to review Waiting for reviews feature: sharing labels Sep 26, 2025
@susnux susnux requested review from Altahrim and removed request for a team September 26, 2025 09:37
@susnux
Copy link
Contributor Author

susnux commented Sep 26, 2025

/backport to stable32

@susnux
Copy link
Contributor Author

susnux commented Sep 26, 2025

/backport to stable31

@susnux susnux force-pushed the fix/sharing-results-collaboration branch from 81fc78d to 80ae8f5 Compare September 26, 2025 09:38
Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

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

🐘

|| ($this->shareeEnumerationFullMatchEmail && strtolower($userEmail ?? '') === $lowerSearch))
&& $lowerSearch !== ''
&& (
strtolower($uid) === $lowerSearch
Copy link
Collaborator

Choose a reason for hiding this comment

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

I was wondering if strcasecmp is better but it seems similar :)

Add missing `matchUserId` method for full-match-autocomplete options
and update docs to make it clearer what each options exactly means.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
When searching we need to:
1. check if sharing is limited to groups
  - if yes only include those
  - otherwise continue
2. check if there are restrictions to groups or phonebook
3. check if full match is included

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the fix/sharing-results-collaboration branch from 80ae8f5 to 5c7ca58 Compare September 26, 2025 16:26
@susnux
Copy link
Contributor Author

susnux commented Sep 26, 2025

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@susnux susnux merged commit 3d97549 into master Sep 26, 2025
217 of 222 checks passed
@susnux susnux deleted the fix/sharing-results-collaboration branch September 26, 2025 17:25
@susnux susnux added the pending documentation This pull request needs an associated documentation update label Oct 1, 2025
@skjnldsv skjnldsv modified the milestones: Nextcloud 33, Nextcloud 32 Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug feature: sharing pending documentation This pull request needs an associated documentation update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants