nextcloud / nextcloud/sharelisting
Feature --output doesn't work
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
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 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