summaryrefslogtreecommitdiffstats
path: root/core/register_command.php
Commit message (Collapse)AuthorAgeFilesLines
* feat: Add occ user:sync-account-data for updating oc_accounts information ↵Julius Härtl2023-10-051-0/+1
| | | | | | | | | | | | | | | | from user backends This can be useful in cases where the state between user backend and oc_accounts has become inconsistent. Usually the account data is updated once the change on the user backend is detected. Potential leftovers from older bugs (https://github.com/nextcloud/user_saml/pull/582) might though never get updated. This could lead to the contacts menu never showing the correct display name. The contacts menu is read from the system address book, which is only updated from oc_accounts. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* feat(OCC): Add a command to get the bruteforce state of an IPJoas Schilling2023-08-231-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat: Add public event for missing indicesJulius Härtl2023-07-141-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* add command to summarize space usageRobin Appelman2023-05-041-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add command for getting fileinfo for debuggingRobin Appelman2023-04-171-0/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add command to generate a preview for a fileRobin Appelman2023-04-031-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* composer run cs:fixCôme Chilliet2023-01-201-19/+19
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* move share owner repair to occ commandRobin Appelman2022-11-081-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Migrate Repair events to OCP\EventDispatcher\EventCôme Chilliet2022-08-251-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove OCP\App and OCP\BackgroundJobCarl Schwan2022-08-011-1/+1
| | | | | | | | | | Both deprecated since NC 23 IAppManager is the replacement for OCP\App unfortunately it can't be dependency injected in classes used by the installed otherwise the database connection is initialised too early Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix ListCommand constructor call in register_commandCôme Chilliet2022-07-111-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add command to list jobsCôme Chilliet2022-07-111-0/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update core to PHP 7.4 standardCarl Schwan2022-05-201-1/+1
| | | | | | | - Typed properties - Port to LoggerInterface Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Remove deprecated occ app:check-code commandCôme Chilliet2022-04-281-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fixing psalm errorsCôme Chilliet2022-03-241-1/+1
| | | | | | Encryption constructor is problematic and should still be fixed later. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Trigger an event to log an activity when an administrator generates an app ↵Joas Schilling2022-03-101-1/+1
| | | | | | password Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use the new function in user:setting occ commandCôme Chilliet2022-01-241-1/+1
| | | | | | instead of direct database queries Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Move queries to the joblistJoas Schilling2021-10-141-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a command to show info about a background job and force-execute itJoas Schilling2021-10-141-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Align occ status with status.phpJulius Härtl2021-08-261-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-5/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Remove the migration commands unless in debug modeJoas Schilling2021-05-261-4/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #26600 from hosting-de/feature/occ-tagsMorris Jobke2021-05-251-0/+5
|\ | | | | Add commands to manage tags via OCC
| * Add commands to manage tags via OCCJohannes Leuker2021-05-251-0/+5
| | | | | | | | | | | | list, add, delete, edit Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
* | Merge pull request #26758 from J0WI/more-strictChristoph Wurst2021-04-281-0/+3
|\ \ | | | | | | Some more strict_types
| * | core: add more strict_typesJ0WI2021-04-261-0/+3
| |/ | | | | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* / Fix psalm errorsJoas Schilling2021-04-271-1/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Cleanup unneeded code around database.xmlMorris Jobke2021-03-241-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #25529 from ↵Morris Jobke2021-03-221-0/+1
|\ | | | | | | | | nextcloud/fix-non-lgc-glyphs-in-avatars-and-txt-file-previews Fix non LGC glyphs in avatars and txt file previews
| * Add OCC command to reset rendered textsDaniel Calviño Sánchez2021-03-011-0/+1
| | | | | | | | | | | | | | | | | | | | The command is meant to be used when the fonts used to render texts ("core/fonts/NotoSans-Regular.ttf" and "core/fonts/NotoSans-Bold.ttf") are changed (for example, to add support for other scripts). The avatar and text file previews will be removed, so they will be generated again with the updated font when needed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | log full expection during repair stepRobin Appelman2021-03-181-1/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Show group backends in occ group:list --info and group:infoJohannes Leuker2021-03-011-0/+1
|/ | | | Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-081-9/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Command: Add app password generationSean Molenaar2021-01-051-0/+2
| | | | Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Register new command db:add-missing-primary-keysMichaIng2020-11-131-0/+1
| | | | | Introduced with: https://github.com/nextcloud/server/commit/d5df033ede1f2b19b87c365b1f808130023edf17 Signed-off-by: MichaIng <micha@dietpi.com>
* Improve CertificateManager to not be user context dependentMorris Jobke2020-11-031-3/+3
| | | | | | | | | * removes the ability for users to import their own certificates (for external storage) * reliably returns the same certificate bundles system wide (and not depending on the user context and available sessions) The user specific certificates were broken in some cases anyways, as they are only loaded if the specific user is logged in and thus causing unexpected behavior for background jobs and other non-user triggered code paths. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #22331 from ↵Roeland Jago Douma2020-08-201-1/+1
|\ | | | | | | | | nextcloud/bugfix/noid/dont-use-deprecated-inigetwrapper Don't use deprecated getIniWrapper() anymore
| * Use the DI container also for the Install command registrationMorris Jobke2020-08-201-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | New SSE key formatRoeland Jago Douma2020-08-201-0/+8
|/ | | | | | | * Encrypt the keys with the instance secret * Store them as json (so we can add other things if needed) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Show disabled user count in occ user:reportMorris Jobke2020-08-191-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix "misplaced variables" warning of Psalm in PHPDoc statementsMorris Jobke2020-08-171-1/+1
| | | | | | Ref #21787 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add occ preview:migrate to migrate previews from the old flat structure to a ↵Morris Jobke2020-08-061-0/+2
| | | | | | | | | | | | | | subfolder structure * `php occ preview:repair` - a preview migration tool that moves existing previews into the new location introduced with #19214 * moves `appdata_INSTANCEID/previews/FILEID` to `appdata_INSTANCEID/previews/0/5/8/4/c/e/5/FILEID` * migration tool can be stopped during migration via `CTRL+C` - it then finishes the current folder (with the previews of one file) and stops gracefully * if a PHP memory limit is set in the `php.ini` then it will stop automatically once it has less than 25 MiB memory left (this is to avoid hard crashes in the middle of a migration) * the tool can be used during operation - possible drawbacks: * there is the chance of a race condition that a new preview is generated in the moment the folder is already migrated away - so the old folder with the newly cached preview is deleted and one cached preview needs to be re-generated * there is the chance of a race condition during access of a preview while it is migrated to the other folder - then no preview can be shown and results in a 404 (as of now this is an accepted risk) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #20005 from joeried/occ-remove-bruteforce-attempts-by-ipMorris Jobke2020-05-251-0/+1
|\ | | | | Implement occ command to reset bruteforce attemps from a given IP address
| * Implement occ command security:bruteforceattemps:reset-for-ipJohannes Riedel2020-03-191-0/+1
| | | | | | | | Signed-off-by: Johannes Riedel <joeried@users.noreply.github.com>
* | Add optional column oc_comments.reference_idJoas Schilling2020-03-311-0/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersChristoph Wurst2019-12-051-3/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make it possible to broadcast events to (web) clientsChristoph Wurst2019-10-281-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add detailed users listing in occ user:info commandJohn Molakvoæ (skjnldsv)2019-10-171-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>