aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix(settings): Sort all settings - incl declarative settings - by priorityfix/declarative-settings-priorityFerdinand Thiessen2024-09-281-25/+25
| | | | | | | | Previously declarative settings were sorted by priority but behind the "native" settings, this is now fixed, meaning a declarative setting with higher priority than an `ISetting` will be correctly rendered before that `ISetting` in the settings list. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(activity): Update more activity providers to use new exceptionsfollowup/48086/fix-more-activity-providersJoas Schilling2024-09-231-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-192-3/+3
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(settings): pronouns UsersControllerTestJohn Molakvoæ (skjnldsv)2024-09-185-9/+60
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #46480 from nextcloud/fix/mailer-binaryfinder-fallbackRobin Appelman2024-09-161-1/+2
|\ | | | | fix(Mailer): Fix sendmail binary fallback
| * fix(Mailer): Fix sendmail binary fallbackfix/mailer-binaryfinder-fallbackJosh2024-09-161-1/+2
| | | | | | | | | | | | feat: add debug logging to sendmail binary finder Signed-off-by: Josh <josh.t.richards@gmail.com>
* | feat: Make `CheckServerResponseTrait` public and provide as ↵feat/make-setup-check-trait-publicFerdinand Thiessen2024-09-162-253/+0
|/ | | | | | | | | `OCP\SetupCheck\CheckServerResponseTrait` This trait is used by other apps for creating setup checks, so we should provide it instead apps using private API. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-1519-71/+71
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* refactor(settings): `CheckServerResponseTrait` always expect absolute pathFerdinand Thiessen2024-09-132-33/+32
| | | | | | 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>
* fix(setup-checks): Ensure URL with webroot worksFerdinand Thiessen2024-09-132-0/+254
| | | | | | | | | | | We basically mock the way `URLGenerator::getAbsoluteURL` works, so we must make sure that the URL might already contain the webroot. Because `baseURL` and `cliURL` also contain the webroot we need to remove the webroot from the URL first. Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Daniel <mail@danielkesselberg.de> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(settings): Fix sharing exclude groups from password requirement option ↵provokateurin2024-09-031-4/+4
| | | | | | not working Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-255-16/+16
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(SetupCheck): Properly check public access to data directoryFerdinand Thiessen2024-08-081-9/+11
| | | | | | | | | | | | | When checking for public (web) access to the data directory the status is not enough as you might have a webserver that forwards to e.g. a login page. So instead check that the content of the file matches. For this the `.ncdata` file (renamed from `.ocdata`¹) has minimal text content to allow checking. ¹The file was renamed from the legacy `.ocdata`, there is a repair step to remove the old one. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: emails tests after new design fixesskjnldsv2024-08-061-24/+24
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* test(users): Adapt tests to new admin delegation checksLouis Chemineau2024-07-221-0/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(db): Promote the use of `getDatabaseProvider` to reduce the impage of ↵Joas Schilling2024-07-191-3/+1
| | | | | | removed upstream platforms Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(mail): Fix big logos in mail templates for OutlookJoas Schilling2024-07-171-0/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(IntegrityCheck): Ensure the check is run if no results are availableFerdinand Thiessen2024-07-031-0/+135
| | | | | | | | | If there are no cached results the current implementation was also returning an empty array, but this was the same as when there was a successful run. So to distinguish this we return `null` if there are *no* results. In this case we need to rerun the integrity checker. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #46009 from nextcloud/refactor/ajax-cronFerdinand Thiessen2024-06-291-10/+14
|\ | | | | refactor(cron): Use `IAppConfig` for cron settings and migrate ajax cron away from jQuery
| * refactor: Use `IAppConfig` for setting cron typeFerdinand Thiessen2024-06-281-10/+14
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | fix(settings): Adjust SetupCheck for supported database versionsFerdinand Thiessen2024-06-271-1/+1
|/ | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test(settings): fix AccountMigratorTest when using PNG avatarsFerdinand Thiessen2024-06-141-0/+0
| | | | | | | PNG is lossless so we test the imported file for equality with the exported file, but the changed asset was never imported into Nextcloud so it was never initially scaled. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-06-132-0/+0
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Merge pull request #43942 from nextcloud/fix/43612/avoid-pwd-confirm-ssoArthur Schiwon2024-06-072-12/+13
|\ | | | | fix(Session): avoid password confirmation on SSO
| * refactor(Token): introduce scope constantsArthur Schiwon2024-06-052-12/+13
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | chore: Add SPDX headerAndy Scherzinger2024-06-0330-667/+67
|/ | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat(ldap): sync additional properties to profile and SABJake Nabasny2024-05-303-3/+8
| | | | | | | | | | | | | | | Synced from LDAP to profile: - Date of birth Synced from LDAP to SAB (via the profile): - Biography - Date of birth Original code by Jake Nabasny (GitHub: @slapcat) Co-authored-by: Jake Nabasny <jake@nabasny.com> Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud> Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* feat(files_sharing): allow to specify allowed groups to share instead of ↵Corentin Damman2024-03-151-2/+2
| | | | | | | | excluded groups Relates to #3387 Signed-off-by: Corentin Damman <c.damman@intopix.com>
* feat(settings): Cache app discover images to ensure privacy of usersFerdinand Thiessen2024-03-141-0/+15
| | | | | | | Co-authored-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Improve HSTS warning wording as suggested by reviewerCôme Chilliet2024-03-141-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat: Migrate HSTS check to Security headers SetupCheckCôme Chilliet2024-03-131-0/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Migrate security headers check tests and fix the SetupCheck implementationCôme Chilliet2024-03-131-0/+218
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Fix ocm-provider setup check failure detectionCôme Chilliet2024-03-131-7/+7
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(updatenotification): spread the use of new appconfigMaxence Lange2024-03-131-0/+5
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* feat: Add declarative settingsjld31032024-03-121-1/+16
| | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com> Signed-off-by: Julien Veyssier <julien-nc@posteo.net> Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
* feat(settings): Migrate .well-known URL setup check to new APICôme Chilliet2024-03-071-0/+233
| | | | | | Co-authored-by: Côme Chilliet <come.chilliet@nextcloud.com> Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #43906 from nextcloud/enh/migrate-ssl-url-setupcheckCôme Chilliet2024-03-041-2/+0
|\ | | | | feat(settings): Migrate SSL access and URL generation check to SetupCheck API
| * feat(settings): Migrate SSL access and URL generation check to SetupCheck APICôme Chilliet2024-02-291-2/+0
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | feat(settings): Migrate data directory protection check to `SetupCheck`Ferdinand Thiessen2024-02-291-0/+136
|/ | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(settings): Migrate OCM / OCS provider tests to SetupCheckFerdinand Thiessen2024-02-271-0/+170
| | | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge branch 'master' into fix/pages-titles-appsAndrii Rublov2024-02-252-45/+36
|\ | | | | Signed-off-by: Andrii Rublov <github.a@rublov.me>
| * Merge branch 'master' into fix/42480/user-admin-not-adminJohn Molakvoæ2024-02-242-43/+32
| |\ | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| | * fix(settings): Use initial state instead of custom state for server dataFerdinand Thiessen2024-02-232-33/+32
| | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| | * fix(settings): Only use `id` in categories - drop duplicated `ident` propertyFerdinand Thiessen2024-02-231-10/+0
| | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| * | fix(admin role): fix old and wrong way to determine whether user is adminArthur Schiwon2024-02-191-2/+4
| |/ | | | | | | | | | | | | | | | | - fixes Settings knowing who is an admin of non-local group backend groups - obsoletes and removes a little old, deprecated code - double checks proper parameter type on Group\Manager::isAdmin - also fixes legacy OC_User code to check whether user is an admin Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* / [Bugfix]: Titles of pages (dashboard, apps-settings, users-settings) #43327Andrii Rublov2024-02-231-2/+2
|/ | | | Signed-off-by: Andrii Rublov <airublev@outlook.com>
* fix: replace `Account name` by `Login`John Molakvoæ2024-02-131-4/+4
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat: rename users to account or personVincent Petry2024-02-132-5/+5
| | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* test(php): Fix the unit testsBaptiste Fotia2024-01-311-0/+2
| | | | | | | | I added our context in the unit tests following the advice of Louis. Link : https://github.com/nextcloud/server/pull/43186#issuecomment-1916571027 Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
* feat(php,vue): Create a new parameterBaptiste Fotia2024-01-311-0/+2
| | | | Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>