summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #33749 from nextcloud/backport/33734/stable24Vincent Petry2022-09-011-1/+1
|\ | | | | [stable24] remove leading slash for search results at mountpoint root
| * remove leading slash for search results at mountpoint rootRobin Appelman2022-08-301-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #33656 from nextcloud/backport/33574/stable24blizzz2022-08-301-2/+6
|\ \ | | | | | | [stable24] directly build the search filter for shared storage instead of setting up the source cache
| * | directly build the search filter for shared storage instead of setting up ↵Robin Appelman2022-08-231-2/+6
| |/ | | | | | | | | | | the source cache Signed-off-by: Robin Appelman <robin@icewind.nl>
* / optimize search post-processing for jail wrapperRobin Appelman2022-08-181-5/+7
|/ | | | | | don't both asking the wrapped cache if we know it's not in our jail anyway Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix updating size when folder is emptyRobin Appelman2022-08-161-13/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #32273 from nextcloud/backport/32152/stable24blizzz2022-08-041-1/+1
|\ | | | | [stable24] Allow compatibility wrapper on local external storage
| * Allow compatibility wrapper on local external storageVincent Petry2022-05-051-1/+1
| | | | | | | | | | | | | | | | The check was likely in place to prevent adding the wrapper on the root and home storage, which is not possible anyway since the encoding option cannot be set on that mount. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | don't set `null` as a bundle pathRobin Appelman2022-07-271-3/+6
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #33326 from nextcloud/backport/33308/stable24Vincent Petry2022-07-251-6/+15
|\ \ | | | | | | [stable24] always triger setup of builtin storage wrappers
| * | always triger setup of builtin storage wrappersRobin Appelman2022-07-221-6/+15
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #33252 from nextcloud/backport/32963/stable24blizzz2022-07-222-12/+24
|\ \ \ | |/ / |/| | [stable24] also use nextcloud certificate bundle when downloading from s3
| * | only use nextcloud bundle when explicitly enabledRobin Appelman2022-07-182-10/+15
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | also use nextcloud certificate bundle when downloading from s3Robin Appelman2022-07-182-10/+17
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Fix listening for circle events in SetupManagerJonas2022-07-181-4/+4
|/ / | | | | | | | | | | | | | | | | | | | | So far, SetupManager listened for deprecated events that are no longer triggered. Instead, use the circle events that actually get triggered when adding or removing a circle or circle member. Also, these events get triggered on each instance of a globalscale setup. Fixes: #33210 Signed-off-by: Jonas <jonas@freesources.org>
* | Check whether entry is of type ICacheEntry in Cache->remove()Jonas2022-06-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | In some scenarios (file not in cache, but partial data of it in the object), Cache->get() might return an array, which leads to errors like "Call to a member function getId() on array". So check whether the returned entry is of type ICacheEntry before doing operations on it in Cache->remove(). Fixes: #33023 Signed-off-by: Jonas <jonas@freesources.org>
* | Fix metadata extractionCarl Schwan2022-06-281-1/+1
| | | | | | | | | | | | | | | | | | The metadata extraction only happens when the size is not equal to 0, but due to a regression in FileInfo the size is always zero. This fix the regression. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Merge pull request #32708 from nextcloud/unencrypted-size-24blizzz2022-06-116-52/+146
|\ \ | | | | | | [24] store unencrypted size in the unencrypted_size column
| * | store unencrypted size in the unencrypted_size columnRobin Appelman2022-06-036-52/+146
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #32801 from nextcloud/backport/32797/stable24Vincent Petry2022-06-101-7/+3
|\ \ \ | | | | | | | | [stable24] fix mounts mounted at the users home
| * | | fix mounts mounted at the users homeRobin Appelman2022-06-091-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | this fixes external storages with '/' as mountpoint Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | perform onetime setup earlier to ensure wrappers are registered on timeRobin Appelman2022-06-101-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | this fixes an issue with wrappers like encryption not always being applied to mountpoint that create the storage object directly (such as external storage) Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Merge pull request #32710 from nextcloud/backport/32662/stable24Vincent Petry2022-06-101-0/+2
|\ \ \ \ | |/ / / |/| | | [stable24] Cleanup temporary files after finishing the write to object storage
| * | | Cleanup temporary files after finishing the write to object storageJulius Härtl2022-06-021-0/+2
| |/ / | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* / / handle stream wrappers in SeekableHttpStreamRobin Appelman2022-06-091-0/+13
|/ / | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* / tell mysql to ignore the sort index for search queriesRobin Appelman2022-05-161-0/+11
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Only need to setup root for groupfoldersRobin Appelman2022-04-251-1/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* optimize adding submount info to directory contentRobin Appelman2022-04-251-4/+2
| | | | | | no need to loop when we can do a hashtable lookup Signed-off-by: Robin Appelman <robin@icewind.nl>
* Use a lazy user for the file owner when listing a directoryRobin Appelman2022-04-251-8/+8
| | | | | | | Only getUID and getDisplayName are called on the file owner objects anyway and we can get this information often without DB request Signed-off-by: Robin Appelman <robin@icewind.nl>
* only register mounts that are new from providers that are new during a full ↵Robin Appelman2022-04-222-3/+16
| | | | | | | | setup this fixes cases where during the (partial) setup of a shared mount a full setup is triggered Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #32066 from nextcloud/backport/32045/stable24blizzz2022-04-221-1/+7
|\ | | | | [stable24] cache fullSetupRequired locally
| * cache fullSetupRequired locallyRobin Appelman2022-04-221-1/+7
| | | | | | | | | | | | no need to hit redis every time Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #32027 from nextcloud/backport/32024/stable24blizzz2022-04-221-1/+5
|\ \ | |/ |/| [stable24] ignore forbidden files while scanning local storage
| * ignore forbidden files while scanning local storageRobin Appelman2022-04-201-1/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | log stacktrace for 'Backends provided no user object'Arthur Schiwon2022-04-201-1/+3
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add a metadata service to store file metadataCarl Schwan2022-04-131-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* perform a setup if we can't find any mounts containing a fileRobin Appelman2022-04-111-0/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #31901 from nextcloud/fs-setup-tweaksVincent Petry2022-04-083-2/+21
|\ | | | | Filesystem setup tweaks
| * more preset metadata for LazyUserFolderRobin Appelman2022-04-082-0/+14
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * always do full setup for home folder with submountsRobin Appelman2022-04-081-2/+6
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * add missing returnRobin Appelman2022-04-081-0/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #31676 from nextcloud/enh/ocp-owner-lockVincent Petry2022-04-081-0/+72
|\ \ | |/ |/| Add public API for owner based file locking
| * Adapt LockScope to LockContext renameJulius Härtl2022-04-071-6/+6
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Add public API for owner based lockingJulius Härtl2022-04-041-0/+72
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #31713 from nextcloud/fed-performanceRobin Appelman2022-04-073-5/+10
|\ \ | | | | | | Federated share performance improvements
| * | use the same cached propfind for free space for dav storageRobin Appelman2022-04-041-2/+2
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | only request free space once for external sharesRobin Appelman2022-04-041-1/+1
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | don't overwrite the etag from storage backends that already provide "good" etagsRobin Appelman2022-04-042-2/+7
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | shRobin Appelman2022-04-061-12/+12
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | allow reusing known folder info when getting directory contentsRobin Appelman2022-04-062-9/+16
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>