nextcloud / nextcloud/calendar

Missing Sharee Groups entries in sharing search

Open
#5,691 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. to triage bug Feature: Sharing
Dominant language
JavaScript
Stars
1.2k
Forks
332
Avg merge
16h 13m
Merged PRs (30d)
137

Description

Steps to reproduce

(I must note, that it might be difficult to reproduce, because the nextcloud instance has several thousands groups.)

  1. Open the calendar edit/sharing modal
  2. Enter a exact match in the SharingSearch Field
  3. Check API response
Expected behavior

It would be nice to also make the exact matches available for selection (returned from /ocs/v2.php/apps/files_sharing/api/v1/sharees?format=json&search=115&perPage=200&itemType=principals).

Actual behaviour

The exact match is not available for selection.

Calendar app version

4.5.1

CalDAV-clients used

n.a.

Browser

firefox 115.6.0esr

Client operating system

Debian Linux

Server operating system

No response

Web server

None

Database engine version

None

PHP engine version

None

Nextcloud version

27.1.1

Updated from an older installed version or fresh install

None

List of activated apps

No response

Nextcloud configuration

No response

Web server error log

No response

Log file

No response

Browser log

/ocs/v2.php/apps/files_sharing/api/v1/sharees?format=json&search=102&perPage=200&itemType=principals returns in the payload under "ocs":{"data":{"exact":{"groups":[]...}}} the requested group e.g. named "123". But only the fuzzy search results are available "ocs":{"data":{"groups":[]...}}}. Fuzzy search result number may vary. Just in some but not all cases the exact match is missing.

Additional info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the calendar edit/sharing modal and its SharingSearch field, then trace how the /ocs/v2.php/apps/files_sharing/api/v1/sharees response is converted into selectable groups. Verify the exact group entries are included alongside fuzzy results, using the reported API response and reproduction steps to confirm the fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.