Commit Graph

5952 Commits (stable21)

Author SHA1 Message Date
Christoph Wurst 1ec9961fb5 fix(config): Make sure user keys are strings
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2 months ago
Joas Schilling 159676f044
Merge pull request #38280 from nextcloud/backport/38274/stable21
[stable21] fix(middleware): Also abort the request when reaching max delay in af…
1 year ago
Joas Schilling 4318969883
fix(tests): Fix more tests in backport
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 year ago
Joas Schilling 6ae4876fe9
fix(middleware): Also abort the request when reaching max delay in afterController
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 year ago
Joas Schilling 33f5016998
fix(tests): Adjust unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 year ago
Joas Schilling 69c5dc2927
fix(CI): Adjust expected result
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 year ago
Joas Schilling 17f4160f05 Fix user agent trimming on installation
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling 924eb1ea84 Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling efbbdb79df Limit the length of app password names
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling d106ac7567 Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
John Molakvoæ 301ecd0fc0
Merge pull request #30660 from nextcloud/backport/29622/stable21 2 years ago
John Molakvoæ 6b94630f44
Implement multibucket shift for ObjectStore
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2 years ago
Carl Schwan 2f10bc14f7
Fix idn emails not working in shares
And add check before sending email that email address is valid

Fix #30595

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years ago
Joachim Bauch 3ad763cf18 Prevent loading images that would require too much memory.
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>
2 years ago
Louis f41c1fffff
Merge pull request #30056 from nextcloud/backport/29735/stable21
[stable21] find users for background scan one by one
2 years ago
John Molakvoæ fda86f8c8c
Merge pull request #29834 from nextcloud/carl/bugfix/file-search-21 2 years ago
Robin Appelman d89ce5a410 fix tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Carl Schwan 8f9d1b31df
Fix search results filtering
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
3 years ago
Vincent Petry d9a5f2867e Improve normalizer detecting IPv4 inside of IPv6
The subnet for an IPv4 address inside of IPv6 is now returned in its
IPv4 form.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years ago
Vincent Petry 87af149292 Fix getting subnet of ipv4 mapped ipv6 addresses
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years ago
Vincent Petry ca37664887 Normalize directory entries in Encoding wrapper
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>
3 years ago
Naoto Kobayashi b9b1ef1319 OC_Util: Add fallbacks to check if current locale is UTF8
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>
3 years ago
Naoto Kobayashi 7bb43a1e13 Add check whether escapeshellcmd behaves the same as basename
Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
3 years ago
Naoto Kobayashi e9c6de5c79 Fix missing setlocale with php 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>
3 years ago
Joas Schilling 96c8e0dad3
Apply changes from master's update to 3.1.3
Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years ago
Côme Chilliet dde1880be7
Merge branch 'stable21' into backport/29479/stable21
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
3 years ago
John Molakvoæ d87894a287
Merge pull request #29384 from nextcloud/backport/26725/stable21 3 years ago
Côme Chilliet 8bc3bed093
Enable Avatar tests as well for PHP>=8
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
3 years ago
Côme Chilliet efd689ea82
Revert "Do not run image tests on php8"
This reverts commit d690f90928.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
3 years ago
MichaIng e250aef6b4
Merge pull request #29416 from nextcloud/backport/27440/stable21
[stable21] Handle files with `is_file` instead of `file_exists`
3 years ago
Robin Appelman cf6da08f00
ci
Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years ago
acsfer 8610099c5f Update Tests 3 years ago
acsfer b3482b1d06 Tests update 3 years ago
Daniel Calviño Sánchez c628411a71 Add missing scope to test
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
3 years ago
Daniel Kesselberg 98d3836650
explicitly close source stream on local storage
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
3 years ago
Daniel Kesselberg 32ee325887
Add email addresses to contacts menu
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
3 years ago
Lukas Reschke f416cacc64 Add database ratelimiting backend
In case no distributed memory cache is specified this adds
a database backend for ratelimit purposes.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
3 years ago
Lukas Reschke 9ee93ed0bd
Merge pull request #28741 from nextcloud/backport/28725/stable21
[stable21] Remove 2FA exemption from PublicPage annotation
3 years ago
John Molakvoæ 00c2aa5dad
Merge pull request #27406 from nextcloud/backport/24966/stable21 3 years ago
Lukas Reschke 694d10381b Adjust tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
3 years ago
Lukas Reschke d0a3746349 Resolve absolute path in tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
3 years ago
Jasper Knockaert 5341807b14 Update EncryptionTest.php 3 years ago
Jasper Knockaert bbf191bdef 2nd attempt to fix tests 3 years ago
Jasper Knockaert ab14c0322b attemtp to fix test 3 years ago
Jonas Meurer d528243c0c Use IURLGenerator function to get value of `\OC::$WEBROOT` global
Signed-off-by: Jonas Meurer <jonas@freesources.org>
3 years ago
Robin Appelman ca3a6251d2
better cleanup of user files on user deletion
Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years ago
Robin Appelman 4c954e7dd1 fix Folder->getById() when a single storage is mounted multiple times
Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years ago
Robin Appelman 96b9aeecd5
add test for searching within a "root jail"
Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years ago
Julius Härtl 055f722052 Let memory limit set in tests fit the used amount
Signed-off-by: Julius Härtl <jus@bitgrid.net>
3 years ago
Julius Härtl e41f06d7c4 Use minio for s3 tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
3 years ago