occ config:system:set should return a different output when unchanged
Open
Nobody has claimed this yet.
1. to develop
enhancement
feature: occ
good first issue
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
Steps
- Run
occ config:system:set mail_smtpmode --value mail_smtpmode - Run it again
Expected result
An output with "Already set"
Actual result
Exact same output.
Version
Nextcloud 20.0.2
Context
When using tools like Ansible, one might want to know whether a value was changed or not to be able to set the changed_when clause there based stdout result.
Also needs to be applied to the other occ config:*:set commands.
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 occ config:system:set entry point and compare the other occ config:*:set commands mentioned in the issue. Reproduce the command twice, then verify that unchanged values produce an "Already set" output while changed values retain their existing behavior across the set commands.
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
- 35/100