aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | fix: Go back to soft typing for template function pfix/fix-loginflow-v1Côme Chilliet2025-03-241-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Strong typing breaks legacy code in this case. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | Merge pull request #51611 from ↵Ferdinand Thiessen2025-03-241-5/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | nextcloud/fix/file-name-validator-case-sensitivity fix(IFilenameValidator): correctly handle case insensitivity
| * | | | | fix(IFilenameValidator): correctly handle case insensitivityfix/file-name-validator-case-sensitivityFerdinand Thiessen2025-03-211-5/+3
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - forbidden names and forbidden base names are case **insensitive** so we need to check all lowercase here. - add test that config value is also read case insensitive. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* / | | | fix(ocm): `publicKey` can be disabled so capabilities do not matchfix/ocm-public-key-is-optionalFerdinand Thiessen2025-03-211-2/+2
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the public key feature is disabled null is returned for `publicKey`. So in this case we need to adjust the capabilities and return type of `jsonSerialize()`. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | | chore: cleanup human_file_size usageCôme Chilliet2025-03-201-3/+4
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | fix: Remove obsolete component template functionCôme Chilliet2025-03-201-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | HTML imports are not a thing anymore, they are not supported by any browser. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | fix: Clean up typing and remove deprecated calls in template functionsCôme Chilliet2025-03-201-27/+35
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | chore: Move template functions out of legacy folderCôme Chilliet2025-03-202-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | fix: Remove multiple require_once calls for template functionsCôme Chilliet2025-03-203-4/+1
|/ / / | | | | | | | | | | | | | | | Only require them when include the template file instead Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | fix(webauthn): do not require bcmath or gmp - not needed anymoreFerdinand Thiessen2025-03-191-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | The extensions are not required anymore but only recommended for performance. See also: https://github.com/web-auth/webauthn-framework/issues/213 Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | fix(IMimeTypeDetector): use correct return typefix/IMimeTypeDetector-typesFerdinand Thiessen2025-03-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In PHP array keys that are integers are always kept as integer, meaning the type of the key of `$a = ["1" => "one"]` will be integer not string. While are hacks to circumvent this (case std object with string keys to an assoc. array) those hacks are performance wise awefull and also not needed as in PHP you can always access that element with `$a[1]` or `$a["1"]`. So TL;DR;: do not lie about return types. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | fix(auth): Allow 2FA challenges for Ephemeral sessionsbugfix/ios-3365/allow-2fa-for-ephemeral-sessionsJoas Schilling2025-03-181-0/+5
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #51480 from nextcloud/fix/deprecation-commentFerdinand Thiessen2025-03-171-3/+0
|\ \ \ | | | | | | | | chore: drop outdated deprecation comment from Mailer
| * | | chore: drop outdated deprecation comment from Mailerfix/deprecation-commentFerdinand Thiessen2025-03-141-3/+0
| | | | | | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | | Merge pull request #51380 from nextcloud/fix/noid/contactsmenu-ab-enabledHamza2025-03-171-0/+4
|\ \ \ \ | | | | | | | | | | fix(cardav): only show users from enabled addressBooks in contacts menu
| * | | | fix(cardav): only show useres from enabled addressBooks in contacts menufix/noid/contactsmenu-ab-enabledHamza Mahjoubi2025-03-171-0/+4
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
* | | | | Merge pull request #51333 from nextcloud/filePointerCheckGit'Fellow2025-03-171-8/+8
|\ \ \ \ \ | |/ / / / |/| | | | fix(files): Make sure file pointer exists
| * | | | fix(files): Make sure file pointer existsfilePointerCheckGit'Fellow2025-03-071-8/+8
| | |_|/ | |/| | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* | | | fix: skip caching lastSeenQuotaUsage for remote sharesbug/noid/skip-quote-cache-for-remote-sharesDaniel Kesselberg2025-03-141-2/+9
| |/ / |/| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | feat(core): add setup cypress testsskjnldsv2025-03-131-4/+0
| | | | | | | | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* | | fix(RichObjectStrings): Make exception messages for invalid parameters more ↵fix/rich-object-strings/better-exception-messagesprovokateurin2025-03-122-7/+7
| |/ |/| | | | | | | | | useful for debugging Signed-off-by: provokateurin <kate@provokateurin.de>
* | fix(lookup-server): disable lookup server for non-global scale setupsFerdinand Thiessen2025-03-111-2/+4
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | fix(lookup-server): do not query data by defaultFerdinand Thiessen2025-03-111-1/+1
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | fix: fix getNodeFromCacheEntryAndMount using relative pathRobin Appelman2025-03-101-2/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #51029 from nextcloud/fix/deprecate-oc-template-and-cleanupCôme Chilliet2025-03-108-529/+540
|\ \ | | | | | | fix: Deprecate OC_Template, add proper template manager instead
| * | fix: Use a dedicated Exception class for when a template is not foundfix/deprecate-oc-template-and-cleanupCôme Chilliet2025-03-063-20/+20
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | fix: Migrate all uses of OCP\Template to OCP\Template\ITemplateManagerCôme Chilliet2025-03-061-3/+3
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | fix: Cleanup of internal class TemplateLayoutCôme Chilliet2025-03-062-164/+160
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | fix: Fix signatures and types in template related classesCôme Chilliet2025-03-062-5/+4
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | fix: Replace all usage of OC_Template by the new APICôme Chilliet2025-03-062-31/+25
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | fix: Fix psalm issues and add missing methods to ITemplate interfaceCôme Chilliet2025-03-062-8/+7
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | fix: Add missing ITemplate interface and clean code in Template classCôme Chilliet2025-03-063-53/+41
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | fix: Deprecate OC_Template, add proper template manager insteadCôme Chilliet2025-03-064-318/+353
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | chore: Remove now unused methods from User managerCôme Chilliet2025-03-101-47/+0
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | fix: Correctly count disabled users for SAML groups subadminsCôme Chilliet2025-03-101-2/+25
| |/ |/| | | | | | | | | If too many users return -1 as for LDAP so that link is shown Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #51130 from nextcloud/fix/credential-passwordless-authJulius Knorr2025-03-071-5/+9
|\ \ | |/ |/| fix: Do not build encrypted password if there is none
| * fix: Do not build encrypted password if there is nonefix/credential-passwordless-authJulius Knorr2025-03-061-5/+9
| | | | | | | | Signed-off-by: Julius Knorr <jus@bitgrid.net>
* | fix(systemtags): prevent tag edition if restrictedskjnldsv2025-03-061-1/+13
| | | | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* | Merge pull request #51280 from nextcloud/artonge/fix/publicpage_attributeLouis2025-03-051-1/+2
|\ \ | | | | | | fix(login): Properly target public page with attribute
| * | fix(login): Properly target public page with attributeartonge/fix/publicpage_attributeLouis Chemineau2025-03-051-1/+2
| | | | | | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | | Merge pull request #50702 from ↵Andy Scherzinger2025-03-051-2/+4
|\ \ \ | |/ / |/| | | | | | | | Institutional-Investment-Group/feat/support-aws-session-token9 feat(object_store): Add support for session token (STS) in AWS credentials
| * | Merge branch 'master' into feat/support-aws-session-tokenHector Manuel2025-03-0456-652/+759
| |\ \
| * | | feat(object_store): Add support for session token in AWS credentialsHector Valcarcel2025-02-061-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | - Pass session token, either null or with value, to the AWS Credentials constructor Signed-off-by: Hector Valcarcel <hmvalcarcel@gmail.com>
* | | | fix: No IFactory in constructorbugfix/50619/no-session-work-in-constructorMarcel Müller2025-03-051-3/+1
| | | | | | | | | | | | | | | | Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
* | | | fix(files): Don't do session related work in the constructor of the ViewJoas Schilling2025-03-051-10/+10
| | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | fix: use mb_strtolower to convert login namecase-insensitive-loginCleopatra Enjeck M.2025-03-051-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Cleopatra Enjeck M. <patrathewhiz@gmail.com>
* | | | fix: Improve string comparisonCleopatra Enjeck M.2025-03-051-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Cleopatra Enjeck M. <patrathewhiz@gmail.com>
* | | | fix: Use case insensitive check when validating login nameCleopatra Enjeck M.2025-03-051-1/+1
| |/ / |/| | | | | | | | Signed-off-by: Cleopatra Enjeck M. <patrathewhiz@gmail.com>
* | | Merge pull request #47686 from nextcloud/fix/move-email-logic-local-user-backendCôme Chilliet2025-03-043-178/+140
|\ \ \ | | | | | | | | fix: Move login via email logic to local backend
| * | | fix: Move login via email logic to local backendfix/move-email-logic-local-user-backendFerdinand Thiessen2025-03-033-178/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backends can decide which names they accept for login, e.g. with user_ldap you can configure arbitrary login fields. This was a hacky approach to allow login via email, so instead this is now only handled by the local user backend. This also fixes some other related problems: Other logic relys on `backend::get()` which was not handling email, so e.g. password policy could not block users logged in via email if they use out-dated passwords. Similar for other integrations, as the user backend was not consistent with what is a login name and what not. Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>