aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | files: make OC\Files\Storage\Local WORM friendlyTigran Mkrtchyan2022-08-251-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some filesystems run as a Write-Once-Read-Many storages. This makes them impossible to use with NexeCloud, as the file system layers uses `truncate` syscall (through file_put_contents function). As Nextcloud is never updates existing files, removing the old entry and creatint a new one on update will allow NextCoud to update on such file systems. Update Local#fopen and Local#file_put_contents to remote existing file before truncating. Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
* | | | | | Merge pull request #34020 from nextcloud/logical-opVincent Petry2022-09-161-18/+12
|\ \ \ \ \ \ | | | | | | | | | | | | | | Switch logical operators (and|or)
| * | | | | | Switch logical operators (and|or)Git'Fellow2022-09-121-18/+12
| | | | | | | | | | | | | | | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* | | | | | | fix using FSEEK_END with SeekableHttpStream to get file sizeRobin Appelman2022-09-151-21/+60
|/ / / / / / | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | | Merge pull request #33788 from nextcloud/improve-recentCarl Schwan2022-09-081-27/+55
|\ \ \ \ \ \ | | | | | | | | | | | | | | Improve getting recent files performance
| * | | | | | Filter out old files when trying to get recent filesCarl Schwan2022-09-051-27/+55
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only do so when asking for less than 100 files and having an offset equal to 0. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | | | | 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
| | | |