nextcloud / nextcloud/sharelisting

--filter=recipient not working

Open
#491 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

sudo -u www-data php .occ sharing:list --user myuser --filter recipient does not work as expected while sudo -u www-data php .occ sharing:list --user myuser --filter owner shows all the shares, where myuser is the the value of the owner-key. However, there are shares where there is the value "myuser" in the key "recipient", but the output is "[]". Version 1.2.0 on NC 27. This is not the expected behaviour, isn't it?

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 .occ sharing:list command and reproduce the difference between --filter recipient and --filter owner using the example command and NC 27 setup. Trace how the recipient value is selected and confirm that shares containing myuser under recipient appear in the output; done when the recipient filter returns those shares.

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.