aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | Merge pull request #33600 from nextcloud/lazy-quotablizzz2022-09-072-24/+55
|\ \ \ \ \ \ | | | | | | | | | | | | | | get quota for user only when needed
| * | | | | | get quota for user only when neededRobin Appelman2022-09-012-24/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | always apply the wrapper but have the wrapper get the quota lazily only when an operation where quota is applied is performed Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | | | handle errors from hash_finalRobin Appelman2022-09-021-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | | | handle cases where the hash context gets cleaned up before the hash wrapperRobin Appelman2022-08-311-1/+5
| |/ / / / / |/| | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | | remove leading slash for search results at mountpoint rootRobin Appelman2022-08-291-1/+1
| |/ / / / |/| | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | Only pass parent if paths matchJulius Härtl2022-08-241-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As the user folder might be initialized by the root from two levels down the hierarchy, passing this as a parent only works if the path matches Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | | Avoid extra query for the parent node if we can pass it alongJulius Härtl2022-08-242-9/+20
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | | directly build the search filter for shared storage instead of setting up ↵Robin Appelman2022-08-171-2/+6
|/ / / / | | | | | | | | | | | | | | | | | | | | the source cache Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Merge pull request #32943 from ↵Vincent Petry2022-08-172-30/+40
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | nextcloud/unencrypted-size-revert-interface-changes Revert interface changes from "store unencrypted size in the unencrypted_size column"
| * | | | fix updating size when folder is emptyRobin Appelman2022-08-161-13/+17
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | store unencrypted size in the unencrypted_size columnRobin Appelman2022-08-165-50/+139
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | Revert "store unencrypted size in the unencrypted_size column"Robin Appelman2022-08-165-130/+47
| | |/ / | |/| | | | | | | | | | | | | | | | | | This reverts commit 8238582e59b7b6ec03318bcf81bf47cce54af320. Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Merge pull request #33550 from nextcloud/jail-search-postVincent Petry2022-08-171-5/+7
|\ \ \ \ | | | | | | | | | | optimize search post-processing for jail wrapper
| * | | | optimize search post-processing for jail wrapperRobin Appelman2022-08-161-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>
* | | | Merge pull request #33540 from nextcloud/mount-provider-migrationVincent Petry2022-08-171-1/+6
|\ \ \ \ | | | | | | | | | | 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-08-161-1/+6
| |/ / / | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Merge pull request #33551 from nextcloud/scanner-dont-update-same-sizeVincent Petry2022-08-172-4/+11
|\ \ \ \ | | | | | | | | | | don't update the folder size if we know it hasn't changed
| * | | | don't update the folder size if we know it hasn't changedRobin Appelman2022-08-162-4/+11
| |/ / / | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Merge pull request #33559 from yeyulantu/bugfix-search-cacheJulius Härtl2022-08-161-1/+1
|\ \ \ \
| * | | | fixed the cache searchBuilder negative mapDavid2022-08-161-1/+1
| |/ / / | | | | | | | | Signed-off-by: David <37280718+yeyulantu@users.noreply.github.com>
* | | | Merge branch 'master' into display-name-cache-publicCarl Schwan2022-08-1533-185/+303
|\| | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | | Document all getIncomplete implementations as returning string|falseCôme Chilliet2022-08-022-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Fix dynamic property creations in test filesCôme Chilliet2022-08-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This fixes warnings in PHP 8.2 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Merge pull request #33380 from luzpaz/fix/lib-private-typosCôme Chilliet2022-07-2813-17/+17
| |\ \ \ | | | | | | | | | | Fix typos in lib/private subdirectory
| | * | | Fix typos in lib/private subdirectoryluz paz2022-07-2713-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/private` Signed-off-by: luz paz <luzpaz@github.com>
| * | | | don't set `null` as a bundle pathRobin Appelman2022-07-271-3/+6
| |/ / / | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | always triger setup of builtin storage wrappersRobin Appelman2022-07-211-6/+15
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | Merge pull request #32981 from nextcloud/typing/carl/simplefsCarl Schwan2022-07-183-60/+31
| |\ \ \ | | | | | | | | | | Add typing to SimpleFS
| | * | | Add typing to SimpleFSCarl Schwan2022-07-143-60/+31
| | | |/ | | |/| | | | | | | | | | | | | | | | | - Fix putContent sometimes return a bool and sometimes nothing Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | | Merge pull request #33064 from nextcloud/feat/capped-memorycache-ocpCarl Schwan2022-07-186-6/+6
| |\ \ \ | | | | | | | | | | Move CappedMemoryCache to OCP
| | * | | Move CappedMemoryCache to OCPCarl Schwan2022-07-146-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an helpful helper that should be used in more place than just server and this is already the case with groupfodlers, deck, user_oidc and more using it, so let's make it public Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | | | Merge pull request #32963 from nextcloud/s3-crt-bundle-downloadDaniel2022-07-182-12/+24
| |\ \ \ \ | | |/ / / | |/| | | also use nextcloud certificate bundle when downloading from s3
| | * | | only use nextcloud bundle when explicitly enabledRobin Appelman2022-07-052-10/+15
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| | * | | also use nextcloud certificate bundle when downloading from s3Robin Appelman2022-07-052-10/+17
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | Fix listening for circle events in SetupManagerJonas2022-07-121-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-291-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>
| * | | Merge pull request #32994 from nextcloud/fix/extended-query-searchCarl Schwan2022-06-292-5/+9
| |\ \ \ | | | | | | | | | | Search without join on filecache_extended
| | * | | Search without join on filecache_extendedCarl Schwan2022-06-232-5/+9
| | |/ / | | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | | Merge pull request #32982 from nextcloud/fix/metadata-extractionCarl Schwan2022-06-281-1/+1
| |\ \ \ | | | | | | | | | | Fix metadata extraction
| | * | | Fix metadata extractionCarl Schwan2022-06-221-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 #32960 from nextcloud/fix/avoid-using-undeclared-propertiesCôme Chilliet2022-06-282-2/+0
| |\ \ \ | | |/ / | |/| | Fix PHP 8.2 warnings about undeclared properties
| | * | Fix PHP 8.2 warnings about undeclared propertiesCôme Chilliet2022-06-212-2/+0
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Merge pull request #31475 from nextcloud/kofemann-patch-1blizzz2022-06-211-0/+1
| |\ \ \ | | |/ / | |/| | files: close open directory file descriptor on error path
| | * | files: close open directory file descriptor on error pathTiramisu Mokka2022-03-071-0/+1
| | | |
| * | | Merge pull request #31966 from nextcloud/unencrypted-sizeVincent Petry2022-06-136-49/+136
| |\ \ \ | | | | | | | | | | store unencrypted size in the unencrypted_size column
| | * | | store unencrypted size in the unencrypted_size columnRobin Appelman2022-06-026-49/+136
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | Merge pull request #32723 from MartinBrugnara/masterVincent Petry2022-06-101-5/+9
| |\ \ \ \ | | | | | | | | | | | | Expose umask override value as config parameter: localstorage.umask
| | * | | | Expose umask override value as config parameter: localstorage.umaskMartin Brugnara2022-06-051-5/+9
| | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 451c06d introduced override for umask value. This is needed to avoid broken env configuration or dirty workers to mess with the permissions when creating new files. Most Nextcloud, that does not integrate with external software would work fine with an hard-coded value (451c06d set it at 022). Advanced install may require more flexibility, as such this commit exposes the "umask override value" as configuration parameter: `localstorage.umask` It defaults to 0022 both in code and in config/config.sample.php . Signed-off-by: Martin Brugnara <martin@0x6d62.eu>
| * | | | Merge pull request #32768 from nextcloud/fs-setup-onetime-earlierVincent Petry2022-06-101-0/+4
| |\ \ \ \ | | | | | | | | | | | | perform onetime setup earlier to ensure wrappers are registered on time
| | * | | | perform onetime setup earlier to ensure wrappers are registered on timeRobin Appelman2022-06-081-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>