Commit Graph

437 Commits (feat/database/query-result-fetch-associative-fetch-num)

Author SHA1 Message Date
Joas Schilling bed3ffb312
feat(admin): Show an error when the admin is throttled
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-08-21 16:40:24 +07:00
Andy Scherzinger f5c4f55576
Merge pull request #37451 from Fenn-CS/fix/36437/deprecate-php-8.0
Deprecate PHP8.0
2023-04-19 15:28:12 +07:00
Simon L 1a255379e8
Merge pull request #37766 from nextcloud/enh/noid/add-db-file-locking-check
add an admin check for db file locking
2023-04-18 13:31:57 +07:00
Simon L e2ab9bf4af address review and fix tests
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-04-18 11:33:53 +07:00
fenn-cs 60a710c91c Deprecate PHP8.0
PHP8.0 would stop receiving security support on 26 Nov 2023
 hence this deprecation. Next, is the eventual drop of PHP8.0 before its EOL.

This commit also updates the message type from INFO to WARNING if the php
 on file has reached its EOL.

See: https://www.php.net/supported-versions.php

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-04-17 23:45:59 +07:00
Alexander A. Klimov ff02b072ae Drop broken unit test
Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
2023-04-17 23:38:29 +07:00
Simon L 80645a591a add an admin check for db file locking
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-04-17 12:51:33 +07:00
John Molakvoæ f060e5a72f
fix(tests): update jsunit tests after dep and files update
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-04-06 15:31:37 +07:00
Ferdinand Thiessen c97137e434 fix(jsunit): Modify `OC.L10N` tests as it does not depend on `OC.` anymore
Meaning we can not stub `getLocale` but must override the document attribute instead.

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2023-02-20 15:03:31 +07:00
MichaIng 5f90b8eb11
Change X-Robots-Tag header from "none" to "noindex, nofollow"
While "none" is indeed equivalent to "noindex, nofollow" for Google, but seems to be not supported by Bing and probably other search engines.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name#other_metadata_names
https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag?hl=de#comma-separated-list
https://www.bing.com/webmasters/help/which-robots-metatags-does-bing-support-5198d240

Signed-off-by: MichaIng <micha@dietpi.com>
2023-02-15 20:16:51 +07:00
Côme Chilliet d4ed1a13fd
Revert "update 64-bit check wording"
This reverts commit f5ad282418.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-02-07 15:02:54 +07:00
Christopher Ng f6aa5224c4 Focus trap contacts menu with NcHeaderMenu port
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-01-13 23:19:28 +07:00
Valdnet a18a95bbc9
Fix test
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2022-11-09 18:01:20 +07:00
szaimen f5ad282418 update 64-bit check wording
Signed-off-by: szaimen <szaimen@e.mail.de>
2022-11-01 13:50:50 +07:00
Joas Schilling f976d372fe
Adjust tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-09-29 16:38:50 +07:00
Valdnet caac0f069d
Fix test
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2022-09-19 11:13:39 +07:00
Valdnet 187464a70d
Fix test
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2022-09-19 11:12:09 +07:00
Valdnet 58d98a3085
Fix test
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2022-09-19 10:39:32 +07:00
Daniel Kesselberg 700875d90d
Rewrite OC.SystemTags.getDescriptiveTag to vanilla js
For every tag a deprecation warning is emitted.
With 10k tags the ui becomes unresponsive and inspector crashed occasionally.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2022-09-15 17:08:04 +07:00
Simon L 4209dc7d66
Merge pull request #33475 from nextcloud/rakekniven-patch-1
l10n: Changed grammar
2022-08-31 19:34:29 +07:00
Julius Härtl aa85e1c2af
Fix jsunit failures
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-08-31 14:36:20 +07:00
rakekniven a1987158d7
l10n: Changed grammar
Fixed tests for #33475 

Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>

Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
2022-08-11 09:29:30 +07:00
Vincent Petry 3df85205b4
Fix core tests by stubbing debounce
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-07-26 15:46:17 +07:00
szaimen c1b88f927e add a link to system requirements for new 64bit setup check
Signed-off-by: szaimen <szaimen@e.mail.de>
Co-Authored-By: MichaIng <micha@dietpi.com>
2022-07-13 22:16:42 +07:00
szaimen cf9b1082ed add a setup check for 64 bit
Signed-off-by: szaimen <szaimen@e.mail.de>
2022-07-13 09:33:33 +07:00
MichaIng ea0e45d81e Remove legacy Internet Explorer headers
X-UA-Compatible and X-Download-Options headers are interpreted or relevant for Internet Explorer only. With the deprecation of Internet Explorer support in Nextcloud 20 and planned support removal already in Nextcloud 22, these became obsolete and are hereby removed, including their removal from setup checks.

Signed-off-by: MichaIng <micha@dietpi.com>
2022-03-19 18:17:46 +07:00
szaimen 3c8f8bc70a fix tests
Signed-off-by: szaimen <szaimen@e.mail.de>
2022-03-07 18:07:45 +07:00
MichaIng 5ac91f1cb8 Add Nextcloud docs link to OPcache recommends
A link to the Nextcloud documentation is currently only shown when the OPcache module is not loaded at all. This commit moves the link to the generic text above the individual recommendations list.

Additionally remove the obsolete phpOpcacheDocumentation entry from test data arrays, which is not passed anymore by the backend.

Signed-off-by: MichaIng <micha@dietpi.com>
2022-03-03 23:00:07 +07:00
szaimen 445ab85b01 add a test for wasEmailTestSuccessful
Signed-off-by: szaimen <szaimen@e.mail.de>
2022-02-03 20:41:12 +07:00
szaimen fa1ee8f0c7 fix tests
Signed-off-by: szaimen <szaimen@e.mail.de>
2022-02-03 20:41:12 +07:00
Louis Chemineau f752888d91 Fix contactmenu tests
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-01-18 11:03:01 +07:00
Louis Chemineau 14e57bf70a Replace license information to SPDX expression
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-01-11 17:26:40 +07:00
Louis Chemineau d92cbf5149 Typing corrections
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-01-11 17:12:55 +07:00
Vincent Petry 6aba3964d3
Fix JS tests after test lib updates
Prevent XHR during load by checking window.TESTING.
Adjust some expected values.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-01-10 15:08:03 +07:00
MichaIng 82c1beaacb Enhance and complement OPcache setup checks
The current OPcache recommendations match the PHP defaults, but the values are much higher than required to run Nextcloud, even with a high number of installed apps. On the other hand, when other applications use the same OPcache instance, the recommended values might not be sufficient. Accurate recommendations need to take into account actual OPcache usage.

With this commit, recommendations are shown to raise the config value if more than 90% of max cache size or number of keys is used.

The checks whether the module is loaded and whether the OPcache is properly configured have been merged into a single function. This allowed to reduce the overhead of OPcache configuration checks when the module is not loaded.

A check has been added whether Nextcloud is permitted to use the OPcache API. Without this, inconsistencies during core or app upgrades may cause errors and OPcache usage cannot be determined for the new usage based checks.

OPcache usage based checks are skipped when Nextcloud is not permitted to use the API.

Signed-off-by: MichaIng <micha@dietpi.com>
2021-12-19 23:38:21 +07:00
Vitor Mattos e55ceb2bb1
Show warning on admin settings page
Signed-off-by: Vitor Mattos <vitor@php.rio>
2021-10-23 00:54:50 +07:00
Carl Schwan a01917510d
Merge pull request #28863 from nextcloud/Valdnet-patch-2
l10n: Correct spelling
2021-09-22 14:08:25 +07:00
Valdnet 538bfc6a94
Correct spelling in test
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2021-09-22 13:21:23 +07:00
Stefan d4cc22daad Issue 16719: CheckSetupController.php: bugfix: test-setup was incorrect
Signed-off-by: Stefan <Stefan.Schilling@EXXETA.com>
2021-09-17 13:32:42 +07:00
Stefan 8758b36ebb Issue 16719: CheckSetupController.php now checks configured temporary directory for existence and if it's writable
Signed-off-by: Stefan <Stefan.Schilling@EXXETA.com>
2021-09-17 13:32:42 +07:00
Guillaume Virlet 910c208c4c fix broken js test
Signed-off-by: Guillaume Virlet <github@virlet.org>
2021-04-24 09:24:52 +07:00
Roeland Jago Douma 5ae5aae324 Fix the jsunit tests
Followup to #25874

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-02 21:30:32 +07:00
Joas Schilling db3b698fc0
Hello 2016
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-01 20:28:12 +07:00
Joas Schilling 96ae83c529
Remove HTML from setup check translations
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-01 20:24:02 +07:00
Julius Härtl be38b924d1 jsunit: harden avatar tests to pass with fractional scaling of elements
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-29 08:42:34 +07:00
Christoph Wurst f37e150d1c
Merge pull request #24702 from nextcloud/enhancement/well-known-handler-api
Add well known handlers API
2020-12-18 13:34:04 +07:00
Julius Härtl b9330887ca
Merge pull request #24740 from nextcloud/bugfix/24738/improve-phone-region-help
Improve hints for default_phone_region
2020-12-17 15:29:54 +07:00
Joas Schilling 15956c20c3
Improve hints for default_phone_region
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-12-17 09:14:21 +07:00
Christoph Wurst 6995223b1e
Add well known handlers API
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-12-16 13:13:05 +07:00
Arthur Schiwon 1995097cb8
promoted bad memory_limit setting to error as it may break updater
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2020-12-15 23:50:26 +07:00