summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage
Commit message (Collapse)AuthorAgeFilesLines
* fix: Enforce forbidden filename characters on backendFerdinand Thiessen2024-02-281-5/+7
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Throw instead of yielding nothing when listing local directoriesJulius Härtl2024-02-231-0/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* use OCP\ServerRobin Appelman2024-02-121-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* improve di performance for cacheRobin Appelman2024-02-092-9/+12
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* dav: fix wrong decoding of pluses in URLsLorenz Brun2024-01-311-1/+1
| | | | | | | | | | | | | | | PHP's urldecode function does not decode URLs according to RFC 3986, but according to the HTML 4.01 query parameter encoding. This results in pluses being wrongly decoded to spaces even though they should not be decoded at all. Use rawurldecode instead, which follows RFC 3986 properly. This fixes an issue where files on DAV shares containing pluses were incorrectly decoded to spaces. Fixes: #15849 Signed-off-by: Lorenz Brun <lorenz@brun.one>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-232-2/+2
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Merge pull request #40935 from nextcloud/local-case-insensitiveBenjamin Gaussorgues2023-11-151-1/+26
|\ | | | | add some support for rename on case insensitive local filesystems
| * add some support for rename on case insensitive local filesystemsRobin Appelman2023-10-201-1/+26
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | optimize cache jail creationRobin Appelman2023-10-191-4/+1
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Convert isset ternary to null coalescing operatorHamid Dehnavi2023-09-282-3/+3
| | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* Merge pull request #40499 from nextcloud/known-mtime-wrapperRobin Appelman2023-09-211-0/+142
|\ | | | | add wrapper for external storage to ensure we don't get an mtime that is lower than we know it is
| * add wrapper to ensure we don't get an mtime that is lower than we know it isRobin Appelman2023-09-191-0/+142
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #39216 from shdehnavi/replace_substr_calls_in_lib_privateRobin Appelman2023-09-212-4/+4
|\ \ | |/ |/| Refactor "substr" calls in lib/private to improve code readability
| * Refactor "substr" calls to improve code readabilityHamid Dehnavi2023-07-072-4/+4
| | | | | | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* | fix: Only store unencrypted_size if path should be encryptedJulius Härtl2023-09-061-1/+1
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #39863 from nextcloud/sharing-mask-wrapperRobin Appelman2023-09-041-1/+2
|\ \ | | | | | | move share permission logic to storage wrapper
| * | more share permission logic to storage wrapperRobin Appelman2023-08-141-1/+2
| | | | | | | | | | | | | | | | | | this way we only have to determine the share permissions once Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #39707 from ↵Simon L2023-09-041-0/+7
|\ \ \ | | | | | | | | | | | | nextcloud/bugfix/39706/local-ext-storage-unavailable-mode
| * | | Allow ext storage Local to go unavailableVincent Petry2023-08-291-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whenever an external storage of type Local points at a non-existing directory, process this as a StorageNotAvailable instead of returning 404. This makes desktop clients ignore the folder instead of deleting it when it becomes unavailable. The code change was limited to external storages to avoid issues during setup and with the default home storage. Signed-off-by: Vincent Petry <pvince81@yahoo.fr>
* | | | extend fix-key-location to handle cases from broken cross-storage movesRobin Appelman2023-08-311-29/+17
|/ / / | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | only determine quota_include_external_storage once for quota wrapperRobin Appelman2023-08-181-2/+3
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | fix: copy-and-delete fallback should use unlinkDaniel Kesselberg2023-07-311-1/+1
|/ / | | | | | | | | | | because rmdir does not work for files. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* / fix(storage): fallback to copy and unlink when rename failsDaniel Kesselberg2023-07-311-13/+6
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(sse): don't update uncached filesRichard Steinmetz2023-07-041-13/+21
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* dav: clean path before putting it in the statcacheRobin Appelman2023-06-231-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* implement optimized getDirectoryContent for DAVRobin Appelman2023-06-221-96/+125
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix deprecated method callDominik Fuchß2023-06-131-1/+2
| | | | Signed-off-by: Dominik Fuchß <develop@fuchss.org>
* Changes after code review.Dominik Fuchß2023-06-131-2/+7
| | | | Signed-off-by: Dominik Fuchß <develop@fuchss.org>
* Add config variable for curl timeoutDominik Fuchß2023-06-131-2/+6
| | | | | | Add the config variable for curl calls ("remote_curl_timeout"). E.g., needed for nextcloud federation. Signed-off-by: Dominik Fuchß <develop@fuchss.org>
* Merge pull request #38261 from fsamapoor/replace_strpos_calls_in_lib_privateRobin Appelman2023-06-015-10/+10
|\ | | | | Refactors "strpos" calls in lib/private to improve code readability.
| * Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-155-10/+10
| | | | | | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* | invert elseif on rmdir for local storage Lorenzo Tanganelli2023-05-241-2/+2
| | | | | | Signed-off-by: Lorenzo Tanganelli <lorenzo.tanganelli@hotmail.it>
* | Merge pull request #38196 from nextcloud/fix/fix-32bits-freespace-and-sizesCôme Chilliet2023-05-152-3/+5
|\ \ | |/ |/| Get rid of more int casts in file size manipulations
| * Get rid of more int casts in file size manipulationsCôme Chilliet2023-05-112-3/+5
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #37621 from nextcloud/enh/lock-readable-pathJulius Härtl2023-05-131-0/+3
|\ \ | |/ |/|
| * fix: Wrap filesystem LockedExceptions for holding the readable pathJulius Härtl2023-05-021-0/+3
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix file_get_content signatures to make it clear it can return falseCôme Chilliet2023-04-274-4/+4
|/ | | | | | | 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 #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 #36857 from nextcloud/scan-repair-unencrypted-sizeRobin Appelman2023-04-241-1/+4
|\ \ | |/ |/| fix unencrypted_size for folders when scanning the filesystem with encryption enabled
| * fix unencrypted_size for files when scanningRobin Appelman2023-04-041-1/+4
| | | | | | | | 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-202-1/+6
|\ \ \ | | | | | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * \ \ 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>
* | / | Use typed version of IConfig::getSystemValue as much as possibleCôme Chilliet2023-04-053-4/+4
|/ / / | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>