aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Refactor `OC\Server::getShareManager`Andrew Summers2023-08-293-5/+9
| | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2023-08-3018-0/+18
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Merge pull request #40026 from lhsazevedo/auth-token-commandsJoas Schilling2023-08-296-2/+30
|\ | | | | feat: Add auth token list and delete commands
| * Merge branch 'master' into auth-token-commandsLucas Azevedo2023-08-288-15/+51
| |\
| * | Fix typoLucas Azevedo2023-08-251-1/+1
| | | | | | | | | | | | Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
| * | Fixes from static analysisLucas Azevedo2023-08-251-3/+3
| | | | | | | | | | | | Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
| * | Add last-used-before optionLucas Azevedo2023-08-254-0/+24
| | | | | | | | | | | | Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
| * | Update autoloadersLucas Azevedo2023-08-242-2/+6
| | | | | | | | | | | | Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
* | | Merge pull request #40079 from ↵Joas Schilling2023-08-287-24/+20
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/techdebt/noid/user-IThrottler-interface-for-DI techdebt(DI): Use public IThrottler interface which exists since 25
| * | | techdebt(DI): Use public IThrottler interface which exists since Nextcloud 25Joas Schilling2023-08-287-24/+20
| | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | Merge pull request #40077 from ↵Joas Schilling2023-08-282-0/+12
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | nextcloud/bugfix/noid/purge-displayname-cache-on-delete fix(cache): Remove displayname cache entry on delete
| * | | fix(cache): Remove displayname cache entry on deleteJoas Schilling2023-08-282-0/+12
| | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | Merge pull request #39083 from nextcloud/fix/check-vobject-existenceAndy Scherzinger2023-08-281-3/+22
|\ \ \ \ | |_|/ / |/| | | fix(CalDAV): Check if the vObject exists before attempting any operations
| * | | fix(CalDAV): Check if the vObject exists before attempting any operationsAnna Larch2023-08-281-3/+22
| |/ / | | | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | | Merge pull request #39699 from nextcloud/enh/hide-shares-from-disabled-usersCôme Chilliet2023-08-281-5/+19
|\ \ \ | | | | | | | | Hide shares by disabled users
| * | | 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>
* | | Merge pull request #38298 from nextcloud/enh/occ-sync-account-dataAnna2023-08-282-0/+2
|\ \ \ | |/ / |/| | feat: Add occ user:user:sync-account-data for updating oc_accounts information from user backends
| * | feat: Add occ user:sync-account-data for updating oc_accounts information ↵Julius Härtl2023-06-092-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | fix(utility): De- deprecate getDateTime as now() only returns immutable objectsAnna Larch2023-08-251-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | This will mean lots of code like ```$dateTime = (new DateTime())->setTimestamp(ITimeFactory::now()->getTimestamp()``` if a regular DateTime object is needed Signed-off-by: Anna Larch <anna@nextcloud.com>
* | | fix(dbal): Migrate to Doctrine\DBAL\ParameterTypesJoas Schilling2023-08-231-5/+6
| | | | | | | | | | | | 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>
* | Merge pull request #39958 from nextcloud/dav-permissions-perfJohn Molakvoæ2023-08-222-23/+12
|\ \
| * | improve performance of calculating dav permissionsRobin Appelman2023-08-182-23/+12
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | fix(middleware): Fix header injection for bruteforce middlewareJoas Schilling2023-08-221-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>
* | | 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>
* | | fix: Make bypass function public APIJoas Schilling2023-08-213-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-212-2/+4
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | feat: Expose if the own IP is allowed to bypass bruteforce protectionJoas Schilling2023-08-212-22/+12
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | feat: Add a header which signals that the request was throttledJoas Schilling2023-08-211-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-211-2/+6
| | | | | | | | | | | | | | | | | | sleep Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | feat(security): Add a bruteforce protection backend base on memcacheJoas Schilling2023-08-218-127/+466
| | | | | | | | | | | | | | | | | | Similar to the ratelimit backend Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #39888 from nextcloud/less-container-queriesJoas Schilling2023-08-184-14/+29
|\ \ \ | | | | | | | | Reduce the number of container queries
| * | | only determine quota_include_external_storage once for quota wrapperRobin Appelman2023-08-182-4/+6
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | better caching in storage stats calculationsRobin Appelman2023-08-181-7/+12
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | reuse dependencies from wrapped cacheRobin Appelman2023-08-181-3/+11
| |/ / | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #39867 from nextcloud/login-lessJoas Schilling2023-08-186-45/+75
|\ \ \ | |/ / |/| | Add a separate event for login page rendering
| * | add core fileclient script before othersRobin Appelman2023-08-171-2/+7
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | don't always add core/common and core/main during "sorting"Robin Appelman2023-08-171-1/+6
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | add separate event for rendering login page templateRobin Appelman2023-08-175-3/+62
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | move core script loading from static template to event listenerRobin Appelman2023-08-171-39/+0
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #39770 from ↵max-nextcloud2023-08-171-0/+5
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/fix/always-use-displayname-from-correct-backend fix: always use display name from correct backend
| * | | fix: always use display name from correct backendMax2023-08-151-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>
* | | | Merge pull request #39910 from nextcloud/bugfix/noid/fix-memcache-class-handlingJoas Schilling2023-08-171-7/+9
|\ \ \ \ | | | | | | | | | | fix(memcache): Fix comparison of Memcache configs to classes
| * | | | fix(memcache): Fix comparison of Memcache configs to classesJoas Schilling2023-08-161-7/+9
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | feat: redirect to the mime icon if no preview availableJohn Molakvoæ2023-08-176-0/+148
| | | | | | | | | | | | | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | | | | Merge pull request #39481 from nextcloud/fix/transfer-ownersipJulius Härtl2023-08-171-16/+24
|\ \ \ \ \
| * | | | | fix: don't emit Hooks when hookpaths are emptyAnna Larch2023-08-171-16/+24
| | |_|/ / | |/| | | | | | | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | | | | Merge pull request #39906 from nextcloud/fix/prevent-warnings-if-attr-unsetFerdinand Thiessen2023-08-172-4/+4
|\ \ \ \ \ | |/ / / / |/| | | | Prevent PHP warning when CacheEntry extension keys are not set
| * | | | fix: Prevent PHP warnings when optional CacheEntry attributes are unsetFerdinand Thiessen2023-08-162-4/+4
| |/ / / | | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>