summaryrefslogtreecommitdiffstats
path: root/lib/private
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #36441 from nextcloud/backport/36433/stable24blizzz2023-02-091-4/+1
|\ | | | | [stable24] fix(encryption): don't throw on missing file
| * fix(encryption): don't throw on missing fileRichard Steinmetz2023-02-071-4/+1
| | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | Merge pull request #36376 from nextcloud/backport/35894/stable24blizzz2023-02-091-5/+13
|\ \ | | | | | | [stable24] fix moving files of encrypted local storage to unencrypted local storage
| * | fix moving files of encrypted local storage to unencrypted local storageRobin Appelman2023-02-071-5/+13
| |/ | | | | | | | | | | for example when moving encrypted files to a groupfolder Signed-off-by: Robin Appelman <robin@icewind.nl>
* / Fix double where() usage in resource managerJoas Schilling2023-02-071-1/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Do not store generated mysql password if it was not usedJulius Härtl2023-01-271-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* imaginary - add tiff to supported formatsSimon L2023-01-251-1/+1
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* Merge pull request #35824 from nextcloud/backport/35614/stable24Christoph Wurst2023-01-254-9/+12
|\ | | | | [stable24] Fix array to string conversion in errorlog writer
| * fix(logging): Fix array to string conversion in errorlog writerChristoph Wurst2023-01-241-1/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * fix(logging): Fix array to string conversion in errorlog writerChristoph Wurst2022-12-194-8/+10
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #35946 from nextcloud/backport/33813/stable24Vincent Petry2023-01-191-1/+1
|\ \ | | | | | | [stable24] Compare lowercase email when updating from ldap
| * | I dug into it again, and the issue is much simpler than I previously though.Louis Chemineau2023-01-021-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>
* | Merge pull request #36168 from nextcloud/backport/35970/stable24Julius Härtl2023-01-191-3/+3
|\ \ | | | | | | [stable24] Improve exception serializing
| * | fix(ExceptionSerializer): encode arguments before filtering the traceJulius Härtl2023-01-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | This will avoid running into a Nesting level too deep error as the encodeArg calls will limit potential recursive calls on the arguments to a nesting level of 5 Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | escape path prefix when doing cache jail searchRobin Appelman2023-01-113-7/+8
|/ / | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #35094 from nextcloud/invalidateTokensWhenDeletingOAuthClientJohn Molakvoæ2023-01-062-1/+13
|\ \ | | | | | | fixes https://github.com/nextcloud/server/issues/35068
| * | public interface to invalidate tokens of userArtur Neumann2022-12-202-1/+13
| |/ | | | | | | Signed-off-by: Artur Neumann <artur@jankaritech.com>
* | Remove null from quota typeCôme Chilliet2023-01-021-1/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Silence a warning from psalm with explanationCôme Chilliet2023-01-021-0/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Adapt types of subclassesCôme Chilliet2023-01-025-11/+9
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Make it clear that file sizes may be float on 32bitsCôme Chilliet2023-01-022-12/+11
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Remove quota value type for 32-bit systemsVincent Petry2023-01-021-2/+1
|/ | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #35799 from nextcloud/backport/35780/stable24Vincent Petry2022-12-191-1/+1
|\ | | | | [stable24] Fix missing cast of double controller parameters
| * fix(app framework): Fix missing cast of double controller parametersChristoph Wurst2022-12-161-1/+1
| | | | | | | | | | | | ``settype`` allows 'double' as alias of 'float'. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #35524 from nextcloud/backport/35502/stable24Vincent Petry2022-12-161-1/+1
|\ \ | | | | | | [stable24] Fix SQL comparison with int array during external storage deletion
| * | Fix Executing a query: SQLSTATE[42000]Andy Xheli2022-11-301-1/+1
| | | | | | | | | | | | | | | | | | | | | Signed-off-by: Andy Xheli <axheli@axtsolutions.com> Fix https://github.com/nextcloud/server/issues/32007#issuecomment-1329405245 Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
* | | Merge pull request #35657 from nextcloud/backport/35649/stable24Vincent Petry2022-12-161-1/+2
|\ \ \ | |_|/ |/| | [stable24] Update the unencrypted file size when closing streams
| * | Also update the unencrypted size of files when creating them with empty contentJulius Härtl2022-12-071-0/+1
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Update the unencrypted file size when closing streamsJulius Härtl2022-12-071-1/+1
| |/ | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | check if params given to API are really an arrayArtur Neumann2022-12-161-2/+1
| | | | | | | | Signed-off-by: Artur Neumann <artur@jankaritech.com>
* | preview: fix HEIC orientationVarun Patil2022-12-111-0/+3
|/ | | | Signed-off-by: Varun Patil <varunpatil@ucla.edu>
* Float the quotaVincent Petry2022-11-241-1/+1
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Revert "[stable24] Fix quota type to int"Vincent Petry2022-11-242-4/+4
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #35367 from nextcloud/backport/35353/stable24Louis2022-11-231-3/+3
|\ | | | | [stable24] Update cache when file size === 0
| * Update cache when file size === 0Louis Chemineau2022-11-231-3/+3
| | | | | | | | | | | | | | | | 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>
* | Fix forwarding the object id when searching commentsJoas Schilling2022-11-231-1/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't use quota cache through user managementVincent Petry2022-11-211-4/+8
| | | | | | | 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>
* Merge pull request #35250 from nextcloud/bugfix/noid/quota-zeroSimon L2022-11-211-2/+2
|\ | | | | [stable24] Properly compare quota against both float/int values
| * Properly compare quota against both float/int valuesJulius Härtl2022-11-181-2/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #35141 from nextcloud/backport/34160/stable24Côme Chilliet2022-11-212-15/+20
|\ \ | | | | | | [stable24] Detect weird local ips
| * | Fix tests for nested v4 in v6Côme Chilliet2022-11-141-14/+6
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | Use new dependency to normalize IPsCôme Chilliet2022-11-141-0/+13
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | Add missing urldecode and idn_to_utf8 calls to local address checkerCôme Chilliet2022-11-142-2/+2
| | | | | | | | | | | | | | | | | | The call to idn_to_utf8 call is actually to apply normalization Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | Appropriate length check in Notification.phpnatoponen2022-11-111-2/+2
| | | | | | | | | | | | | | | There is an issue(bug) when using UTF-8 symbols in any method, which checks the length of string as `isset($id[64])`. You can set only 32 UTF-8 symbols because they are 2 byte, and this "array" check seems inapropriate in this case, as it throws unexpected exceptions. Signed-off-by: natoponen <57988162+natoponen@users.noreply.github.com>
* | | Merge pull request #35245 from nextcloud/backport/32288/stable24Joas Schilling2022-11-191-11/+17
|\ \ \ | | | | | | | | [stable24] Fix JSON error when comment has no reactions
| * | | Fix JSON error when comment has no reactionsJoas Schilling2022-11-181-11/+17
| | |/ | |/| | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / | delay updating setup providers untill we register the mountsRobin Appelman2022-11-181-10/+16
|/ / | | | | | | | | | | 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>
* | Mark more config values as sensitiveJoas Schilling2022-11-162-0/+8
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix distorted previews when using imaginaryRichard Steinmetz2022-11-111-4/+14
|/ | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Merge pull request #35088 from nextcloud/backport/35074/stable24Joas Schilling2022-11-111-7/+8
|\ | | | | [stable24] Make sure that path is normalized and then checked,