Commit graph

21006 commits

Author SHA1 Message Date
Nextcloud bot
d6e6b8b7c5
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-11-10 02:15:33 +00:00
Nextcloud bot
952a4aba5b
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-11-09 02:14:39 +00: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
Nextcloud bot
4f26225df6
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-11-08 02:14:25 +00: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
Nextcloud bot
c587979785
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-11-07 02:14:18 +00:00
Nextcloud bot
f55ac66ad1
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-11-06 02:12:48 +00:00
Nextcloud bot
8b995d7eed
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-11-05 02:15:14 +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
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
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
afeaf93bdb Fix autoloaders
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-10-25 10:14:04 +00:00
Côme Chilliet
ef1957d42e Update lib/public/User/Backend/ICountMappedUsersBackend.php
Co-authored-by: Simon L. <szaimen@e.mail.de>
Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
2022-10-25 10:14:04 +00:00
Côme Chilliet
f8f357aa1b Add missing file
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-10-25 10:14:03 +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
Simon L
dc2fe31250
Merge pull request #34728 from nextcloud/backport/33945/stable25
[stable25] LDAP to not register new users when outside of fair use or over limits
2022-10-24 10:42:47 +02:00
blizzz
611a6c6751 extended hint message
Co-authored-by: Simon L. <szaimen@e.mail.de>
Signed-off-by: blizzz <blizzz@arthur-schiwon.de>
2022-10-21 16:58:13 +00:00
Arthur Schiwon
625d6d4d0c improve admin notification experience
- do not stack notifications, replace them
- and replace them once a day only
- with LDAP it might end in total spam terror (also push) otherwise

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-10-21 16:58:12 +00:00
Arthur Schiwon
0fd9d8b132 LDAP to no register new users when outside of fair use or over limits
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-10-21 16:58:12 +00:00
Simon L
be1ef4296f
Merge pull request #34712 from nextcloud/backport/34688/stable25
[stable25] Don't crash with outdated share provider on update with the web updater
2022-10-21 18:54:13 +02:00
Arthur Schiwon
a0930d01b1 on installation save channel to config.php if not stable
- the default channel to the NC server is what is provided in /version.php
  unless it is overridden in config.php
- the default channel to the NC Updater however is 'stable'
- this resultant in inconsistent results and confusing admin experience
- therefore "stable" is considered default and other channels are being
  written to config.php now upon installation

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-10-21 15:19:03 +00:00
Robin Appelman
5733fccdd1 fix null error in getUnencryptedSize
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-10-21 14:59:40 +00:00
Joas Schilling
707fc6599f Fix PHP CS
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-10-20 21:55:07 +00:00
Joas Schilling
b851446c6a Also catch in getProvider
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-10-20 21:55:07 +00:00
Joas Schilling
9a5a80438a Don't crash with outdated share provider
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-10-20 21:55:07 +00:00
zorn-v
c6dea6e609 Fix alternative logins custom css class
In NC 25 login page was changed, and alternative login css class get from `class` prop but not `style`. 
It is correct change in my opinion, so just add backend fix.

Signed-off-by: zorn-v <zorn7@yandex.ru>
2022-10-20 15:19:42 +00:00
Carl Schwan
7b001abd08 Allow scanning for metadata with occ scan:file --generate-metadata
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-10-20 11:56:02 +00:00
Louis Chemineau
f5d5f019fa Extract GPS data from EXIF
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-10-20 11:56:02 +00:00
Carl Schwan
fda3af7915 Expose clearing the profiles and fix it
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-10-18 18:58:04 +00:00
John Molakvoæ
3b076350d1
Fix tests
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-10-14 16:19:41 +02:00
John Molakvoæ
f4a14cfe69
Scope the appdata theming storage for global and users
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-10-14 16:19:32 +02:00
Christopher Ng
df218bc4db
Fix missing background on upgrade
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-10-13 18:01:05 +02:00
Julius Härtl
775e4e023d Avoid allocating too much memory for the buffer
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-10-12 08:30:58 +00:00
blizzz
c98334fdac
Merge pull request #34446 from nextcloud/backport/34401/stable25
[stable25] File reference: fallback icon to file type if no preview
2022-10-11 23:30:37 +02:00
Andy Xheli
1921685e4e Makes untrusted domain error on info
Signed-off-by: Andy Xheli <axheli@axtsolutions.com>

Since e6d9ef2e38 was applied logs get filled up with Trusted domain error. "X.X.X.X tried to access using "X.X.X.X" as host alot of users missed important errors do toe6d9ef2e38   please see https://github.com/nextcloud/server/issues/32599

This should fix. 
https://github.com/nextcloud/server/issues/32599#event-7281164903


Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
2022-10-06 16:28:30 +00:00
Julien Veyssier
4807c23e09 File reference: use the file type icon as fallback when no preview provider for this type
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-10-06 04:33:51 +00:00
Simon L
0c6b5cde95
Merge pull request #34432 from nextcloud/backport/34298/stable25
[stable25] Use color preset of shipped background as primary color
2022-10-05 13:18:41 +02:00
blizzz
ab959249d3
Merge pull request #34434 from nextcloud/backport/32635/stable25
[stable25] Fix User profile picture when performing the search
2022-10-05 13:10:55 +02:00
blizzz
0612e008d4
Merge pull request #34405 from nextcloud/backport/34302/stable25
[stable25] Fix: Prevent deadlocks during mtime/size/etag propagation
2022-10-05 12:52:29 +02:00
Andy Xheli
36473a3f63 Update lib/private/Contacts/ContactsMenu/ContactsStore.php
Signed-off-by: Andy Xheli <axheli@axtsolutions.com>

Tested no issues.

Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com>
Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
2022-10-05 08:42:09 +00:00
Andy Xheli
f4fc7daf73 Update ContactsStore.php
Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
2022-10-05 08:42:08 +00:00