summaryrefslogtreecommitdiffstats
path: root/lib/private
Commit message (Collapse)AuthorAgeFilesLines
...
| * Make sure that path is normalized and then checked,Côme Chilliet2022-11-101-7/+8
| | | | | | | | | | | | and not the other way around Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Use proper storage method for writing skeleton filesJulius Härtl2022-11-091-1/+1
|/ | | | | | otherwise the filecache will have a wrong size for skeleton files Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix unsuccessful token login logged as errorChristoph Wurst2022-11-071-1/+1
| | | | | | | | | | | | | 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>
* Suppress false-positives from psalm, waiting for fix upstreamCôme Chilliet2022-11-071-0/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Avoid a crash when a PHP extension has no versionCôme Chilliet2022-11-071-1/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #34659 from nextcloud/backport/34632/stable24Vincent Petry2022-11-041-3/+3
|\ | | | | [stable24] Add rate limiting on lost password emails
| * Add rate limiting on lost password emailsCôme Chilliet2022-11-031-3/+3
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #34855 from nextcloud/backport/34799/stable24Vincent Petry2022-11-043-12/+27
|\ \ | | | | | | [stable24] Emit typed event when preview is requested
| * | Emit typed event when preview is requestedJulius Härtl2022-10-273-12/+27
| |/ | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #34947 from nextcloud/backport/34804/stable24Vincent Petry2022-11-041-0/+12
|\ \ | | | | | | [stable24] Skip general login with email for non-valid addresses and LDAP
| * | Skip general login with email for non-valid addresses and LDAPJulius Härtl2022-11-031-0/+12
| |/ | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* / Run session token renewals in a database transactionChristoph Wurst2022-11-031-23/+32
|/ | | | | | | | | | | | | 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>
* Merge pull request #34770 from nextcloud/backport/34579/stable24John Molakvoæ2022-10-271-1/+1
|\ | | | | [stable24] fix null error in getUnencryptedSize
| * fix null error in getUnencryptedSizeRobin Appelman2022-10-241-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #34845 from nextcloud/dependaskjnldsv/32413/stable24John Molakvoæ2022-10-272-21/+6
|\ \ | | | | | | [stable24] Fix psalm errors fron the end of the baseline file
| * | Fix psalm errors fron the end of the baseline fileCarl Schwan2022-10-272-21/+6
| | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | Merge pull request #34440 from nextcloud/backport/32635/stable24John Molakvoæ2022-10-271-2/+5
|\ \ \
| * | | Update lib/private/Contacts/ContactsMenu/ContactsStore.php Andy Xheli2022-10-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | Update ContactsStore.phpAndy Xheli2022-10-271-1/+1
| | | | | | | | | | | | Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
| * | | Apply suggestions from code review Andy Xheli2022-10-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Andy Xheli <axheli@axtsolutions.com> Co-authored-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
| * | | Fix User profile picture when performing the searchAndy Xheli2022-10-271-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Andy Xheli <axheli@axtsolutions.com> Before ![image](https://user-images.githubusercontent.com/59488153/140980158-b9108161-57ab-48b4-ae6f-98ec4e72775a.png) After Fix for #31065
* | | | Merge pull request #34797 from nextcloud/backport/33540/stable24Vincent Petry2022-10-271-1/+6
|\ \ \ \ | |_|/ / |/| | | [stable24] fix updating cached mounts that didn't have their mount provider set previously
| * | | fix updating cached mounts that didn't have their mount provider set previouslyRobin Appelman2022-10-251-1/+6
| | |/ | |/| | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #34410 from nextcloud/backport/33566/stable24John Molakvoæ2022-10-272-2/+19
|\ \ \
| * | | trigger a rescan when trying to fopen a file that exists in cache but not on ↵Robin Appelman2022-10-062-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | disk Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Merge pull request #34032 from nextcloud/backport/34019/stable24John Molakvoæ2022-10-272-4/+4
|\ \ \ \ | |_|_|/ |/| | | [stable24] Fix quota type to int
| * | | Fix quota type to intCarl Schwan2022-09-122-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the quota to int from float, since the quota is a number of bits and a bits can not be splitted. Fix #34010 Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Fix quota type to intCarl Schwan2022-09-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the quota to int from float, since the quota is a number of bits and a bits can not be splitted. Fix #34010 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | | Merge pull request #34447 from nextcloud/backport/34302/stable24Vincent Petry2022-10-271-18/+29
|\ \ \ \ | | | | | | | | | | [stable24] Fix: Prevent deadlocks during mtime/size/etag propagation
| * | | | Fix unencrypted size calculation for files created before the Encryption ↵raul2022-10-251-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | storage is enabled Signed-off-by: raul <raul@nextcloud.com>
| * | | | Fix: Prevent deadlocks during mtime/size/etag propagationraul2022-10-251-17/+29
| | | | | | | | | | | | | | | | | | | | Signed-off-by: raul <raul@nextcloud.com>
* | | | | Expose mapped user count from LDAP and use that for user limit checkCôme Chilliet2022-10-251-3/+5
|/ / / / | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | Fix return types of createUser methodCôme Chilliet2022-10-251-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | Fix createUser return type in docblock to match codeCôme Chilliet2022-10-241-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | extended hint messageblizzz2022-10-241-1/+1
| | | | | | | | | | | | | | | | Co-authored-by: Simon L. <szaimen@e.mail.de> Signed-off-by: blizzz <blizzz@arthur-schiwon.de>
* | | | improve admin notification experienceArthur Schiwon2022-10-241-8/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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>
* | | | LDAP to no register new users when outside of fair use or over limitsArthur Schiwon2022-10-243-11/+62
| |_|/ |/| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | fix external storages accessszaimen2022-10-231-3/+1
| | | | | | | | | | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* | | Avoid allocating too much memory for the bufferJulius Härtl2022-10-121-1/+1
| |/ |/| | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Correctly handle Redis::keys returning falseCôme Chilliet2022-09-301-1/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #34111 from nextcloud/backport/34073/stable24blizzz2022-09-271-0/+3
|\ \ | | | | | | [stable24] dont try email login if the provider username is not a valid email
| * | dont try email login if the provider username is not a valid emailRobin Appelman2022-09-161-0/+3
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #33787 from nextcloud/backport/33772/stable24blizzz2022-09-271-0/+8
|\ \ \ | |/ / |/| | [stable24] Log if cookie login failed with token mismatch or session unavailability
| * | Log if cookie login failed with token mismatch or session unavailabilityChristoph Wurst2022-09-011-0/+8
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #33700 from nextcloud/groupfolder-system-encryption-24Vincent Petry2022-09-151-0/+10
|\ \ \ | |_|/ |/| | [24] make groupfolders use system wide encryption keys
| * | make groupfolders use system wide encryption keysRobin Appelman2022-09-151-0/+10
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Do not empty config.php file if reading failed for any reasonCôme Chilliet2022-09-121-0/+4
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Filter out old files when trying to get recent filesCarl Schwan2022-09-081-27/+55
| | | | | | | | | | | | | | | | | | | | | Only do so when asking for less than 100 files and having an offset equal to 0. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | Revert "[stable24] Compare lowercase email when updating from ldap"blizzz2022-09-071-1/+1
| | |
* | | I dug into it again, and the issue is much simpler than I previously though.Louis Chemineau2022-09-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - LDAP has an email address with capital letters - NC store this address in lower case - When the user logs in, we compare the [stored email with the new lower case email](https://github.com/nextcloud/server/blob/master/lib/private/AllConfig.php#L259-L261) before storing it. Here, both email will be the same, so we won't store the new email address with upper case letters. Which is what we want. - We then [compare emails as they are before triggering an event](https://github.com/nextcloud/server/blob/master/lib/private/User/User.php#L202-L204), they won't match, so the user will receive an email signaling an email change every time he logs in. The fix is to compare the old email with the new lower case email before sending the event. Signed-off-by: Louis Chemineau <louis@chmn.me>