Commit Graph

731 Commits (4faf51183d5406830fc87f5a2a51b87faf01c707)

Author SHA1 Message Date
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
Jore 96638fd6b2 occ: Remove timezone changes.
Signed-off-by: Jore <contact@jore.cc>
2024-08-07 09:33:09 +07:00
Jore a0566f881d occ: Add locale setting timezone to timestamps.
Signed-off-by: Jore <contact@jore.cc>
2024-08-07 09:33:09 +07:00
Jore e16e16c972 occ: Add check for never logged in for user:info.
Signed-off-by: Jore <contact@jore.cc>
2024-08-07 09:33:09 +07:00
Jore bd81967fa1 occ: Improve timestamps for user:info.
Signed-off-by: Jore <contact@jore.cc>
2024-08-07 09:33:09 +07:00
Jore 3e69668c9e occ: Improve timestamps for user:lastseen.
Signed-off-by: Jore <contact@jore.cc>
2024-08-07 09:33:08 +07:00
Maxence Lange 6ad6fa6425 fix(migration-preview): display a message if no attributes set
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-08-06 22:23:12 +07:00
Andy Scherzinger f0260246d9
Merge pull request #45879 from nextcloud/export-certificate-bundle
feat: add command to export certificate bundle
2024-08-06 23:37:39 +07:00
Thibaut 825347f262
feat(occ)!: Adding the `displayName` to the output of the `occ group:list --info` command
Signed-off-by: ThibautPlg <17176051+ThibautPlg@users.noreply.github.com>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-08-06 19:30:59 +07:00
Côme Chilliet bb94da69a6 fix(occ): Fix compatibility with PHP<8.2
iterator_to_array cannot take an array parameter prior to 8.2

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-08-06 12:13:26 +07:00
Côme Chilliet db16a32ac3 feat(occ): Add support for iterable in Base and use in in group:list and user:list
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-08-06 12:13:26 +07:00
Robin Appelman 9a06931175 feat: add command to export certificate bundle
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-08-01 10:06:50 +07:00
Maxence Lange 7c1ee524be fix(migration-attributes): privatizing AttributeException
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-07-29 12:44:52 +07:00
Maxence Lange 79e6014879 feat(upgrade): release metadata
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-07-29 12:44:52 +07:00
Maxence Lange 88cfab4f32 feat(upgrade): migration attributes
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>

d

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>

f

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>

d

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-07-29 12:44:52 +07:00
Julien Veyssier df11aa9efc
feat(taskprocessing): add appId filter to taskprocessing occ commands
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2024-07-23 17:12:38 +07:00
Julien Veyssier af21f7dbd9
feat(taskprocessing): add stats about input/output sizes
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2024-07-23 17:12:38 +07:00
Julien Veyssier c120a64ba2
feat(taskprocessing): add occ commands to list tasks and compute stats
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2024-07-23 17:12:38 +07:00
Joas Schilling 829f2b9bc7
fix(db): Promote the use of `getDatabaseProvider` to reduce the impage of removed upstream platforms
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-19 11:21:14 +07:00
Joas Schilling a4c1d7291f
fix(db): Use `createSchemaManager()` method as `getSchemaManager()` is deprecated
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-19 11:21:11 +07:00
Robin Appelman 5f7b33fbea
Merge pull request #46194 from nextcloud/schema-export-cmnd
feat: add commands for exporting current and expected database schema
2024-07-02 16:44:55 +07:00
Robin Appelman 4f01486da0
feat: add commands for exporting current and expected database schema
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-07-02 13:45:12 +07:00
Daniel Kesselberg a773a8b915
refactor: simplify background commands
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2024-07-01 12:52:06 +07:00
Daniel f589639822
Merge pull request #46199 from nextcloud/debt/noid/spdx-migrations-template
chore: use spdx for migrations generator
2024-06-29 18:47:30 +07:00
Daniel Kesselberg d00b8ed1f5
chore: use spdx for migrations generator
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2024-06-28 18:54:50 +07:00
Ferdinand Thiessen 14778811b4
refactor: Use `IAppConfig` for setting cron type
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-28 18:00:39 +07:00
Andy Scherzinger 5c49a54801
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-26 20:05:04 +07:00
Josh 2ccde6f231
fix(db): cs-fix spacing
Signed-off-by: Josh <josh.t.richards@gmail.com>
2024-05-18 10:50:38 +07:00
Josh 59dc6b49cd
fix(db): Prevent data loss by temporarily disabling `db:convert-type`
Needed until #45257 is addressed to prevent data loss

Signed-off-by: Josh <josh.t.richards@gmail.com>
2024-05-17 22:26:15 +07:00
Daniel Kesselberg 69883ac0cc fix: getMountsForFileId may return an unordered list
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2024-05-10 22:49:28 +07:00
Andy Scherzinger 1df96b0417
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-10 11:07:50 +07:00
Julien Veyssier 0eb4cddc54
feat(bg-jobs): support multiple arguments in cron.php and occ:background-job:worker for the job class list
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2024-05-02 16:43:42 +07:00
Julien Veyssier d967151f52
fix(bg-jobs): review adjustments
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2024-05-02 16:43:42 +07:00
Julien Veyssier 1acc57b5c0
feat(bg-jobs): allow setting a job class list instead of a single class in cron.php and the job worker occ command
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2024-05-02 16:43:41 +07:00
Julien Veyssier a5f244a58b
chore(bg-jobs): more output in verbose mode in the bg job worker
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2024-05-02 16:43:41 +07:00
Marcel Klehr 9a3b341932
fix(bg-jobs): cs:fix
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2024-05-02 16:43:41 +07:00
Marcel Klehr 352d79deee
fix(bg-jobs): fix psalm issues
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2024-05-02 16:43:41 +07:00
Marcel Klehr 993398b88a
fix(bg-jobs): Remove interval bookkeeping
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2024-05-02 16:43:41 +07:00
Marcel Klehr a3d8632fbe
fix(bg-jobs): fix minor issues
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2024-05-02 16:43:41 +07:00
Julius Härtl d69b8ecf95
fix(bg-jobs): Fix running once when no job was scheduled
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-05-02 16:43:41 +07:00
Julius Härtl 8400bfee01
feat(bg-jobs): Add background worker occ command
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-05-02 16:43:41 +07:00
Côme Chilliet f02ca82825
Merge pull request #44829 from nextcloud/feat/add-storage-tree-to-info-file
feat(occ): Add --storage-tree option to info:file to help debug storages
2024-04-30 14:29:07 +07:00
Côme Chilliet ece3588252
fix: Improve typing of mimetype aliases
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-04-30 09:24:00 +07:00
Côme Chilliet 672923f0a6
fix: Fix newly spotted psalm issues, add exhaustive typed magic properties for LDAP classes
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-04-30 09:23:58 +07:00
Côme Chilliet 61621ee1d0
fix: Revert to OC_App in places where we need all apps even disabled ones
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-04-22 15:14:19 +07:00
Côme Chilliet 8c5f32320a
fix: use DI to build main Application class in console.php
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-04-22 12:15:07 +07:00
Côme Chilliet 644036ab4e
fix: Migrate away from OC_App toward the IAppManager
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-04-22 12:14:58 +07:00
yemkareems 4e409ab489
fix: add missing ClearGeneratedAvatarCacheCommand.php in autoload_static.php and declare strict_types for the new file as suggested 2024-04-18 17:57:49 +07:00
Maxence Lange a624a2b34f fix(appconfig): returns correct value on details
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-04-17 16:28:02 +07:00
yemkareems 04b112c941
feat: wordings corrected as suggested
Signed-off-by: yemkareems <yemkareems@gmail.com>
2024-04-16 13:59:34 +07:00
yemkareems 5201056b7e
feat: license wordings, minor php warnings corrected
Signed-off-by: yemkareems <yemkareems@gmail.com>
2024-04-16 08:53:15 +07:00
yemkareems 703214fd9c
feat: command added to clear avatar cache manually
Signed-off-by: yemkareems <yemkareems@gmail.com>
2024-04-15 16:12:29 +07:00
Côme Chilliet 38e809e635
feat(occ): Add --storage-tree option to info:file to help debug storages
Wrapping can get kind of crazy and this helps understanding the situation

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-04-15 11:35:51 +07:00
Côme Chilliet 5385a30970
feat(occ): Add --disabled option to occ user:list
Allows to easily list disabled users from cli in a efficient way

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-04-09 15:47:40 +07:00
Côme Chilliet ec5133b739 fix: Apply new coding standard to all files
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-04-02 14:16:21 +07:00
Adam Blakey 4744b02c40 style: Fixed style from composer cs:fix
Signed-off-by: Adam Blakey <adam@blakey.family>
2024-03-18 15:46:39 +07:00
Adam Blakey aa09af8410 Update core/Command/App/ListApps.php
refactor: changed overcomplicated if statement into two shorter lines

Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Adam Blakey <adam@blakey.family>
2024-03-18 15:45:17 +07:00
John Molakvoæ 8201a93452
Merge branch 'master' into show-enabled-and-disabled-apps
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
2024-03-15 15:55:27 +07:00
Joas Schilling 813406322b
fix: Use IUserManager::callForAllUsers() to save memory
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-03-14 08:40:22 +07:00
Jordan Brown d1e3c0278d
feat(occ): Add --all option for occ user:lastseen
Signed-off-by: Jordan Brown <code@jore.cc>
2024-03-13 10:29:55 +07:00
Côme Chilliet 65bad47e7e
fix: Suppress psalm errors about deprecated execute method, we have to use it for now
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-03-12 11:23:35 +07:00
Côme Chilliet 75751d51de
fix: Call execute until it is removed for Job class
Because if an application extends execute it will change behavior
 without warning otherwise.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-03-12 11:01:46 +07:00
Josh 20953d0374
Merge pull request #43824 from nextcloud/fix/db/occ-db-convert-disabled-apps
fix(db): db-convert supports disabled apps but not removed ones
2024-03-07 10:17:45 +07:00
Joas Schilling 14ef17e5e2
Merge pull request #43998 from nextcloud/bugfix/noid/add-fixme-to-migration-files-to-help-developers
fix(migrations): Help developers to add description and copyright info
2024-03-06 09:27:58 +07:00
Joas Schilling 92fc12918e
fix(migrations): Help developers to add description and copyright info
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-03-05 12:56:38 +07:00
Robin Appelman e7a7b4a401 perf: switch places that always use the first getById result to getFirstNodeById
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-03-04 13:57:31 +07:00
John Molakvoæ 8df55ef5aa
Merge pull request #29988 from nextcloud/enh/hide-overwrites-from-disabled-apps-list 2024-02-29 11:47:50 +07:00
Joas Schilling 6f95febe17
Merge pull request #43646 from nextcloud/feat/noid/occ-keys-test-command
Add user:keys:verify command
2024-02-28 09:20:04 +07:00
Greta b2751b57f9
Merge pull request #43209 from nextcloud/enh/edit-indices
feat(occ): add possibility to edit indices
2024-02-28 09:05:23 +07:00
Marcel Müller e23e89f384 feat(occ): Add user:keys:test command
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
2024-02-27 22:43:08 +07:00
MichaIng 7b137ddd75 feat(updater): hide overwrites from disabled apps list on upgrade
If an incompatible app is enabled manually, it is added to the "app_install_overwrite" array in config.php. Nextcloud upgrades won't disable any app in this array, but they were still shown on the upgrade page and logs as being disabled.

This commit assures that only apps which are really disabled, i.e. which are not in the "app_install_overwrite" array, are shown and logged as disabled during upgrades.

Signed-off-by: MichaIng <micha@dietpi.com>
2024-02-27 20:19:56 +07:00
Johannes Merkel 06d076410a
feat(occ): add possibility to edit indices
Signed-off-by: Johannes Merkel <mail@johannesgge.de>
2024-02-27 11:03:08 +07:00
Côme Chilliet 102773a000
Merge pull request #40726 from nextcloud/feat/new-user-email
feat: Email option in `occ user:add` command
2024-02-26 11:50:12 +07:00
Josh 7ce0088737
fix(db): db-convert supports disabled apps but not removed ones
Signed-off-by: Josh <josh.t.richards@gmail.com>
2024-02-25 13:46:50 +07:00
Anupam Kumar ce24923f4c
add generate-password option and flow fixes
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
2024-02-24 04:56:52 +07:00
Herman van Rink bf7e84fb37
Allow combining --email option with --password-from-env
Signed-off-by: Herman van Rink <rink@initfour.nl>
2024-02-24 04:56:52 +07:00
Anupam Kumar a92c507cb6
new user password email option, improved on #29368
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
2024-02-24 04:56:52 +07:00
Philip Gatzka b587ec39f4
Enable adding E-Mail addresses to new user accounts using the CLI
Signed-off-by: Philip Gatzka <philip.gatzka@mailbox.org>
2024-02-24 04:56:52 +07:00
Git'Fellow 6dfe3c91d5 Add a return message for app updates trough occ
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>

Handle single and all apps

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>

Rewrite logic

Fix psalm

Fix psalm

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2024-02-23 21:50:10 +07:00
John Molakvoæ 7cf3172f1c
Merge pull request #39184 from shdehnavi/refactor_core_command_background 2024-02-23 21:44:18 +07:00
John Molakvoæ f40c2a03b0
Merge pull request #39183 from shdehnavi/refactor_core_command_app 2024-02-23 19:46:29 +07:00
John Molakvoæ edc35f74c7
Merge pull request #42893 from nextcloud/file-info-key-location 2024-02-23 19:36:25 +07:00
Hamid Dehnavi 706231438e Make adjustments based on the review
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2024-02-23 16:57:54 +07:00
Hamid Dehnavi 5c64528336 Make adjustments based on the review
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2024-02-23 16:57:54 +07:00
Hamid Dehnavi 7dc304db02 Refactor core/Command/Background
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
2024-02-23 16:57:54 +07:00
Josh 82f0adb91a
fix(security): Describe `occ security:bruteforce:attempts` accurately
This command is used to list a summary of brute force protection attempts associated with a given IP address and, optionally, a specific action. It does not reset attempts (there's already another command for that).

Signed-off-by: Josh <josh.t.richards@gmail.com>
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
2024-02-21 13:57:41 +07:00
John Molakvoæ 524ed97d62
fix: replace `Account name` by `Login`
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2024-02-13 21:08:10 +07:00
Vincent Petry 839ddaa354
feat: rename users to account or person
Replace translated text in most locations

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2024-02-13 21:06:30 +07:00
Ferdinand Thiessen be049ba6b3
Merge pull request #42833 from nextcloud/enh/noid/set-boolean-config
small improvement on occ app:config:set
2024-02-09 14:02:28 +07:00