Commit graph

12569 commits

Author SHA1 Message Date
Carl Schwan
7416f44dbc Mark method as deprecated
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
(cherry picked from commit ef31396727)
2022-12-05 16:10:55 +00:00
Julius Härtl
0f7260de03 Fix decryption fallback after adding a secret
Signed-off-by: Julius Härtl <jus@bitgrid.net>
(cherry picked from commit a6796b4247)
2022-12-05 16:10:55 +00:00
Julius Härtl
3ebf7b818b Rotate token after fallback
Signed-off-by: Julius Härtl <jus@bitgrid.net>
(cherry picked from commit 553cb499b2)
2022-12-05 16:10:55 +00:00
Julius Härtl
e4735ea580 Add fallback routines for empty secret cases
Signed-off-by: Julius Härtl <jus@bitgrid.net>
(cherry picked from commit 81f8719cc0)
2022-12-05 16:10:55 +00:00
Simon L
f13ffc2a64 fix update for 32-bit
Signed-off-by: Simon L <szaimen@e.mail.de>
2022-11-28 08:47:43 +00:00
Simon L
0d7ba732b7
Merge pull request #35377 from nextcloud/backport/35368/stable25
[stable25] Add repair job that will ensure that secret and passwordsalt are set
2022-11-24 10:46:07 +01:00
blizzz
4c99ba4ad3
Merge pull request #35335 from nextcloud/stable25-revert-34032-fix-quota-32bit
Revert "[stable25] Fix quota type to int"
2022-11-24 10:25:57 +01:00
Arthur Schiwon
471369ca2b
remove superfluous use statement
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-11-24 09:34:31 +01:00
Christopher Ng
54296f5567 Allow single character search by default
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-11-24 01:17:26 +00:00
Carl Schwan
c050ca9db4 Add repair job that will ensure that secret and passwordsalt are set
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-11-23 20:11:01 +00:00
blizzz
222b8942af
Merge pull request #35366 from nextcloud/backport/35353/stable25
[stable25] Update cache when file size === 0
2022-11-23 20:47:34 +01:00
Vincent Petry
7bcd4193b8
Float the quota
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-11-23 20:43:08 +01:00
Vincent Petry
d524329ec3
Revert "Fix quota type to int"
This reverts commit d61efdff6c.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-11-23 20:43:08 +01:00
blizzz
1a1a810cf2
Merge pull request #34955 from nextcloud/backport/34934/stable25
[stable25] Read encrypted session data again on reopen
2022-11-23 20:42:30 +01:00
Louis Chemineau
cb99a5795d Update cache when file size === 0
The conditions were false when $result === 0.
$results here contains the number of written bits.
The correct way of checking for operation success is to check if $result === false

Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-11-23 14:57:32 +00:00
Joas Schilling
3b3048e403 Fix forwarding the object id when searching comments
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-11-23 10:12:45 +00:00
John Molakvoæ
2c33a04f07
Fix navigation order
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-11-22 17:22:55 +01:00
Simon L
30b2b86115
Merge pull request #35312 from nextcloud/stable25-user-mgmt-quota-no-cache
[stable25] Don't use quota cache through user management
2022-11-22 10:46:04 +01:00
Vincent Petry
5ed9925883
Don't use quota cache through user management
When querying the free space through user management APIs, don't use the
cached quota value. The latter is only there to accelerate PROPFINDs.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-11-21 23:46:02 +01:00
blizzz
5a9eb9f519
Merge pull request #34944 from nextcloud/backport/32565/stable25
[stable25] Fix deprecations logged as errors
2022-11-21 17:58:18 +01:00
Joas Schilling
30e72fe180 Increase the fair-use push limit to 1.000 users
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-11-21 10:07:25 +00:00
Robin Appelman
326eba8c2c delay updating setup providers untill we register the mounts
otherwise the fallback to a full setup for a missing cached mount provider will lead to a race condition

Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-11-18 14:32:02 +00:00
Joas Schilling
e58eb4650d
Merge pull request #35199 from nextcloud/backport/35096/stable25
[stable25] Mark more config values as sensitive
2022-11-17 12:05:55 +01:00
John Molakvoæ
23b188f61c Fix logo invert
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-11-16 15:47:14 +00:00
Joas Schilling
3b48c251fa
Mark more config values as sensitive
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-11-16 10:06:36 +01:00
Simon L
2fe48763dd
Merge pull request #35117 from nextcloud/backport/35105/stable25
[stable25] Fix distorted previews when using imaginary
2022-11-15 11:47:36 +01:00
Simon L
9d0296fef8
Merge pull request #35135 from nextcloud/backport/34645/stable25
[stable25] 🐘 Support postgres15
2022-11-15 00:40:47 +01:00
Vincent Petry
1a75cc19c8
Merge pull request #35048 from nextcloud/backport/34834/stable25
[stable25] Fix size calculation on copying the skeleton files
2022-11-14 16:40:40 +01:00
Vitor Mattos
51bce70f77 Bugfix to support postgres15
Signed-off-by: Vitor Mattos <vitor@php.rio>
Signed-off-by: Simon L <szaimen@e.mail.de>
Co-Authored-By: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
2022-11-14 09:08:09 +00:00
Richard Steinmetz
8424e506c4 Fix distorted previews when using imaginary
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2022-11-11 22:02:05 +00:00
Côme Chilliet
bc908b044a Make sure that path is normalized and then checked,
and not the other way around

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-11-10 17:55:12 +00:00
Julius Härtl
d485db32bc
Use proper storage method for writing skeleton files
otherwise the filecache will have a wrong size for skeleton files

Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-11-09 13:10:39 +01:00
Simon L
18515f6332
Merge pull request #35011 from nextcloud/backport/35007/stable25
[stable25] Fix unsuccessful token login logged as error
2022-11-08 10:50:10 +01:00
Christoph Wurst
88cf98b13d Fix unsuccessful token login logged as error
The condition of a non-existent login token can happen for concurrent
requests. Admins can not do anything about this. So this is to be
expected to happen occasionally. This event is only bad if none of the
requests is able to re-acquire a session. Luckily this happens rarely.

If a login loop persists an admin can still lower the log level to find
this info. But a default error log level will no longer write those
infos about the failed cookie login of one request.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-11-07 16:32:46 +00:00
Côme Chilliet
9403110854 Suppress false-positives from psalm, waiting for fix upstream
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-11-07 10:13:28 +00:00
Côme Chilliet
2b2ec5e7f7 Avoid a crash when a PHP extension has no version
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-11-07 10:13:28 +00:00
Vincent Petry
4127f33f4e
Merge pull request #34946 from nextcloud/backport/34804/stable25
[stable25] Skip general login with email for non-valid addresses and LDAP
2022-11-04 17:13:06 +01:00
Julius Härtl
c6b2d08e67 Do not remove complete encrypted session key when just a key should be removed
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-11-03 16:34:25 +00:00
Julius Härtl
fc74415e68 Read encrypted session data again on reopen
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-11-03 16:34:25 +00:00
Christoph Wurst
b8ad0752fa Run session token renewals in a database transaction
The session token renewal does
1) Read the old token
2) Write a new token
3) Delete the old token

If two processes succeed to read the old token there can be two new tokens because
the queries were not run in a transaction. This is particularly problematic on
clustered DBs where 1) would go to a read node and 2) and 3) go to a write node.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-11-03 15:25:34 +00:00
Julius Härtl
9151960af0
Skip general login with email for non-valid addresses and LDAP
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-11-03 15:38:39 +01:00
Christoph Wurst
808e604eb3 Log all deprecations with debug level
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-11-03 14:06:57 +00:00
szaimen
2084fbad3a disable upgrades to 26 for 32-bit
Signed-off-by: szaimen <szaimen@e.mail.de>
2022-11-02 10:47:43 +00:00
Julius Härtl
677451427e Emit typed event when preview is requested
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-10-27 13:51:28 +00:00
John Molakvoæ
b45848d91e
Merge pull request #34658 from nextcloud/backport/34632/stable25
[stable25] Add rate limiting on lost password emails
2022-10-27 14:26:06 +02:00
John Molakvoæ
c4e4aff418
Merge pull request #34725 from nextcloud/backport/34579/stable25
[stable25] fix null error in getUnencryptedSize
2022-10-27 12:07:35 +02:00
Côme Chilliet
36d3ef1c7c Add rate limiting on lost password emails
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-10-27 09:21:40 +00:00
Vincent Petry
883bda7be4
Merge pull request #34726 from nextcloud/backport/34136/stable25
[stable25] on installation save channel to config.php if not stable
2022-10-27 11:01:02 +02:00
Louis Chemineau
9cf71f2b5a Fix getMetadata return type
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-10-26 12:38:16 +00:00
Côme Chilliet
e9d1c4afdb Expose mapped user count from LDAP and use that for user limit check
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-10-25 10:14:03 +00:00