nextcloud / nextcloud/sharelisting

Feature --output doesn't work

Open
#382 1 comment 0 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

Hi!
I'm trying to show info about shares in csv format, but it it doesn't work, output is always in json format.
I try it with Nextcloud 23 and 25, and app version 1.1.0 and 1.1.1

I use command:
sudo -u nginx php occ sharing:list --output csv
Example output:
{
"id": "58",
"file_id": 12160,
"owner": "user1",
"initiator": "user1",
"time": "2023-02-06T07:11:35+00:00",
"permissions": 31,
"path": "/Quality_control 2023",
"name": "Quality_control 2023",
"is_directory": true,
"type": "user",
"recipient": "user2"
},

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 by reproducing the issue with sudo -u nginx php occ sharing:list --output csv on the reported Nextcloud versions and compare it with JSON output. Trace the sharing:list CLI entry point and its output handling. Done means the command emits valid CSV when --output csv is selected, while the existing JSON behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.