summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Use nullsafe call syntax instead of additionnal checkCôme Chilliet2023-08-281-1/+1
| | | | Co-authored-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* Set files_sharing:hide_disabled_user_shares to 'yes' to hide shares from ↵Côme Chilliet2023-08-281-5/+19
| | | | | | disabled users Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix user log.condition featureCôme Chilliet2023-08-251-8/+12
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #39997 from nextcloud/backport/39870/stable27Joas Schilling2023-08-2310-159/+511
|\ | | | | [stable27] feat(security): Add a bruteforce protection backend base on memcache
| * fix(middleware): Fix header injection for bruteforce middlewareJoas Schilling2023-08-231-5/+1
| | | | | | | | | | | | | | Calling setHeaders(getHeaders()) breaks the CSP nonce for unknown reasons So shifting back to old standard practise for now Signed-off-by: Joas Schilling <coding@schilljs.com>
| * fix: Make bypass function public APIJoas Schilling2023-08-233-7/+18
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * feat(OCC): Add a command to get the bruteforce state of an IPJoas Schilling2023-08-232-2/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * feat: Expose if the own IP is allowed to bypass bruteforce protectionJoas Schilling2023-08-232-22/+12
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * feat: Add a header which signals that the request was throttledJoas Schilling2023-08-231-4/+14
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * feat(security): Add a "testing mode" for bruteforce protection that doesn't ↵Joas Schilling2023-08-231-2/+6
| | | | | | | | | | | | sleep Signed-off-by: Joas Schilling <coding@schilljs.com>
| * feat(security): Add a bruteforce protection backend base on memcacheJoas Schilling2023-08-238-127/+466
| | | | | | | | | | | | Similar to the ratelimit backend Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2023-08-232-0/+2
|/ | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* feat(dashboard): implement widget item api v2Richard Steinmetz2023-08-226-3/+212
| | | | | | | | | This API enables the dashboard to render all widgets from the API data alone without having apps to provide their own bundles. This saves a lot of traffic and execution time as a lot less javascript has to be parsed on the frontend. Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Merge pull request #39934 from nextcloud/backport/39481/stable27Julius Härtl2023-08-221-16/+24
|\
| * fix: don't emit Hooks when hookpaths are emptyAnna Larch2023-08-211-16/+24
| | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | Merge pull request #39949 from nextcloud/backport/39770/stable27Julius Härtl2023-08-221-0/+5
|\ \ | |/ |/|
| * fix: always use display name from correct backendMax2023-08-171-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Overwrite the display name after the account is initialized when using an instacne of IGetDisplayNameBackend. Before when using a variation of user_oidc and registering a Backend.php implementing IGetDisplayNameBackend the personal setting page shows 'uid'. The UserManager/AccountManager seems not to use consistently the correct backend. The correct backend is used in this sequence: server/lib/private/TemplateLayout.php $userDisplayName = \OC_User::getDisplayName(); $this->assign(user_displayname, $userDisplayName); In the settings page, it definitely not calls the registered backend, but seems to fall back to default Backend and shows (usually) uid or a value from the standard account property table. Signed-off-by: Max <max@nextcloud.com>
* | fix(memcache): Fix comparison of Memcache configs to classesJoas Schilling2023-08-171-7/+9
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: Prevent PHP warnings when optional CacheEntry attributes are unsetFerdinand Thiessen2023-08-172-4/+4
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Fix(l10n): Update translations from TransifexNextcloud bot2023-08-172-0/+20
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Merge pull request #39871 from nextcloud/backport/38714/stable27John Molakvoæ2023-08-161-5/+9
|\ | | | | [stable27] select the fileid first when looking for incomplete files
| * select the fileid first when looking for incomplete filesRobin Appelman2023-08-141-5/+9
| | | | | | | | | | | | this seems to improve mariadbs index selection Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Fix(l10n): Update translations from TransifexNextcloud bot2023-08-164-0/+18
|/ | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2023-08-1468-202/+202
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2023-08-132-2/+18
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2023-08-124-0/+110
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Merge pull request #39722 from nextcloud/backport/39698/stable27John Molakvoæ2023-08-111-1/+1
|\
| * fix: simplify `sourceData` checkJohn Molakvoæ2023-08-051-1/+1
| | | | | | | | Co-authored-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * Catch more invalid cache source storage pathsJosh Richards2023-08-051-1/+1
| | | | | | | | | | | | | | | | | | | | OC\Files\Cache\Cache::get can return string|false|null, not just string|false. - nextcloud/server#26270 added handling of false, but null is needed too. - Well, or we change the default $resullt to false, but I'm not sure if that has other ramifications and the real need here is to simply catch situations where the cache source storage path is not valid for whatever reason Related: nextcloud/server#19009 Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
* | Merge pull request #39799 from nextcloud/appecosystem-auth-stable27John Molakvoæ2023-08-111-0/+19
|\ \
| * | Fix psalm ci (stub). Wrap server container with try-catchAndrey Borysenko2023-08-111-2/+6
| | | | | | | | | | | | Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
| * | added Application Ecosystem V2 login handlerAlexander Piskun2023-08-111-0/+15
| | | | | | | | | | | | Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
* | | Fix(l10n): Update translations from TransifexNextcloud bot2023-08-112-0/+4
|/ / | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | log imaginary errors as info to not spam the server logsSimon L2023-08-101-2/+2
| | | | | | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* | Fix(l10n): Update translations from TransifexNextcloud bot2023-08-104-0/+6
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | feat: Add delete task APIJulius Härtl2023-08-092-0/+20
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> (cherry picked from commit fca1c309a025e34cc5d635766796d9e5b4f9386b) Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* | change sql where order to match index orderJulien Veyssier2023-08-091-2/+2
| | | | | | | | | | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net> (cherry picked from commit 05a6a799a7e05f90c9d1eb10b5a41800457e1749) Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* | allow anon text processing schedulingJulien Veyssier2023-08-097-8/+71
| | | | | | | | | | | | | | | | | | | | | | | | add a textprocessing_tasks index convert anotations to method attributes refactor TP manager add mapper methods Signed-off-by: Julien Veyssier <julien-nc@posteo.net> (cherry picked from commit 41b19cf969956fe57fcb35e3dee0200d5c29b6d7) Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* | start implementing ocs endpoint to get task list from user+appId+identifierJulien Veyssier2023-08-093-1/+45
| | | | | | | | | | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net> (cherry picked from commit 9986e02097e5c82e1bb21ba3f897b14d82a50c15) Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* | fix composer autoload filesJulien Veyssier2023-08-092-0/+2
| | | | | | | | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net> (cherry picked from commit 8d6a6e5242c771b80f52228803ef98357cba6388)
* | Migration: Drop llm_tasks table and add textprocessing_tasksMarcel Klehr2023-08-091-1/+1
| | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net> (cherry picked from commit ad3f3533357a2f85be92891bd024b656a98a9f4f)
* | AI admin settings: cs:fixMarcel Klehr2023-08-091-1/+0
| | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net> (cherry picked from commit 4ec150c9b6d24e877a7843fc005cfb6b8997363b)
* | AI admin settings: Use config values in AI feature managersMarcel Klehr2023-08-093-5/+53
| | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net> (cherry picked from commit 2a3ef102f7527041609ad96bc59d6b21f42980d4)
* | fix(TextProcessing): Inject L10N\IFactory instead of IL10NMarcel Klehr2023-08-094-9/+26
| | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net> (cherry picked from commit 8ec1926aba549eeaea872d7dd2fcb69592b3a3bc)
* | First pass at ai admin settingsMarcel Klehr2023-08-093-0/+18
| | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net> (cherry picked from commit fc9780a41d586e2983f18e128a4095484e5860ac)
* | Fix tests: Adjust constructor signatureMarcel Klehr2023-08-091-1/+1
| | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net> (cherry picked from commit fd0fd97a6594f47c9a5fc4f833c2defa07078ae2)
* | Remove Task::factory methodMarcel Klehr2023-08-092-18/+1
| | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net> (cherry picked from commit 7389567c7d05ba994533b7273cba1e5818a20b94)
* | Fix psalm errorsMarcel Klehr2023-08-095-0/+9
| | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net> (cherry picked from commit d63c122ec0071cc1d0417eaa5eb1a85e41290263)
* | cs:fixMarcel Klehr2023-08-091-2/+0
| | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net> (cherry picked from commit 2811932247da3301c25259396c1b4a1667db1b54)
* | Update autoloadersMarcel Klehr2023-08-092-38/+38
| | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net> (cherry picked from commit add5962b4c2a9839c90a7db51ab41737f032bab4)