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-01-27Fix psalm not runningCarl Schwan
The issue was that we were using psalm/phar instead of vimeo/psalm. This caused issue with the custom psalm plugin in buildd/psalm. This is using the opportunity to also update the psalm version from 3.8 to 3.17 and the php-cs-fixer too. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-14Merge pull request #30659 from nextcloud/backport/29622/stable23Julius Härtl
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 #30611 from nextcloud/backport/30588/stable23Joas Schilling
[stable23] 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-02fix testsRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-11-26add method to shorten a string to given byte size to UtilsArthur Schiwon
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
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-16OC_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-16Add check whether escapeshellcmd behaves the same as basenameNaoto Kobayashi
Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
2021-11-16Fix 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-12Fix unit testsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-11-09Add unit test for share enumeration methodJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-11-09Move common logic to share managerJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-10-28Enable Avatar tests as well for PHP>=8Côme Chilliet
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-10-28Revert "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-28Add an OCP for trusted domain helperJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-10-23Merge pull request #27440 from nextcloud/is-file-handleJohn Molakvoæ
2021-10-23Merge pull request #29363 from nextcloud/fair-use-pushJohn Molakvoæ
2021-10-23Fair use of push notificationsJoas Schilling
We want to keep offering our push notification service for free, but large users overload our infrastructure. For this reason we have to rate-limit the use of push notifications. If you need this feature, consider setting up your own push server or using Nextcloud Enterprise. Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-10-23fix populating account array with missing default valuesArthur Schiwon
- both $userData and $defaultUserData have numeric indices - each element contains at least the name and other fields - appending the missing data array is sufficient Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-10-22Update Testsacsfer
2021-10-22Merge pull request #29220 from nextcloud/s3-external-listJohn Molakvoæ
2021-10-22Merge pull request #26725 from ↵John Molakvoæ
nextcloud/fix-federated-scope-not-shown-when-public-addressbook-upload-is-disabled
2021-10-22Merge pull request #26347 from J0WI/clean-path-regexJohn Molakvoæ
2021-10-22Merge pull request #29344 from nextcloud/dependabot/composer/doctrine/dbal-3.1.3John Molakvoæ
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-22Bump doctrine/dbal from 3.0.0 to 3.1.3Christoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-10-21Merge pull request #29256 from ↵Julien Veyssier
nextcloud/fix/noid/harmonize-appstoreenabled-check Fix appstoreenabled check
2021-10-21Fix unit testsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-10-20Change origin field to appIdJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-10-20Do not remove current user on findOneJohn Molakvoæ
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2021-10-20Add appName to contactsmenu action APIJohn Molakvoæ
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2021-10-19Profile backendChristopher Ng
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-10-19Add new account propertiesChristopher Ng
- New properties - Organisation - Role - Headline - Biography - Profile Enabled property - Fix errors with building default account properties - Fix L10N factory method `getLanguage` not public error - Update tests Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-10-15ciRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-15Merge pull request #27217 from ↵John Molakvoæ
nextcloud/techdebt/noid/make-debugging-a-cron-job-easier
2021-10-15Merge pull request #29235 from nextcloud/feat/appstore/enterpriseJohn Molakvoæ
2021-10-14Merge pull request #29231 from nextcloud/fix/calendar-providers-instancesChristoph Wurst
Build instances of the calendar providers before using them
2021-10-14Build instances of the calendar providers before using themChristoph Wurst
What we get from the registration context are only the class names. We still have to load the classes before we can use them. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-10-14Send the subscription key to the appstore requestsJohn Molakvoæ
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2021-10-14Merge pull request #29157 from nextcloud/enh/opendocumentJulius Härtl
2021-10-14Move queries to the joblistJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-10-14Merge pull request #29135 from nextcloud/feat/appstore-filteringJoas Schilling
Allow to filter apps from the appstore
2021-10-14Add Public Calendar ProviderAnna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>