aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* test(MigrationService): adjust for changed naming restrictionsFerdinand Thiessen6 days1-211/+387
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test(DB): split MetadataManager tests into their own classFerdinand Thiessen6 days2-176/+198
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(cardav): only show useres from enabled addressBooks in contacts menufix/noid/contactsmenu-ab-enabledHamza Mahjoubi8 days1-18/+64
| | | | Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
* fix(RichObjectStrings): Make exception messages for invalid parameters more ↵fix/rich-object-strings/better-exception-messagesprovokateurin13 days1-2/+2
| | | | | | useful for debugging Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(lookup-server): disable lookup server for non-global scale setupsFerdinand Thiessen2025-03-111-14/+13
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(lookup-server): do not query data by defaultFerdinand Thiessen2025-03-111-4/+4
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #51029 from nextcloud/fix/deprecate-oc-template-and-cleanupCôme Chilliet2025-03-101-17/+36
|\ | | | | fix: Deprecate OC_Template, add proper template manager instead
| * chore: Adapt TemplateLayout testsCôme Chilliet2025-03-061-17/+36
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #51130 from nextcloud/fix/credential-passwordless-authJulius Knorr2025-03-071-0/+40
|\ \ | |/ |/| 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-0/+40
| | | | | | | | Signed-off-by: Julius Knorr <jus@bitgrid.net>
* | Merge pull request #47686 from nextcloud/fix/move-email-logic-local-user-backendCôme Chilliet2025-03-041-148/+0
|\ \ | | | | | | 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-031-148/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge pull request #51116 from nextcloud/enh/noid/nullable-rangeArthur Schiwon2025-03-041-1/+11
|\ \ \ | |/ / |/| | feat(AppFramework): extend range check to optional parameters
| * | feat(AppFramework): extend range check to optional parametersenh/noid/nullable-rangeArthur Schiwon2025-02-271-1/+11
| | | | | | | | | | | | | | | | | | | | | Now it also applies when a paramater is documtend with a pending |null, but no further unionation is considered. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | refactor(TempManager): Simplify and unify implementations and remove legacy ↵refactor/tempmanagerprovokateurin2025-03-031-18/+7
|/ / | | | | | | | | | | behavior Signed-off-by: provokateurin <kate@provokateurin.de>
* | Merge pull request #50999 from nextcloud/fix/move-away-from-oc-appCôme Chilliet2025-02-272-12/+10
|\ \ | | | | | | fix: Replace OC_App calls by IAppManager
| * | fix: Remove incorrect `@throws` annotations and move away from OC_Appfix/move-away-from-oc-appCôme Chilliet2025-02-241-12/+7
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | fix(tests): Adapt tests to appManager usageCôme Chilliet2025-02-241-0/+3
| |/ | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* / feat: support migrating an instance to shardingsharding-existingRobin Appelman2025-02-251-1/+1
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* refactor: convert sanitize account properties repair step to background jobfix/account-property-validationFerdinand Thiessen2025-02-242-10/+55
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Optimize repair step performanceFerdinand Thiessen2025-02-241-1/+26
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: validate account properties as a repair stepFerdinand Thiessen2025-02-241-0/+89
| | | | | | | | Replace `ValidatePhoneNumber` from Nextcloud 21 with a new repair step, `ValidateAccountProperties` which validates and sanitizes all account properties. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Change UserAgent to *cloudfix/noid/thudnerbird-addon-useragentJohannes Endres2025-02-191-1/+1
| | | | | Co-authored-by: Daniel Kesselberg <mail@danielkesselberg.de> Signed-off-by: Johannes Endres <je@johannes-endres.de>
* Merge pull request #49648 from nextcloud/fix/clarify-app-manager-methodsCôme Chilliet2025-02-132-7/+7
|\ | | | | Clarify app manager method names
| * fix: Replace getInstalledApps calls with getEnabledAppsfix/clarify-app-manager-methodsCôme Chilliet2025-02-132-4/+4
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * fix: Replace isInstalled calls with isEnabledForAnyone or isEnabledForUserCôme Chilliet2025-02-131-3/+3
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix: Fix UserTest to return valid configuration valuesCôme Chilliet2025-02-101-0/+6
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #50660 from nextcloud/fix/mime-intJohn Molakvoæ2025-02-061-0/+35
|\ | | | | fix: make sure we process mime extensions as string
| * fix: make sure we process mime extensions as stringskjnldsv2025-02-051-0/+35
| | | | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* | fix(FediverseAction): Ensure valid fediverse links are generatedFerdinand Thiessen2025-02-061-0/+186
| | | | | | | | | | | | Harden also for existing values of the profile. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | fix(AccountManager): Sanitize social media handlesFerdinand Thiessen2025-02-061-50/+200
|/ | | | | | Ensure to only accept valid X and fediverse handles. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Exclude non accepted shares when computing access listartonge/fix/access_list_unaccepted_sharesLouis Chemineau2025-01-301-0/+9
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix: Harden files scanner for invalid null accessFerdinand Thiessen2025-01-282-5/+10
| | | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(sharing): Move permission validation to share managerFerdinand Thiessen2025-01-281-4/+24
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #48581 from hammer065/fix/issue-35936Andy Scherzinger2025-01-271-0/+31
|\ | | | | fix: Filter for folders in cleanup old preview job
| * fix(preview): Filter for folders in cleanup old preview jobDario Mehlich2025-01-271-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #35936. When running `OC\Preview\BackgroundCleanupJob`, the main iteration loop in `run()` expects a folder, however, `getOldPreviewLocations()` currently does not filter by mimetype and therefore can yield a non-folder entry which causes an Exception when constructing the Folder impl. Filtering for `httpd/unix-directory`, as `getNewPreviewLocations()` already does, fixes this issue. Signed-off-by: Dario Mehlich <d.mehlich@gmail.com>
* | fix(ratelimit): Allow to bypass rate-limit from bruteforce allowlistbugfix/noid/allow-ratelimit-bypassJoas Schilling2025-01-273-213/+171
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #50273 from nextcloud/artonge/fix/metadata_field_searchFerdinand Thiessen2025-01-251-2/+7
|\ | | | | fix: Metadata field search
| * fix: Metadata field searchartonge/fix/metadata_field_searchLouis Chemineau2025-01-201-2/+7
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | Merge pull request #50331 from nextcloud/fix/perf/cache-avilable-taskt-typesMarcel Klehr2025-01-251-0/+2
|\ \ | | | | | | fix(taskprocessing): More caching
| * | fix(taskprocessing): Fix testsMarcel Klehr2025-01-241-0/+2
| | | | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* | | fix(TemplateLayout): `core` is not an app but the server itselffix/get-version-of-coreFerdinand Thiessen2025-01-241-13/+19
| | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | fix: Correctly return app id and app version for `core` styles and imagesFerdinand Thiessen2025-01-241-0/+103
|/ / | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | Revert "fix(Share20\Manager): Ensure node is still accessible when checking ↵revert/share-node-accessibleprovokateurin2025-01-241-29/+4
| | | | | | | | | | | | | | | | share" This reverts commit c2ca99e2f641396b6823c1e675afd3ecb486e744. Signed-off-by: provokateurin <kate@provokateurin.de>
* | feat(systemtags): add setting to block non admin to create system tagsBenjamin Gaussorgues2025-01-221-20/+92
| | | | | | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | test: fix periodic `Test\Group\DatabaseTest::testSearchGroups` failurejtr/fix-testSearchGroupsJosh2025-01-221-2/+2
| | | | | | Signed-off-by: Josh <josh.t.richards@gmail.com>
* | Merge pull request #50214 from nextcloud/feat/show-time-diff-userFerdinand Thiessen2025-01-201-27/+79
|\ \ | |/ |/| feat(contacts): Show time difference for users in different timezones
| * feat(contacts): Show time difference for users in different timezonesfeat/show-time-diff-userFerdinand Thiessen2025-01-161-27/+79
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | Merge pull request #50171 from nextcloud/enh/limit-ldap-user-countCôme Chilliet2025-01-161-32/+9
|\ \ | |/ |/| Limit ldap user count
| * chore(tests): Adapt tests to the countUsers refactorCôme Chilliet2025-01-141-32/+9
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>