aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | Split new method in a new group backend interfaceCarl Schwan2023-04-274-65/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Better for backward compatibility, also move new interfaces to nc 26 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | | | | | | | Optimize retrieving display name when searching for users in a groupCarl Schwan2023-04-274-31/+87
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is recurrent scenario that we are searching for users and then for each users we fetch the displayName. This is inefficient, so instead try to do one query to fetch everything (e.g. Database backend) or use the already existing DisplayNameCache helper. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | | | | | | Merge pull request #38014 from nextcloud/norm-logicSimon L2023-05-021-13/+13
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Normalize logical operators
| * | | | | | | | Normalize logical operatorsGit'Fellow2023-05-021-13/+13
| |/ / / / / / / | | | | | | | | | | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* / / / / / / / allow storing multiple mounts for the same rootid in the mount cacheRobin Appelman2023-04-281-17/+19
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | currently `[$userId, $rootId]` is used as the unique key for storing mounts in the mount cache, however there are cases where the same rootid is mounted in multiple places for a user which currently leads to not all of those mounts being added to the cache. Previously this didn't matter as the mount cache was only used to list users with access to a specific file, so a user having access to the file multiple times didn' change anything. With 24 the mount cache is used for more cases and multiple mounts for the same id becomes relevant. While I think there isn't a real negative effect atm besides missing the optimized path we should ensure that the mounts are properly listed Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | | | Merge pull request #37925 from nextcloud/feat-update-maintenance-mode-hintDaniel2023-04-261-7/+3
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | fix: change maintenance mode info wording
| * | | | | | | fix: change maintenance mode info wordingDaniel Kesselberg2023-04-261-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In maintenance mode the database is accessible and it's possible to execute other commands then maintenance:mode Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | | | | | | Merge pull request #37905 from ↵Joas Schilling2023-04-254-27/+132
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | nextcloud/techdebt/noid/add-attributes-for-remaining-security-annotations feat(security): Add PHP \Attribute for remaining security annotations
| * | | | | | | feat(security): Add PHP \Attribute for remaining security annotationsJoas Schilling2023-04-254-27/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | | | | Merge pull request #37818 from nextcloud/dav-ext-storage-logRobin Appelman2023-04-251-0/+18
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | debug log requests made by dav external storage/shares
| * | | | | | | | debug log requests made by dav external storage/sharesRobin Appelman2023-04-241-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | | | | | Merge pull request #37835 from nextcloud/feat/background-allow-parallel-runsCôme Chilliet2023-04-252-1/+28
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | feat(BackgroundJobs): Allow preventing parallel runs for a job class
| * | | | | | | | | JobList: add debug log when hasReservedJob query failsMarcel Klehr2023-04-241-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * | | | | | | | | JobList#hasReservedJobs: Close cursorMarcel Klehr2023-04-231-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | so Joas doesn't die Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * | | | | | | | | Fix BackgroundJob testsMarcel Klehr2023-04-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * | | | | | | | | Update lib/private/BackgroundJob/JobList.phpMarcel Klehr2023-04-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * | | | | | | | | test(BackgroundJobs): Add tests for allowParallelRuns and hasReservedJobsMarcel Klehr2023-04-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * | | | | | | | | fix(SpeechToText): Prevent parallel runs of TranscriptionJobMarcel Klehr2023-04-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * | | | | | | | | feat(BackgroundJobs): Allow preventing parallel runs for a job classMarcel Klehr2023-04-231-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* | | | | | | | | | Add missing taint analysis docblock comments, and improve escaping in some ↵Carl Schwan2023-04-242-1/+4
| |_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | methods Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | | | | | Merge pull request #36857 from nextcloud/scan-repair-unencrypted-sizeRobin Appelman2023-04-246-40/+54
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | fix unencrypted_size for folders when scanning the filesystem with encryption enabled
| * | | | | | | | | fix type hintsRobin Appelman2023-04-044-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | | | | | | fix unencrypted folder size when no children with unencrypted size set are leftRobin Appelman2023-04-042-31/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | | | | | | fix unencrypted_size for files when scanningRobin Appelman2023-04-042-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | | | | | | fix unencrypted_size for folders when scanning the filesystem with ↵Robin Appelman2023-04-042-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | encryption enabled Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | | | | | | feat(ratelimit): Add Attributes support to rate limit middlewareJoas Schilling2023-04-241-41/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | | | | | | Merge pull request #37816 from ↵Christoph Wurst2023-04-242-2/+2
|\ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | nextcloud/fix/events/info-to-debug-log-legacy-events fix(events): Log deprecated events as debug, not info
| * | | | | | | | | fix(events): Log deprecated events as debug, not infoChristoph Wurst2023-04-192-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | | | | | | | Merge pull request #37820 from nextcloud/parent-storage-mtime-ignore-errorRobin Appelman2023-04-211-1/+13
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | ignore errors while trying to update parent storage_mtime
| * | | | | | | | | | ignore errors while trying to update parent storage_mtimeRobin Appelman2023-04-201-1/+13
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in the worst case this should only cause an extra rescan later Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | / / / / / / / Read mtime of version.php only onceArthur Schiwon2023-04-211-3/+1
| |_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - in most cases it would read again in \OC_Util::loadVersion anyway - remove some unused use statements Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | | | | | | | Merge pull request #37062 from nextcloud/free-spaceRobin Appelman2023-04-211-1/+1
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Check free space only if source exists and is dir
| * | | | | | | | | Add function_exists() checkGit'Fellow2023-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Simon L. <szaimen@e.mail.de> Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
| * | | | | | | | | Fix free space problemsGit'Fellow2023-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* | | | | | | | | | Merge pull request #37596 from nextcloud/enh/type-iconfig-getter-callsRobin Appelman2023-04-2168-149/+147
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Use typed version of IConfig::getSystemValue as much as possible
| * \ \ \ \ \ \ \ \ \ Merge branch 'master' into enh/type-iconfig-getter-callsCôme Chilliet2023-04-2028-235/+559
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * | | | | | | | | | | Adapt tests to config value typingCôme Chilliet2023-04-052-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | | | | | | | | | Use typed version of IConfig::getSystemValue as much as possibleCôme Chilliet2023-04-0568-146/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | | | | | | | | Fix TypeError in ProfilerCôme Chilliet2023-04-201-1/+1
| |/ / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | | | | | | | Merge pull request #37674 from nextcloud/feature/speech-to-textJoas Schilling2023-04-194-0/+254
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / / / |/| | | | | | | | | | feat(SpeechToText): Add SpeechToText OCP provider API
| * | | | | | | | | | Context params: Make userId nullableMarcel Klehr2023-04-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * | | | | | | | | | SpeechToTextManager#scheduleFileTranscription: Take context params and ↵Marcel Klehr2023-04-192-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | expose them on the Transcription*Events Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * | | | | | | | | | TranscriptionJob: Add owner argument to simplify filesystem setupMarcel Klehr2023-04-192-53/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * | | | | | | | | | TranscriptionJob: Ensure filesystem is setup before trying to retrieve fileMarcel Klehr2023-04-181-2/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * | | | | | | | | | Update lib/private/SpeechToText/SpeechToTextManager.phpMarcel Klehr2023-04-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Julien Veyssier <julien-nc@posteo.net> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * | | | | | | | | | Fix missing importJoas Schilling2023-04-181-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | | | | | | | | | SpeechToTextManager#transcribeFile: Try next provider if one failsMarcel Klehr2023-04-171-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * | | | | | | | | | Update lib/private/SpeechToText/SpeechToTextManager.phpMarcel Klehr2023-04-171-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * | | | | | | | | | SpeechToTextManager: Deduplicate transcription jobsMarcel Klehr2023-04-171-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * | | | | | | | | | AbstractTranscriptionEvent: Add File paramMarcel Klehr2023-04-171-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>