Commit Graph

819 Commits (jtr/fix-public-exceptions-http-codes)

Author SHA1 Message Date
Maxence Lange 9380375cc6 feat(lexicon): add note and key-details
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2025-07-29 08:15:08 +07:00
Kate aca5361e86
Merge pull request #53944 from nextcloud/chore/too-many-arguments 2025-07-28 10:49:52 +07:00
Maxence Lange 33bff30e1d feat(lexicon): moving out from unstable
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2025-07-24 15:56:33 +07:00
provokateurin 5bd626bd40
chore: Fix all method calls with too many arguments
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-07-22 12:34:49 +07:00
Maxence Lange e64be71e52 feat(lexicon): preset()
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2025-07-15 11:29:33 +07:00
John Molakvoæ 1bc1902476
Merge pull request #53887 from nextcloud/fix/lower-email-case 2025-07-11 09:03:05 +07:00
Côme Chilliet 7127ac4b43
fix: Replace OC_App::loadApp calls by IAppManager
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-07-10 11:40:27 +07:00
skjnldsv 027471b146 fix: force lowercase emails
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-07-10 09:10:01 +07:00
Ferdinand Thiessen 5981b7eb51
chore: apply new CSFixer rules
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>

# Conflicts:
#	apps/settings/lib/SetupChecks/PhpOpcacheSetup.php
2025-07-01 16:26:50 +07:00
Robin Appelman 3fa81d0dc1
Merge pull request #52880 from nextcloud/memcache-commands
Add commands to set/get/delete/clear the distributed memcache
2025-06-25 13:38:33 +07:00
Joas Schilling a957e3a2c2
feat(occ): Add commands to list all routes and match a single one
Signed-off-by: Joas Schilling <coding@schilljs.com>
2025-06-25 08:19:08 +07:00
Robin Appelman b5b2eb9da7 feat: add command to clear memcache
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-06-24 16:27:14 +07:00
Robin Appelman 131115fb6a feat: add command to delete memcache key
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-06-24 16:27:14 +07:00
Robin Appelman 8689a4ad2a feat: add commands to get and set memcache values
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-06-24 16:27:14 +07:00
Robin Appelman d61ec62ae7 refactor: split off value casting out of config:system:set command
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-06-24 16:27:14 +07:00
Maxence Lange e39ab65239 feat(lexicon): migrate config key/value
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2025-06-24 12:10:57 +07:00
provokateurin ed3868932f
fix(core): Make --password-from-env work with NC_PASS everywhere
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-06-20 11:21:27 +07:00
provokateurin b95701d4c6
fix(core): Make OC_PASS actually work for occ user:auth-tokens:add --password-from-env
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-06-20 11:20:37 +07:00
Salvatore Martire e5b34e5392 feat: allow reading profile properties from occ
This change adds support for reading profile information through the occ
command, and updates the corresponding test.

Signed-off-by: Salvatore Martire <4652631+klarkent@users.noreply.github.com>
2025-06-17 12:33:03 +07:00
Marcel Müller cf1eed2769
Merge pull request #52909 from nextcloud/feat/noid/check-integrity-all-apps
feat(integrity): Allow to run check for all apps
2025-06-14 19:24:54 +07:00
provokateurin d11d5b765f feat(core): Add option to disable creating an admin user when installing
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-06-10 11:16:28 +07:00
Christoph Wurst 3a7c094f3b
refactor: generate migrations with override attributes
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2025-06-04 07:38:06 +07:00
Marcel Müller f9aa4e2e04 feat(integrity): Allow to run check for all apps
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
2025-05-16 18:21:37 +07:00
John Molakvoæ (skjnldsv) 62a9ec2067 fix(core): remove untranslated mime names
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2025-05-15 15:07:08 +07:00
Robin Appelman cfc4196038 feat: add mount id to info:storage(s)
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-15 11:49:09 +07:00
Robin Appelman 6927edc9ff feat: add command to get basic storage info
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-15 11:48:28 +07:00
John Molakvoæ cac44fd924
Merge pull request #52822 from nextcloud/feat/mime-names 2025-05-15 11:41:12 +07:00
provokateurin 82fb8f8508
refactor: Extend rector to core/
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-05-15 00:16:54 +07:00
John Molakvoæ (skjnldsv) 24bc1d606e
feat(core): add human readable mimes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2025-05-14 22:55:06 +07:00
Robin Appelman 7e9fc7604a
Merge pull request #52693 from nextcloud/config-system-set-json
feat: allow setting system config values with json value
2025-05-12 13:18:26 +07:00
Robin Appelman ffe10d4916 feat: allow setting system config values with json value
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-12 12:02:40 +07:00
Robin Appelman d9c53ef748
feat: add more encryption checks to info:file
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-09 16:35:31 +07:00
Joas Schilling 7962df9427
fix(occ): Fix autocompletion of config:app:* commands
Signed-off-by: Joas Schilling <coding@schilljs.com>
2025-04-25 11:30:21 +07:00
Andy Scherzinger 2c8c036bdb
Merge pull request #51439 from nextcloud/fix/create-missing-replacement-indexes
fix(db): Create replacement index where original index is missing
2025-04-24 00:49:22 +07:00
Christoph Wurst 29161c0dfd
fix(db): Create replacement index where original index is missing
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2025-04-17 17:59:19 +07:00
Robin Appelman f436ab066e feat: show permissions in info:file output
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-03-31 15:38:33 +07:00
Robin Appelman 7ce06f47c8
feat: move streaming output helps to command base class
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-03-31 14:30:42 +07:00
Côme Chilliet 4b099bd532
chore: Replace calls to OC_App::getAppVersions with app manager
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-03-25 14:23:40 +07:00
Robin Appelman c5dc90dde9
fix: optimize FileUtils::getFilesByUser
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-03-10 18:19:18 +07:00
Côme Chilliet 001b12c482
Merge pull request #50999 from nextcloud/fix/move-away-from-oc-app
fix: Replace OC_App calls by IAppManager
2025-02-27 18:33:47 +07:00
Joas Schilling 095ab4419e
fix(l10n): Improve english source strings
- No leading/trailing whitespace
- Use asci single quote

Signed-off-by: Joas Schilling <coding@schilljs.com>
2025-02-26 09:54:32 +07:00
Côme Chilliet 34139987d6 fix: Replace OC_App calls by IAppManager
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-02-24 17:48:34 +07:00
Côme Chilliet f758f565d4
fix: Replace getInstalledApps calls with getEnabledApps
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-02-13 10:19:20 +07:00
Côme Chilliet a3685551f7
fix: Replace isInstalled calls with isEnabledForAnyone or isEnabledForUser
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-02-13 10:19:19 +07:00
skjnldsv 6baafd82b6 fix: make sure we process mime extensions as string
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-02-05 12:35:41 +07:00
Stephan Orbaugh 8aad48c6f9
Merge pull request #49016 from Keeper-of-the-Keys/occ-groups-list-single-group
Add the option to provide a groupname and only see its' members in occ group:list
2025-02-03 13:10:00 +07:00
Côme Chilliet 5e97a46f4c
fix: Clearly document that the argument is a search string
It is not an exact match on the group id

Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
2025-02-03 11:07:41 +07:00
provokateurin d8cc8aae1a
fix(ConvertType): Read hostname from arguments and not options
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-01-30 09:24:58 +07:00
Nils Wenninghoff cf5d55edb7
fix(ConvertType): Read dbtype in createConnectionParams and remove safeguard
Signed-off-by: Nils Wenninghoff <nils@ungemein.cool>
2025-01-30 09:24:58 +07:00
Ferdinand Thiessen 5867231247
fix: `user:settings` command when user is not available
If `ignore-missing-user` all sub commands work, except listing all settings
for a user like `occ user:settings --ignore-missing-user user core`.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-01-27 20:51:04 +07:00
Misha M.-Kupriyanov 65698ff086
fix(occ): hide sensitive data while config:app:set
in order to hide sensitive data from logs

Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
2025-01-25 17:19:31 +07:00
Andy Scherzinger f63ac94b34
Merge pull request #49967 from nextcloud/jtr/occ-maintenance-mode-desc
fix: Make `maintenance:mode` description more accurate + add help
2025-01-13 18:02:32 +07:00
E.S. Rosenberg a.k.a. Keeper of the Keys c7acab5bf7 Add the option to provide a groupname and only see its' members.
Improvements/TODO:
1. Fail/return error if group doesn't exist
2. Only print the members and not the groupname

Signed-off-by: E.S. Rosenberg a.k.a. Keeper of the Keys <es.rosenberg+github@gmail.com>
2025-01-08 20:14:07 +07:00
Côme Chilliet 1d0962ab33
feat(occ): Show first_seen in output of user:list --info
Also format unknown and never in a better way.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-01-07 16:30:22 +07:00
Côme Chilliet b995912207
feat(users): Use -1 for unknown firstLogin instead of setting it to current date
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-01-07 16:30:22 +07:00
Côme Chilliet baf7293cfe
feat: Add first login timestamp of each user to oc_preferences and user:info output
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-01-07 16:29:50 +07:00
Robin Appelman 314955a64d
fix: improve wording of occ:upgrade command when no upgrade is required
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-01-03 15:51:34 +07:00
Josh 3f6cd154ef fix: Make `maintenance:mode` description more accurate + add help
Signed-off-by: Josh <josh.t.richards@gmail.com>
2025-01-01 11:45:57 +07:00
Jana Peper ee31b3bbe5 fix: error handling for wrong json values
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
2024-12-18 18:32:34 +07:00
Jana Peper 8042a82c64 feat: add occ command for task type toggling
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
2024-12-18 18:32:34 +07:00
Jana Peper a7f26cf966 feat: add occ command for task type toggling
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
2024-12-18 18:32:34 +07:00
Joas Schilling 5198ef2150
Merge pull request #49577 from ehfd/17801
fix(occ): `occ integrity:check-app` and Admin panel "rescan" deliver inconsistent results
2024-12-18 09:19:06 +07:00
Seungmin Kim eb77c633ab fix(occ): Revise output condition
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Seungmin Kim <8457324+ehfd@users.noreply.github.com>
2024-12-17 09:36:34 +07:00
Seungmin Kim a5c25635b3 fix(occ): Cosmetic edits
Signed-off-by: Seungmin Kim <8457324+ehfd@users.noreply.github.com>
2024-12-17 09:36:29 +07:00
Seungmin Kim 09154c334c fix(occ): Modify IAppManager
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Seungmin Kim <8457324+ehfd@users.noreply.github.com>
2024-12-17 09:36:19 +07:00
Seungmin Kim ab9ac5046b fix(occ): Add condition for isShipped
Signed-off-by: Seungmin Kim <8457324+ehfd@users.noreply.github.com>
2024-12-17 09:36:13 +07:00
Seungmin Kim 5a457b8da5 fix(occ): Fix linting issues
Signed-off-by: Seungmin Kim <8457324+ehfd@users.noreply.github.com>
2024-12-17 09:36:04 +07:00
Seungmin Kim 041eca9b27 fix(occ): Fix `occ integrity:check-app` and Admin panel "rescan" deliver inconsistent results
Signed-off-by: Seungmin Kim <8457324+ehfd@users.noreply.github.com>
2024-12-17 09:35:54 +07:00
skjnldsv 0c7e259151 feat(systemtags): allow setting color with occ
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-12-06 10:19:42 +07:00
Côme Chilliet 1d80351d4a fix: Show errors in encryption:migrate-key-storage-format and continue to other files
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-12-04 14:24:12 +07:00
Côme Chilliet 6dfa09f36d chore: Improve typing in core/Command/Encryption/MigrateKeyStorage.php
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-12-04 14:24:12 +07:00
Christopher Ng e0b3ab5165 fix: Correct wording when attempting to remove a disabled app
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-12-03 14:38:21 +07:00
Joas Schilling d1c3c6f234
fix(maintenance): Show a success message on data-fingerprint command
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-12-02 08:40:25 +07:00
Louis Chemineau 590b1e8698
feat: Warn about maintenance in EncryptAll command
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-11-25 11:42:29 +07:00
dependabot[bot] bb598c8451
chore(deps): Bump nextcloud/coding-standard in /vendor-bin/cs-fixer
Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/nextcloud/coding-standard/releases)
- [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nextcloud/coding-standard/compare/v1.3.1...v1.3.2)

---
updated-dependencies:
- dependency-name: nextcloud/coding-standard
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-10-19 07:57:35 +07:00
Git'Fellow a1681b0756 chore(db): Apply query prepared statements
Fix: psalm

fix: bad file

fix: bug

chore: add batch

chore: add batch

chore: add batch

fix: psalm
2024-10-17 20:30:47 +07:00
Git'Fellow c254855222 chore(db): Correctly apply query types
fix: psalm

fix: error

fix: add batch

fix: fatal error

fix: add batch

chore: add batch

chore: add batch

fix: psalm

fix: typo

fix: psalm

fix: return bool

fix: revert Manager
2024-10-17 09:21:07 +07:00
Kate 10d1c3c29f
Merge pull request #48537 from nextcloud/add-command-to-cleanup-preview 2024-10-14 08:57:00 +07:00
Joas Schilling c109ae9437
ci: Fix psalm by typing the QuestionHelper
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-10-07 12:11:27 +07:00
Joas Schilling fd77bc84d1
fix(command): Make method compatible with upstream class (backportable)
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-10-07 12:11:25 +07:00
Thomas Citharel fe0f89c237
feat(preview): add command to cleanup preview folder
When changing preview parameters (size, format, …), one can simply delete the preview folder and run
files:scan-app-data in order to retrigger updated preview recreation because files are absent.

However, that's not possible when using ObjectStorage as primary storage, as there's no concept of
"preview folder".

This command allows to simply delete and recreate the preview folder properly from
Nextcloud, so that the abstraction levels handle all the subfolder & file deleting part.

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-10-03 13:41:32 +07:00
Julien Veyssier 14cf5b03ca
feat(taskprocessing): new command to get a task from a task ID, include error_message in list and get commands
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2024-10-01 20:30:31 +07:00
Julius Knorr 606241caeb
chore(legacy): Introduce public version ct plass and drop version methods from OC_Util
Signed-off-by: Julius Knorr <jus@bitgrid.net>
2024-09-20 14:53:34 +07:00
provokateurin 9836e9b164
chore(deps): Update nextcloud/coding-standard to v1.3.1
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-09-19 14:21:20 +07:00
Côme Chilliet 70a886ce83
feat: Add OCP interface to format richtext into string
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-09-17 13:57:33 +07:00
Côme Chilliet 76f2bc0bfc
fix: Replace OC_App::getAllApps with a method in AppManager
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-09-13 10:08:44 +07:00
Côme Chilliet 7ed583cb8e
chore: Migrate cleanAppId and getAppPath calls to IAppManager from OC_App
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-09-13 10:08:43 +07:00
Anna Larch 8af7ecb257 chore: adjust code to adhere to coding standard
Signed-off-by: Anna Larch <anna@nextcloud.com>
2024-09-05 21:23:38 +07:00
John Molakvoæ c28340dd5b
Merge pull request #39242 from joshtrichards/db-convert-type-mysql-socket-no-pw 2024-09-04 09:32:21 +07:00
Hamza 54bfe5174f
Merge pull request #47525 from nextcloud/fix/optimize-getWrongShareOwnership-query
fix: optimise `getWrongShareOwnership` query
2024-08-28 16:14:56 +07:00
Hamza Mahjoubi 6361edb864 fix: optimise getWrongShareOwnership query
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
2024-08-27 14:08:29 +07:00
Louis Chemineau fffe826d90
feat: Improve encryption mode detection in occ info:file
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-08-26 19:28:44 +07:00
Daniel Kesselberg af6de04e9e
style: update codestyle for coding-standard 1.2.3
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2024-08-25 19:34:58 +07:00
Robin Appelman 2f9f9e83e8
feat: add command to send raw commands to redis
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-08-23 15:14:15 +07:00
Julien Veyssier 8638f3b587
feat(occ): add 'stop_after' option to stop the worker after some time
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2024-08-16 17:54:46 +07:00
John Molakvoæ 6fda0c15f0
fix: copyright header
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
2024-08-16 15:25:04 +07:00
FedericoHeichou a41e2f01b7 feat: Add user:welcome command
Signed-off-by: FedericoHeichou <federicoheichou@gmail.com>
2024-08-16 10:11:29 +07:00
Josh Richards 71fff03e9b fix(occ): Add support for UNIX sockets to `db:convert-type`
Fixes #31998

Adds support to `occ db:convert-type` to support UNIX socket connections via MySQL/MariaDB. Uses same `dbhost` / `hostname` parameter parsing logic (adapted) as used elsewhere (at least the relevant parts) for consistency.

Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
2024-08-16 09:04:36 +07:00
Maxence Lange 3ffcfb1dab
Merge pull request #47069 from nextcloud/fix/noid/display-message-on-no-migration-attributes
fix(migration-preview): display a message if no attributes set
2024-08-07 11:48:20 +07:00
nooblag 5ec3a7fcef occ: Revert all changes to Info.php
Signed-off-by: Jore <contact@jore.cc>
2024-08-07 09:33:09 +07:00