Skip to content

filter ACL forbidden paths from search query#4745

Open
icewind1991 wants to merge 3 commits into
masterfrom
acl-search-filtering
Open

filter ACL forbidden paths from search query#4745
icewind1991 wants to merge 3 commits into
masterfrom
acl-search-filtering

Conversation

@icewind1991

Copy link
Copy Markdown
Member

Currently, the logic for removing files the user doesn't have access to from search is done as a post-processing step.

While this filters out the correct entries, it means that the number of returned results is less than the limit asked for (or even 0). Which the search logic interprets as there being no more results.

By applying the filtering as part of the query, we return the number of results asked for.

@icewind1991 icewind1991 added this to the Nextcloud 34 milestone Jun 4, 2026
@icewind1991 icewind1991 requested a review from provokateurin June 4, 2026 19:25
@icewind1991 icewind1991 added the 3. to review Items that need to be reviewed label Jun 4, 2026
@icewind1991

Copy link
Copy Markdown
Member Author

Fixes nextcloud/server#60306

Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Items that need to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants