nextcloud / nextcloud/documentation

OCS autocomplete shareTypes not working / cannot filter guests only

Open
#6,749 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement feature: sharing good first issue manual: developer
Dominant language
JavaScript
Stars
628
Forks
2.5k
Avg merge
2d 11h
Merged PRs (30d)
135

Description

Hello everyone,

I'm having a problem with the autocomplete and user search as described here

If I use shareTypes with an s, as described in the docs, then I don't get any results.
If I use shareType without an s then I get results filtered by the search but it doesn't seem like it filters by the shareType.

This is the url I expect to work:
ocs/v2.php/core/autocomplete/get?format=json&shareType[]=8&search=myname

Do you have an idea why it's not working correctly?

Thanks!

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 with the linked OCS autocomplete and user search documentation and the /ocs/v2.php/core/autocomplete/get endpoint described in the issue. Compare the documented shareTypes parameter with the endpoint's accepted parameter and filtering behavior. Done means the documentation and expected guest-only filtering behavior are consistent and the correct request format is clear.

Written by the indexing model from the issue text.

Assessment

Domain
api, documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.