Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests/lib
AgeCommit message (Collapse)Author
2022-07-26Use Symfony IpUtils to check for local IP rangesCôme Chilliet
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-07-07FInish backport to stable22 of #32322Louis Chemineau
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-07-07Add settings to ignore second display name in searchLouis Chemineau
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-07-07Merge pull request #33003 from nextcloud/backport/32719/stable22John Molakvoæ
2022-07-07Allow to disable password policy enforcement for selected groupsCarl Schwan
Signed-off-by: Carl Schwan <carl@carlschwan.eu> Co-authored-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-06-24Fix email shares not being shown to other usersbackport/32719/stable22Richard Steinmetz
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2022-06-17make placeholder a const for reuseArthur Schiwon
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-06-17fix overwriting original vars when loggingArthur Schiwon
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-06-17add serializer testArthur Schiwon
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-06-09Test all scopesbackport/32697/stable22Christopher Ng
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-06-09Fix get avatar authorizationChristopher Ng
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-06-02Add unit tests for encryption's isSystemWideMountPointVincent Petry
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-05-16Fix user agent trimming on installationJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-26Add a unit test for translation with trailing colonJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-25Get not only time-sensitive next job from list but anyKirill Popov
Before the change webcron used to select **only** time-sensitive tasks. Signed-off-by: Kirill Popov <kirill.s.popov@gmail.com>
2022-04-14Merge pull request #31677 from nextcloud/backport/31658/stable22blizzz
[stable22] Limit the length of app password names
2022-04-12confirm user is internal to globalscaleMaxence Lange
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2022-03-23Fix unit testsbackport/31658/stable22Joas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-03-23Limit the length of app password namesJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-03-21fix fs cache test user setupRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-02-22Allow apps to specify if their background job can be delayedJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-02-18Merge pull request #30958 from nextcloud/backport/30949/stable22Vincent Petry
[stable22] Allow to disable AuthToken v1
2022-02-01Fix unit testsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-01-24Fix psalmCarl Schwan
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-14Implement multibucket shift for ObjectStoreJohn Molakvoæ
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-01-13Fix idn emails not working in sharesCarl Schwan
And add check before sending email that email address is valid Fix #30595 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-12Merge pull request #30610 from nextcloud/backport/30588/stable22Joas Schilling
[stable22] Fix undefined/unset scope in account properties
2022-01-11Fix testJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-01-11Prevent loading images that would require too much memory.Joachim Bauch
For most image formats, the header specifies the width/height. PHP allocates an image object from that size, even if the actual image data is much smaller. This image object size is not limited by the limit configured in PHP. The memory limit can be configured through "config.php" setting "preview_max_memory" and defaults to 128 MBytes which should be enough for most images without filling up all memory. Signed-off-by: Joachim Bauch <bauch@struktur.de>
2022-01-07Fix email verificationChristopher Ng
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-12-06fix testsRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-11-23Improve normalizer detecting IPv4 inside of IPv6Vincent Petry
The subnet for an IPv4 address inside of IPv6 is now returned in its IPv4 form. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-11-23Fix getting subnet of ipv4 mapped ipv6 addressesVincent Petry
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-11-19Normalize directory entries in Encoding wrapperVincent Petry
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>
2021-11-17OC_Util: Add fallbacks to check if current locale is UTF8Naoto Kobayashi
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>
2021-11-17Add check whether escapeshellcmd behaves the same as basenameNaoto Kobayashi
Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
2021-11-17Fix missing setlocale with php 8Naoto Kobayashi
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>
2021-11-15Apply changes from master's update to 3.1.3Joas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-11-12Fix unit testsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-11-02Enable Avatar tests as well for PHP>=8Côme Chilliet
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-11-02Revert "Do not run image tests on php8"Côme Chilliet
This reverts commit d690f909284ae4bb4dee7d00318104ee76720bfa. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-10-30Merge pull request #29415 from nextcloud/backport/27440/stable22MichaIng
[stable22] Handle files with `is_file` instead of `file_exists`
2021-10-24Merge pull request #29393 from nextcloud/backport/26725/stable22MichaIng
[stable22] Fix federated scope not shown when public addressbook upload is disabled
2021-10-23Add missing scope to testDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-10-23Merge pull request #29391 from nextcloud/backport/29220/stable22MichaIng
[stable22] s3 external storage fixes
2021-10-23Update Testsacsfer
2021-10-23Tests updateacsfer
2021-10-22ciRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-22Prevent duplicate auth token activity updatesChristoph Wurst
The auth token activity logic works as follows * Read auth token * Compare last activity time stamp to current time * Update auth token activity if it's older than x seconds This works fine in isolation but with concurrency that means that occasionally the same token is read simultaneously by two processes and both of these processes will trigger an update of the same row. Affectively the second update doesn't add much value. It might set the time stamp to the exact same time stamp or one a few seconds later. But the last activity is no precise science, we don't need this accuracy. This patch changes the UPDATE query to include the expected value in a comparison with the current data. This results in an affected row when the data in the DB still has an old time stamp, but won't affect a row if the time stamp is (nearly) up to date. This is a micro optimization and will possibly not show any significant performance improvement. Yet in setups with a DB cluster it means that the write node has to send fewer changes to the read nodes due to the lower number of actual changes. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-10-08explicitly close source stream on local storageDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>