aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix file_get_content signatures to make it clear it can return falseCôme Chilliet2023-04-277-11/+13
| | | | | | | | | | | | | | In File::getContent, which must return a string, throw an Exception instead of returning false. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | 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 #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>
* | Add missing taint analysis docblock comments, and improve escaping in some ↵Carl Schwan2023-04-241-0/+1
| | | | | | | | | | | | | | 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>
* | | 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>
* | | 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 branch 'master' into enh/type-iconfig-getter-callsCôme Chilliet2023-04-208-74/+153
|\ \ \ \ | | |/ / | |/| | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * | | Merge pull request #36774 from nextcloud/bugfix/noid/sabre-nodesSimon L2023-04-181-1/+5
| |\ \ \ | | | | | | | | | | fix: always use proper path on node api when calling the view
| | * | | fix: Use proper path when creating node instancesJulius Härtl2023-04-171-1/+5
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | | | Merge pull request #37534 from Rsplwe/masterSimon L2023-04-181-7/+18
| |\ \ \ \ | | |/ / / | |/| | | Adjust the value of the "max-parts" parameter of the object storage 'ListPart' interface to 1000
| | * | | Update lib/private/Files/ObjectStore/S3.phpRsplwe2023-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Rsplwe <i@rsplwe.com>
| | * | | s3: get remaining truncation partRsplwe2023-04-011-7/+18
| | | | | | | | | | | | | | | Signed-off-by: Rsplwe <i@rsplwe.com>
| | * | | Adjust the value of 'maxparts' to 1000Rsplwe2023-04-011-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Rsplwe <i@rsplwe.com>
| * | | | Merge pull request #32314 from nextcloud/object-mkdir-loggingSimon L2023-04-171-0/+3
| |\ \ \ \ | | | | | | | | | | | | additional logging when mkdir fails for object storage
| | * | | | additional logging when mkdir fails for object storageRobin Appelman2023-04-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | | Put Mimeloader insertion and read in the same transactionThomas Citharel2023-04-171-18/+41
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
| * | | | | Merge pull request #37429 from nextcloud/object-store-rmdirJulius Härtl2023-04-131-36/+50
| |\ \ \ \ \ | | | | | | | | | | | | | | improve objectstore rmdir handling
| | * | | | | improve objectstore rmdir handlingRobin Appelman2023-04-031-36/+50
| | | |_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remove folder entries as they are cleared instead of in one go afterwards otherwise they stick around if some of the child entries can't be removed Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | | Merge pull request #37617 from nextcloud/notify-self-test-errorArthur Schiwon2023-04-111-0/+3
| |\ \ \ \ \ | | | | | | | | | | | | | | handle not being able to write file for notify self-test
| | * | | | | handle not being able to write file for notify self-testRobin Appelman2023-04-061-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | | | Merge pull request #34607 from nextcloud/encryption-size-not-foundVincent Petry2023-04-061-1/+3
| |\ \ \ \ \ \ | | |/ / / / / | |/| | | | | fix encryption wrapper filesize for non existing files
| | * | | | | fix encryption wrapper filesize for non existing filesRobin Appelman2023-04-041-1/+3
| | |/ / / / | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | | Merge pull request #22943 from nextcloud/scanner-no-access-handlingRobin Appelman2023-04-051-5/+11
| |\ \ \ \ \ | | | | | | | | | | | | | | improve handling of files we can't access in the scanner
| | * | | | | improve handling of files we can't access in the scannerRobin Appelman2023-04-051-5/+11
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instead of erroring, remove the items from the cache. this situation can be triggered if a user has access to a file but looses it afterwards Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | / / / better error messages if the users home is not writable during scanningRobin Appelman2023-04-051-7/+20
| | |/ / / | |/| | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* / | | | Use typed version of IConfig::getSystemValue as much as possibleCôme Chilliet2023-04-056-9/+9
|/ / / / | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | Merge pull request #36836 from nextcloud/fix/view-type-cleanupCôme Chilliet2023-04-0513-292/+183
|\ \ \ \ | |/ / / |/| | | Tidy up typing in OC\Files\View
| * | | Remove unecessary fully qualified namespaces from phpdocCôme Chilliet2023-04-051-4/+4
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | View needs to return an instance of OC\Files\FileInfo explicitelyCôme Chilliet2023-04-032-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Applications are calling methods from the class which are not from the public interface, and which cannot be added easily to public interface because Node interface extends FileInfo. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | More type cleanup in View and FileInfoCôme Chilliet2023-04-032-95/+82
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Fix return type of methods returning false on errorCôme Chilliet2023-04-039-36/+22
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Improve typing for fopen/toTmpFileCôme Chilliet2023-04-032-4/+5
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Remove unused method getLocalFolderCôme Chilliet2023-04-034-30/+0
| | | | | | | | | | | | | | | | | | | | | | | | It’s not used and not in any OCP interface/class. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Tidy up typing in OC\Files\ViewCôme Chilliet2023-04-032-122/+74
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | Merge pull request #36097 from nextcloud/path-prefix-optimizeRobin Appelman2023-04-033-13/+58
|\ \ \ \ | | | | | | | | | | extend path-prefix optimizer to remove all cases of path_hash= when encountering a path prefix filter
| * | | | extend path-prefix optimizer to remove all cases of path_hash= when ↵Robin Appelman2023-01-113-13/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | encountering a path prefix filter Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | Fix inherited parameter namesjld31032023-04-033-8/+8
| |/ / / |/| | | | | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* | | | clear encrypted flag when moving away from encrypted storageRobin Appelman2023-04-012-0/+31
| |/ / |/| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Remove useless coalescing operator on non-null return valueCôme Chilliet2023-04-011-1/+1
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>