nextcloud / nextcloud/sharelisting

occ sharing:list --user=myuser not showing all shares

Open
#492 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
19
Forks
6
PR merge metrics
No merged PRs in 30d

Description

occ sharing:list --user=myuser is not showing all my shares, but only the ones by email and internal users. Not the ones by link, though. However, I get them displayed with either occ sharing:list --token=<token>, if I know the token. This seems to be an issue with the filtering, since it is displayed by occ sharing:list, amongst others. :)

My workaround is occ sharing:list | jq '.[] | select(.owner == "<user>")' - that does the trick for me, but might be misleading if I expect the first command to have a complete list.

Version 1.2.0 on NC27.

And: thanks so much for your great work! Your app is a great tool!

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 filtering used by occ sharing:list --user=myuser and compare it with the unfiltered occ sharing:list and token-filtered output. Reproduce the issue on Nextcloud 27 using the commands in the report; done means the user-filtered list also includes link shares owned by that user.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli
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.