Commit graph

19104 commits

Author SHA1 Message Date
John Molakvoæ
218a96ebf9
Revert "[stable21] better cleanup of filecache when deleting an external storage" 2021-07-27 15:51:10 +02:00
John Molakvoæ
ab233d5c2d
Merge pull request #27729 from nextcloud/revert-26587-backport/26581/stable21
[stable21] Revert "Fix constraint violation detection in QB Mapper"
2021-07-27 14:05:44 +02:00
John Molakvoæ
0aed3ecd76
Merge pull request #26724 from nextcloud/backport/25417/stable21 2021-07-27 14:05:16 +02:00
John Molakvoæ
606b5fe154
Merge pull request #27205 from nextcloud/backport/26936/stable21
[stable21] better cleanup of filecache when deleting an external storage
2021-07-27 14:04:25 +02:00
Lukas Reschke
0bca199b55 Sanitize more functions from the encryption app
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-07-21 22:00:32 +02:00
tobiasKaminsky
cddc18d527 Disable HEIC image preview provider for performance concerns
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2021-07-21 08:33:43 +00:00
Daniel Kesselberg
9dfbde64a0 Mask password for Redis and RedisCluster on connection failure
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2021-07-19 23:11:44 +00:00
MichaIng
4ac36dc474
Merge pull request #27753 from nextcloud/backport/27586/stable21
[stable21] Reset checksum when writing files to object store
2021-07-15 21:13:15 +02:00
Nextcloud bot
e9517b811c
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-07-15 10:37:56 +00:00
Chih-Hsuan Yen
be51d8390b
Correctly skip suppressed errors in PHP 8.0
Applies the suggested transformation mentioned in
https://www.php.net/manual/en/migration80.incompatible.php,

> The @ operator will no longer silence fatal errors (E_ERROR,
> E_CORE_ERROR, E_COMPILE_ERROR, E_USER_ERROR, E_RECOVERABLE_ERROR,
> E_PARSE). Error handlers that expect error_reporting to be 0 when
> @ is used, should be adjusted to use a mask check instead

The new code still works on PHP 7, as error_reporting() already
returns 0 when diagnostics are suppressed.

This fixes https://github.com/nextcloud/server/issues/25807 in PHP 8.0.
For PHP 7.x, https://github.com/nextcloud/server/pull/22243 suppresses
the E_NOTICE message from the second session_start() call with the error
suppression operator @, and thus those E_NOTICE messages are still
logged in PHP 8.0.

See also https://github.com/nextcloud/server/issues/25806

Signed-off-by: Chih-Hsuan Yen <yan12125@gmail.com>
2021-07-14 13:14:30 +08:00
Robin Appelman
feb640cd64
better cleanup of filecache when deleting an external storage
this way it can delete the cache entries even with per-user credentials

Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-07-13 08:54:30 +02:00
Nextcloud bot
e956940c96
[tx-robot] updated from transifex 2021-07-10 02:31:43 +00:00
Nextcloud bot
757bfc4369
[tx-robot] updated from transifex 2021-07-09 02:26:30 +00:00
Nextcloud bot
5352b1da47
[tx-robot] updated from transifex 2021-07-08 02:26:57 +00:00
MichaIng
8edcc8142f Fix in locking cache check
The intention obviously was to check whether $lockingCacheClass is defined, and existing class, and available. It was however checked whether the $distributedCacheClass is an existing class, which would have caused an exception already in the previous distributed cache check.

Signed-off-by: MichaIng <micha@dietpi.com>
2021-07-06 17:08:42 +00:00
Nextcloud bot
c4159e37ed
[tx-robot] updated from transifex 2021-07-06 02:26:13 +00:00
Daniel Calviño Sánchez
3ae1ec4d2a Guard against null phone number value
"parsePhoneNumber()" expects a string, so a TypeError would be thrown if
the phone number value is null.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-07-02 14:27:23 +02:00
Julius Härtl
c16d5b1077 Reset checksum when writing files to object store
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-07-01 15:36:07 +00:00
John Molakvoæ
91af4e2a15
Merge pull request #27107 from nextcloud/backport/27043/stable21 2021-07-01 11:39:47 +02:00
Nextcloud bot
053e1153eb
[tx-robot] updated from transifex 2021-07-01 02:24:59 +00:00
Christoph Wurst
affe97235d
Revert "[stable21] Fix constraint violation detection in QB Mapper" 2021-06-30 14:38:11 +02:00
Nextcloud bot
6467112605
[tx-robot] updated from transifex 2021-06-28 02:25:22 +00:00
Nextcloud bot
77a2b03e50
[tx-robot] updated from transifex 2021-06-27 02:25:52 +00:00
Nextcloud bot
364d9c0ed6
[tx-robot] updated from transifex 2021-06-26 02:25:54 +00:00
Christoph Wurst
5dd3b5067c Unshift crash reports when they are loaded, to break the recusion
If, for whatever reason, during the loading of a crash reporter a new
log entry is generated, then the lazy loading mechanism will be invoked
*again* while it's already executed. This doesn't result in an endless
recursion, but means that the crash reporters will be built and
registered many times. This then means any further log entry will be
logged x times instead of once.

Unshift makes sure to take the class off the registration list right
away, so another invokation of the same method won't try to do the same
job.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-06-25 06:37:07 +00:00
Nextcloud bot
4058c4c7db
[tx-robot] updated from transifex 2021-06-25 02:25:45 +00:00
Nextcloud bot
9d41426886
[tx-robot] updated from transifex 2021-06-24 02:25:33 +00:00
korelstar
7b8d4b2d37 fix error when using CORS with no auth credentials 2021-06-23 20:57:11 +02:00
Nextcloud bot
f71306f8ee
[tx-robot] updated from transifex 2021-06-23 02:26:30 +00:00
Lukas Reschke
72309a158a Remove throwing annotation
This class was just introduced in Nc 21.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-06-22 13:53:28 +00:00
Lukas Reschke
ba12eb7aba Use execute instead of executeStatement
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-06-22 13:53:28 +00:00
Morris Jobke
e757a5ecfd Properly cleanup entries of WebAuthn on user deletion
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-06-22 13:53:27 +00:00
Nextcloud bot
6069ea83e5
[tx-robot] updated from transifex 2021-06-22 02:27:12 +00:00
Nextcloud bot
c7d7f9ca94
[tx-robot] updated from transifex 2021-06-20 02:27:16 +00:00
Nextcloud bot
d932129529
[tx-robot] updated from transifex 2021-06-19 02:46:31 +00:00
Nextcloud bot
08ca2e972b
[tx-robot] updated from transifex 2021-06-18 02:27:13 +00:00
Nextcloud bot
1bbb803ad8
[tx-robot] updated from transifex 2021-06-17 02:26:02 +00:00
Julius Härtl
420d395947
Merge pull request #27415 from nextcloud/backport/26494/stable21 2021-06-14 09:48:41 +02:00
Nextcloud bot
89bc4acfa2
[tx-robot] updated from transifex 2021-06-13 02:26:18 +00:00
Nextcloud bot
e9a87a1025
[tx-robot] updated from transifex 2021-06-12 02:27:12 +00:00
Julius Härtl
6e190b1a55
Merge pull request #27303 from nextcloud/backport/27062/stable21
[stable21] properly use limit and offset for search in Jail wrapper
2021-06-09 08:07:49 +02:00
Nextcloud bot
3708360f3b
[tx-robot] updated from transifex 2021-06-09 02:26:29 +00:00
Nextcloud bot
5339679083
[tx-robot] updated from transifex 2021-06-08 02:26:33 +00:00
Richard de Boer
9f3824b884 Check whether output buffering is active before turning it off
Before we just turned it off and @suppressed the error if ob was not active.
In PHP 8 this error is no longer suppressed, so try to not cause it at all.

Signed-off-by: Richard de Boer <git@tubul.net>
2021-06-07 21:33:53 +00:00
Richard de Boer
088118f548 Fix a usort comparison function returning a boolean instead of an integer
PHP 8 shows deprecation warnings about this, see #25806

Signed-off-by: Richard de Boer <git@tubul.net>
2021-06-07 21:33:52 +00:00
Richard de Boer
7e9d459fea Fix functions taking optional parameters before required ones
PHP 8 shows deprecation warnings about this, see #25806
Removes the "default" values, as they actually are required parameters anyway.

Signed-off-by: Richard de Boer <git@tubul.net>
2021-06-07 21:33:52 +00:00
Morris Jobke
4136993f44
Merge pull request #27336 from nextcloud/backport/27329/stable21
[stable21] Propagate throttling on OCS response
2021-06-07 10:39:52 +02:00
Morris Jobke
5412605219
Merge pull request #27359 from nextcloud/backport/27354/stable21
[stable21] Escape filename in Content-Disposition
2021-06-07 10:37:45 +02:00
Nextcloud bot
87363686b7
[tx-robot] updated from transifex 2021-06-07 02:25:24 +00:00
John Molakvoæ
390bd12c8a
Merge pull request #27333 from nextcloud/backport/27328/stable21
[stable21] emit UserLoggedInEvent on apache auth
2021-06-06 11:00:24 +02:00