aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage/Common.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(Storage): Fix method docs inheritancefix/storage/method-docs-inheritanceprovokateurin2024-09-171-27/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(Storage): Document getOwner() can return falseprovokateurin2024-09-171-7/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Check storage is an instance of the correct class instead of ↵fix/remove-references-to-deprected-storage-interfaceCôme Chilliet2024-09-161-6/+9
| | | | | | psalm-suppress Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Remove deprecated Storage::search method instead of moving it to IStorageCôme Chilliet2024-09-161-4/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: psalm-suppress legacy code weirdnessCôme Chilliet2024-09-161-2/+12
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Fix psalm issues, put back private versions of getter in private ↵Côme Chilliet2024-09-161-6/+14
| | | | | | Storage interface Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(files): Never return a null ETag in DAVprovokateurin2024-09-091-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: Also validate parent path in `verifyPath`Ferdinand Thiessen2024-08-281-1/+13
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-5/+5
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge branch 'master' into jr-readdir-false-falseJohn Molakvoæ2024-08-161-112/+50
|\ | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * refactor: Migrate filename validation logic from `Storage` to ↵Ferdinand Thiessen2024-07-161-64/+12
| | | | | | | | | | | | `FilenameValidator` Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| * chore: Add SPDX headerAndy Scherzinger2024-05-241-39/+4
| | | | | | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
| * fix: Pass the mountpoint target user to storages without ownerJulius Härtl2024-04-091-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | Storages that do not have a dedicated owner (e.g. groupfolders, external storages) currently always assume the current session user as the owner. This leads to several issues when there is no user session but a node is obtained through a user folder. In order to have the correct user available we need to pass the user that is used to setup a mountpoint along to the storage layer as we generally assume that an owner is available for those. Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * 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-091-8/+11
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * Convert isset ternary to null coalescing operatorHamid Dehnavi2023-09-281-1/+1
| | | | | | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* | Clean-up some remaining readdir calls with undesirable false evaluation ↵Josh Richards2023-06-241-1/+1
|/ | | | | | potential Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
* Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-151-1/+1
| | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* fix: Wrap filesystem LockedExceptions for holding the readable pathJulius Härtl2023-05-021-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge branch 'master' into enh/type-iconfig-getter-callsCôme Chilliet2023-04-201-0/+3
|\ | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * handle not being able to write file for notify self-testRobin Appelman2023-04-061-0/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Use typed version of IConfig::getSystemValue as much as possibleCôme Chilliet2023-04-051-1/+1
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Adapt types of subclassesCôme Chilliet2023-04-011-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Respect OCP interface in private classesCôme Chilliet2023-02-071-1/+1
| | | | | | | Because the parameter type was moved to phpdoc it needs to be removed from implementations Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix psalm errors related to filesizesCôme Chilliet2023-02-071-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Strong type filesize related methods to ease 32bits problem findingsCôme Chilliet2023-02-071-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* composer run cs:fixCôme Chilliet2023-01-201-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Rename file1 and file2 to source and target in Storage abstractionCarl Schwan2022-10-181-15/+15
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* 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
| |
* | Remove ILogger usages in lib/private/Files/StorageCôme Chilliet2022-04-261-11/+17
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | some file scanner performance improvementsRobin Appelman2022-03-171-1/+6
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Check for invalid characters before trimmingJoas Schilling2021-11-251-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make sure that a empty directory can still be deleted when copied from ↵Julius Härtl2021-08-131-0/+1
| | | | | | another storage Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove some mentions of ownCloud from our api documentationCarl Schwan2021-07-291-2/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* better cleanup of user files on user deletionRobin Appelman2021-04-271-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Properly handle result when copying with failure and throw in testsJulius Härtl2021-01-051-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Bump icewind/streams from 0.7.1 to 0.7.2Christoph Wurst2020-12-291-2/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* use exceptions for error signaling in writeStreamRobin Appelman2020-07-231-4/+12
| | | | | | this remove the ambiguity when writing zero length files Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix moving files from external storage to object store trashbinRobin Appelman2020-07-231-9/+6
| | | | | | | | | | | | having the "cache rename" after the "storage move" caused the target to get the fileid from the source file, without taking care that the object is stored under the original file id. By doing the "cache rename" first, we trigger the "update existing file" logic while moving the file to the object store and the object gets stored for the correct file id Signed-off-by: Robin Appelman <robin@icewind.nl>
* filter files containing a hash in the path for ftp storagesRobin Appelman2020-07-101-1/+4
| | | | | | | | the php ftp streamwrapper doesn't handle hashes correctly and will break when it tries to enter a path containing a hash. By filtering out paths containing a hash we can at least stop the external storage from breaking completely Signed-off-by: Robin Appelman <robin@icewind.nl>
* add proper paths to locking exceptionsRobin Appelman2020-06-301-1/+1
| | | | | | | while some code paths do wrap the "raw" locking exception into one with a proper path, not all of them do by adding the proper path to the original exception we ensure that we always have the usefull information in out logs Signed-off-by: Robin Appelman <robin@icewind.nl>
* increase log level for storage self-testRobin Appelman2020-06-081-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* filter out blacklisted files in getDirectoryContentRobin Appelman2020-04-231-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>