summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #30056 from nextcloud/backport/29735/stable21Louis2021-12-081-1/+0
|\ | | | | [stable21] find users for background scan one by one
| * fix testsRobin Appelman2021-12-021-1/+0
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #29834 from nextcloud/carl/bugfix/file-search-21John Molakvoæ2021-12-061-0/+24
|\ \ | |/ |/|
| * Fix search results filteringCarl Schwan2021-11-261-0/+24
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Improve normalizer detecting IPv4 inside of IPv6Vincent Petry2021-11-231-1/+9
| | | | | | | | | | | | | | The subnet for an IPv4 address inside of IPv6 is now returned in its IPv4 form. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | Fix getting subnet of ipv4 mapped ipv6 addressesVincent Petry2021-11-231-0/+4
| | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | Normalize directory entries in Encoding wrapperVincent Petry2021-11-191-1/+43
|/ | | | | | | | | | | | Directory entry file names are now normalized in getMetaData(), getDirectoryContents() and opendir(). This makes the scanner work properly as it assumes pre-normalized names. In case the names were not normalized, the scanner will now skip the entries and display a warning when applicable. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* OC_Util: Add fallbacks to check if current locale is UTF8Naoto Kobayashi2021-11-171-2/+4
| | | | | | | | | Using escapeshellcmd to get current locale causes error if the function is disabled. Add fallbacks to prevent the error. Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
* Add check whether escapeshellcmd behaves the same as basenameNaoto Kobayashi2021-11-171-0/+2
| | | | Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
* Fix missing setlocale with php 8Naoto Kobayashi2021-11-171-0/+8
| | | | | | | | | When php version = 8, basename('§') does not bug even if LC_ALL is non-UTF-8 locale. This cause OC_Util::isSetLocaleWorking() to skip setlocale("C.UTF-8"). Fix it by using escapeshellcmd instead of basename. Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
* Apply changes from master's update to 3.1.3Joas Schilling2021-11-151-7/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge branch 'stable21' into backport/29479/stable21Côme Chilliet2021-11-041-0/+1
|\ | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Merge pull request #29384 from nextcloud/backport/26725/stable21John Molakvoæ2021-11-031-0/+1
| |\
| | * Add missing scope to testDaniel Calviño Sánchez2021-10-221-0/+1
| | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Enable Avatar tests as well for PHP>=8Côme Chilliet2021-11-021-20/+0
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Revert "Do not run image tests on php8"Côme Chilliet2021-11-021-68/+0
|/ / | | | | | | | | | | This reverts commit d690f909284ae4bb4dee7d00318104ee76720bfa. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #29416 from nextcloud/backport/27440/stable21MichaIng2021-10-301-2/+2
|\ \ | | | | | | [stable21] Handle files with `is_file` instead of `file_exists`
| * | Update Testsacsfer2021-10-231-1/+1
| | |
| * | Tests updateacsfer2021-10-231-1/+1
| |/
* / ciRobin Appelman2021-10-261-0/+3
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* explicitly close source stream on local storageDaniel Kesselberg2021-10-081-1/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Add email addresses to contacts menuDaniel Kesselberg2021-09-171-1/+3
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Add database ratelimiting backendLukas Reschke2021-09-132-36/+19
| | | | | | | In case no distributed memory cache is specified this adds a database backend for ratelimit purposes. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Merge pull request #28741 from nextcloud/backport/28725/stable21Lukas Reschke2021-09-071-27/+0
|\ | | | | [stable21] Remove 2FA exemption from PublicPage annotation
| * Adjust testsLukas Reschke2021-09-071-27/+0
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Merge pull request #27406 from nextcloud/backport/24966/stable21John Molakvoæ2021-09-071-4/+14
|\ \ | |/ |/|
| * Update EncryptionTest.phpJasper Knockaert2021-09-031-3/+3
| |
| * 2nd attempt to fix testsJasper Knockaert2021-09-031-7/+11
| |
| * attemtp to fix testJasper Knockaert2021-09-031-1/+7
| |
* | Resolve absolute path in testsLukas Reschke2021-09-071-1/+1
|/ | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Use IURLGenerator function to get value of `\OC::$WEBROOT` globalJonas Meurer2021-08-161-0/+6
| | | | Signed-off-by: Jonas Meurer <jonas@freesources.org>
* better cleanup of user files on user deletionRobin Appelman2021-08-121-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix Folder->getById() when a single storage is mounted multiple timesRobin Appelman2021-08-091-68/+30
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add test for searching within a "root jail"Robin Appelman2021-07-291-0/+18
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Let memory limit set in tests fit the used amountJulius Härtl2021-07-221-4/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use minio for s3 testsJulius Härtl2021-07-052-4/+10
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Run s3 tests againJulius Härtl2021-07-051-6/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Handle single action unshareJulius Härtl2021-06-291-4/+16
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #27359 from nextcloud/backport/27354/stable21Morris Jobke2021-06-071-11/+25
|\ | | | | [stable21] Escape filename in Content-Disposition
| * Escape filename in Content-DispositionLukas Reschke2021-06-021-11/+25
| | | | | | | | | | | | We should escape all occurences of ' and \ in here. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Set umask before operations that create local filesRobin Appelman2021-06-041-3/+34
|/ | | | | | this solves issues where "other php stuff" is messing with the umask Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix ratelimit templateJoas Schilling2021-04-271-11/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Validate the website field input to be a valid URLJoas Schilling2021-04-261-0/+26
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make Testcase class compatible with phpunit-9.5Joas Schilling2021-04-221-3/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix empty password check for mail sharesVincent Petry2021-04-191-2/+2
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Increase subnet matcherLukas Reschke2021-04-121-2/+10
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Merge pull request #26400 from nextcloud/backport/26061/stable21Lukas Reschke2021-04-061-13/+17
|\ | | | | [stable21] Log and continue when failing to update encryption keys during for individual files
| * Log and continue when failing to update encryption keys during for ↵Julius Härtl2021-04-011-13/+17
| | | | | | | | | | | | individual files Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Get the parent directory before creating a file from a templateJulius Härtl2021-04-011-6/+16
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* gracefully handle deleteFromSelf when share is already goneArthur Schiwon2021-03-301-3/+0
| | | | | | - handling race conditions Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>