nextcloud / nextcloud/serverinfo
Expose Nextcloud AIO version if present
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 130
- Forks
- 64
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 49
Description
How to use GitHub
- Please use the 👍 reaction to show that you are interested into the same feature.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Feature request
Which Nextcloud Version are you currently using:
32.0.5 via Nextcloud AIO 12.6.1
Is your feature request related to a problem? Please describe.
As described in nextcloud/all-in-one#7158, I would like to read out the Nextcloud AIO version with an external tool.
Describe the solution you'd like
I hope this could be added into the response from /ocs/v2.php/apps/serverinfo/api/v1/info. The Nextcloud AIO version is available to the Nextcloud container as an environment variable (NC_AIO_VERSION) and in the system config. So it should be possible to check if that value is set and expose it, if it is.
Describe alternatives you've considered
As suggested in the discussion, it would be possible to write a script to retrieve and expose the value manually, but I think having this supported "natively" would be much easier.
Additional context
nextcloud/all-in-one#7436
nextcloud/all-in-one#7437
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 at the /ocs/v2.php/apps/serverinfo/api/v1/info endpoint and inspect how system configuration values are added to its response. Check how NC_AIO_VERSION or the corresponding system-config value is detected. Done means the response exposes the AIO version when it is set and remains valid when it is absent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100