nextcloud / nextcloud/documentation
OCS autocomplete shareTypes not working / cannot filter guests only
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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