summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | fix(events): Make sure all `\OCP\Files::…` events are emitted with the ↵Joas Schilling2023-11-091-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | same data Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | Merge pull request #41119 from nextcloud/optmize-storage-wrappersRobin Appelman2023-11-085-27/+74
|\ \ \ \ | | | | | | | | | | optimize builtin storage wrappers
| * | | | optimize isShared and isMountedRobin Appelman2023-11-081-6/+6
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | optimize builtin storage wrappersRobin Appelman2023-11-084-21/+68
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | Merge pull request #40964 from nextcloud/artonge/feat/metadata/port_providersLouis2023-11-083-19/+27
|\ \ \ \ \ | | | | | | | | | | | | Support dynamic metadata request on PROPFIND requests
| * | | | | Support getting and setting metadata in DAV requestsLouis Chemineau2023-11-083-19/+27
| |/ / / / | | | | | | | | | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | | | | Merge pull request #40996 from nextcloud/view-share-disable-reuseRobin Appelman2023-11-081-1/+1
|\ \ \ \ \ | |/ / / / |/| | | | reuse sharing disabled state when listing folder content
| * | | | reuse sharing disabled state when listing folder contentRobin Appelman2023-10-191-1/+1
| | |_|/ | |/| | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | IFilesMetadataMaxence Lange2023-11-075-16/+16
| | | | | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | | | IFilesMetadataMaxence Lange2023-11-0710-95/+179
| | | | | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | | | Merge pull request #40995 from nextcloud/cache-jail-optimizationsArthur Schiwon2023-11-032-6/+1
|\ \ \ \ | |_|/ / |/| | | optimize cache jail creation
| * | | optimize cache jail creationRobin Appelman2023-10-192-6/+1
| |/ / | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #40326 from nextcloud/enh/text-to-image-apiJoas Schilling2023-10-261-1/+1
|\ \ \ | | | | | | | | Implement TextToImage OCP API
| * | | fix(Folder): Allow filename to be '0'Marcel Klehr2023-10-221-1/+1
| |/ / | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* | | Merge pull request #39044 from nextcloud/more-empty-mount-checkingRobin Appelman2023-10-243-3/+18
|\ \ \ | | | | | | | | Fix root mounts not being setup in some cases
| * | | setup filesystem wrappers before we mark the root as setupRobin Appelman2023-09-121-2/+3
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | add more checks to ensure mounts aren't emptyRobin Appelman2023-09-122-1/+15
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | enh(IMountManager): Add method to get MountPoint from CachedMountInfoJonas2023-10-232-1/+20
| |/ / |/| | | | | | | | Signed-off-by: Jonas <jonas@freesources.org>
* | | Merge pull request #40478 from nextcloud/node-from-entryJohn Molakvoæ2023-10-183-1/+34
|\ \ \
| * | | add method to create a node from cache entry + mountpointRobin Appelman2023-09-193-1/+34
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | feat(files): migrate template pickerJohn Molakvoæ2023-10-171-1/+2
| |_|/ |/| | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | | Convert isset ternary to null coalescing operatorHamid Dehnavi2023-09-287-9/+9
| | | | | | | | | | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* | | Merge pull request #40501 from nextcloud/fix/fix-int-size-in-files-scannerCôme Chilliet2023-09-252-4/+7
|\ \ \ | | | | | | | | Store size in int|float for 32bit support
| * | | Store size in int|float for 32bit supportCôme Chilliet2023-09-192-4/+7
| |/ / | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.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>
* | | | use multipart copy for s3Robin Appelman2023-09-201-4/+12
| |/ / |/| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #40203 from lhsazevedo/fix/mimetype-40064Simon L2023-09-161-19/+17
|\ \ \
| * | | Wrap mimetype insert and getLastInsertId in a transactionLucas Azevedo2023-09-041-7/+9
| | | | | | | | | | | | | | | | Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
| * | | fix(mimetype): Remove unnecessary transaction when storing a mime typeLucas Azevedo2023-09-011-26/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #40064. This could be fixed by adding a rollback and starting a new transaction before the SELECT query, but in this case that would have the same effect as not using one. See https://dev.mysql.com/doc/refman/8.0/en/innodb-autocommit-commit-rollback.html and https://www.postgresql.org/docs/7.1/sql-begin.html#R1-SQL-BEGIN-1 Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
* | | | fix: Pass parent to NonExistingFile instancesJulius Härtl2023-09-131-1/+10
| |_|/ |/| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Detect aborted connection in OC\Files\View and stop writing data to the ↵Benjamin Gaussorgues2023-09-071-2/+12
| | | | | | | | | | | | | | | | | | output buffer Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | | fix: Only read unencrypted_size when file is actually encryptedJulius Härtl2023-09-062-3/+3
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | fix: Only store unencrypted_size if path should be encryptedJulius Härtl2023-09-062-1/+3
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | reuse isValidPath from FilesystemRobin Appelman2023-09-042-15/+3
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | make LazyFolder::get not load the real folder if we know the pathRobin Appelman2023-09-044-27/+56
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | add IFileInfo::getParentIdRobin Appelman2023-09-043-7/+19
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | make Node::getParent lazyRobin Appelman2023-09-041-1/+10
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | allow passing more info to lazy folderRobin Appelman2023-09-041-0/+18
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #39863 from nextcloud/sharing-mask-wrapperRobin Appelman2023-09-045-77/+50
|\ \ \ | | | | | | | | move share permission logic to storage wrapper
| * | | cleanup di for share permissions wrapperRobin Appelman2023-08-162-79/+42
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | more share permission logic to storage wrapperRobin Appelman2023-08-144-10/+20
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | fix: prevent sharing permissions on user root folderJohn Molakvoæ2023-09-011-1/+2
| |_|/ / |/| | | | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | | | Merge pull request #36068 from nextcloud/gf-encryption-fixRobin Appelman2023-09-011-29/+17
|\ \ \ \ | | | | | | | | | | extend fix-key-location to handle cases from broken cross-storage moves
| * | | | 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>
* / / / fix(s3): fix handling verify_bucket_exists parameterThomas Citharel2023-08-311-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | If 'verify_bucket_exists' is set to false in the config.php s3 configuration, it's supposed to avoid verifying that the bucket exists. However empty(falsy) will always return true, so this condition would not work. Signed-off-by: Thomas Citharel <tcit@tcit.fr>