aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files
Commit message (Collapse)AuthorAgeFilesLines
* Revert "fix: don't recalculate folder size in Cache::delete if the entry ↵ci/revert/47342Daniel Kesselberg2024-12-161-0/+3
| | | | | | | | didn't exist" This reverts commit 5ca9d884d78fd4439a74dde02fdcafb3ac7a40f4. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(TemplateManager): Make sure TemplateFolder is a FolderensureTemplateFolderGit'Fellow2024-12-131-2/+6
| | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* Merge pull request #47342 from nextcloud/cache-delete-notfound-sizeRobin Appelman2024-12-121-3/+0
|\ | | | | fix: don't recalculate folder size in Cache::delete if the entry didn't exist
| * fix: don't recalculate folder size in Cache::delete if the entry didn't existcache-delete-notfound-sizeRobin Appelman2024-08-201-3/+0
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #49739 from nextcloud/s3-disable-multipart-remove-debugKate2024-12-111-1/+0
|\ \ | | | | | | chore: cleanup leftover debug statement
| * | chore: cleanup leftover debug statements3-disable-multipart-remove-debugRobin Appelman2024-12-091-1/+0
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #40394 from nextcloud/updater-change-mimetype-objectstoreJohn Molakvoæ2024-12-111-9/+13
|\ \ \
| * | | fix: fix mimetype not being updated when changing file extention on object storeupdater-change-mimetype-objectstoreRobin Appelman2024-12-051-9/+13
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Merge pull request #49695 from nextcloud/copy-update-cache-excludedJohn Molakvoæ2024-12-111-1/+9
|\ \ \ \ | |_|/ / |/| | |
| * | | fix: only do cache copy in updater if the parent folder should be in cachecopy-update-cache-excludedRobin Appelman2024-12-061-1/+9
| |/ / | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #49352 from nextcloud/s3-disable-multipartJulius Knorr2024-12-062-10/+31
|\ \ \ | | | | | | | | improve handling of large single-part s3 uploads
| * | | fix: get object size from stream where possibleRobin Appelman2024-12-051-0/+8
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | fix: don't perform the extra buffering in s3 stream write when the stream ↵Robin Appelman2024-12-051-10/+23
| | | | | | | | | | | | | | | | | | | | | | | | size is known Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | fix: use php://temp instead of php://memory for multi-part upload bufferRobin Appelman2024-12-051-1/+1
| |/ / | | | | | | | | | | | | | | | this should reduce potential memory issues if the limit is set very high Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #49262 from nextcloud/move-from-encryption-no-optRobin Appelman2024-12-051-1/+5
|\ \ \ | |/ / |/| | fix: don't do same-storage move optimization with encryption wrappers
| * | fix: don't do same-storage move optimization with encryption wrappersmove-from-encryption-no-optRobin Appelman2024-11-131-1/+5
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #48769 from nextcloud/copy-share-unmaskedRobin Appelman2024-12-041-1/+8
|\ \ \ | | | | | | | | Fix incorrect permissions when copying shared files
| * | | fix: use scan_permissions when copying cache itemsRobin Appelman2024-12-041-1/+5
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | fix: store unmaked source permissions as scan_permissions when loading share ↵Robin Appelman2024-12-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | cache items Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Merge pull request #49551 from nextcloud/dont-propagate-future-timeJohn Molakvoæ2024-12-041-2/+9
|\ \ \ \ | |/ / / |/| | |
| * | | fix: don't propagate future mtimesRobin Appelman2024-11-281-2/+9
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Merge pull request #49293 from ↵Louis2024-12-041-3/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | nextcloud/artonge/fix/handle_folders_copy_live_photos fix: Handle copy of folders containing live photos
| * | | | fix: Correctly create NonExistingFolder during copyLouis Chemineau2024-12-041-3/+3
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | | | | Merge pull request #48651 from ↵Louis2024-12-043-11/+41
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | nextcloud/artonge/fix/copy_cache_during_copy_operations fix(files): Correctly copy the cache information during copy operations
| * | | | fix(files): Correctly copy the cache information on copy operationsLouis Chemineau2024-12-033-11/+41
| |/ / / | | | | | | | | | | | | | | | | | | | | Needed to copy the `encrypted` flag of encrypted files when those files are two level down in a moved folder. Signed-off-by: Louis Chemineau <louis@chmn.me>
* / / / fix: don't set 'name' on null metadataRobin Appelman2024-12-031-1/+3
|/ / / | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | fix: fix availability wrapper not applyingRobin Appelman2024-11-261-2/+2
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | fix: throw correct exception type when we can't verify if an s3 bucket existsRobin Appelman2024-11-261-4/+5
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | fix: Wrap partial cache entry in CacheEntryartonge/fix/getting_cache_entryLouis Chemineau2024-11-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Because it is returned here: https://github.com/nextcloud/server/blob/7b7d07c5750583ab3a7b29112af475f5c8891143/lib/private/Files/Cache/Cache.php#L136-L137 And some implementation got stricter: https://github.com/nextcloud/groupfolders/blob/df95bf6ba807da5171de91108879b6d8aa9f3611/lib/Mount/RootEntryCache.php#L23-L28 Signed-off-by: Louis Chemineau <louis@chmn.me>
* | | Merge pull request #49417 from nextcloud/refactSmallAdjustJohn Molakvoæ2024-11-214-242/+68
|\ \ \
| * | | refactor(storage): Code adjustements and simplificationsrefactSmallAdjustGit'Fellow2024-11-214-242/+68
| | | | | | | | | | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* | | | Merge pull request #49420 from nextcloud/fix/etag-constraint-search-queryJohn Molakvoæ2024-11-211-1/+1
|\ \ \ \ | |/ / / |/| | |
| * | | fix(cache): etag constraint violationfix/etag-constraint-search-queryskjnldsv2024-11-211-1/+1
| |/ / | | | | | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* / / fix(storage): Try to delete existing targetdeleteExistingTargetGit'Fellow2024-11-202-10/+15
|/ / | | | | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Add same logic to common storage
* | chore: use `$this->logger` and prevent Server::getfix/undefined-responseskjnldsv2024-11-081-2/+2
| | | | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* | Fix Undefined variable: response notice in case of non-404 errorVictor Dubiniuk2024-11-081-2/+3
| | | | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* | fix(OpenAPI): Adjust array syntax to avoid ambiguitiesfix/openapi/array-syntaxprovokateurin2024-11-051-2/+5
| | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | Merge pull request #47847 from ↵John Molakvoæ2024-10-291-2/+6
|\ \ | | | | | | | | | nextcloud/fix-copying-or-moving-from-shared-groupfolders
| * | fix: Fix copying or moving from shared groupfoldersDaniel Calviño Sánchez2024-10-101-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When copying or moving between two local storages the source path (on disk) to copy or move from is got from the unjailed path of the source storage. However, if the source storage has more than one jail getting the unjailed path resolves the most external jail, but the source path needs to be got from the most internal jail instead (the one closer to the local storage). This can happen, for example, with a shared groupfolder: in that case there is an external jail for the shared storage, and one internal jail for the groupfolder storage wrapped by the shared storage. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | feat(systemtags): add etag support and handle proppatchskjnldsv2024-10-291-1/+1
| | | | | | | | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* | | Merge pull request #48614 from nextcloud/refactor/storage/constructorsKate2024-10-2820-67/+67
|\ \ \
| * | | refactor(Storage): Align all Storage constructorsrefactor/storage/constructorsprovokateurin2024-10-2320-67/+67
| | | | | | | | | | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | | | fix: $uid type in Encryption streamartonge/fix/uid_typeLouis2024-10-231-1/+1
|/ / / | | | | | | | | | | | | | | | | | | As explained by the comment. Signed-off-by: Louis <louis@chmn.me> Signed-off-by: Louis Chemineau <louis@chmn.me>
* | | chore(deps): Bump nextcloud/coding-standard in /vendor-bin/cs-fixerdependabot/composer/vendor-bin/cs-fixer/nextcloud/coding-standard-1.3.2dependabot[bot]2024-10-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 1.3.1 to 1.3.2. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v1.3.1...v1.3.2) --- updated-dependencies: - dependency-name: nextcloud/coding-standard dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: provokateurin <kate@provokateurin.de>
* | | chore(db): Apply query prepared statementsdbQueriesExecStmt2Git'Fellow2024-10-174-49/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix: psalm fix: bad file fix: bug chore: add batch chore: add batch chore: add batch fix: psalm
* | | chore(db): Correctly apply query typesGit'Fellow2024-10-173-16/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix: psalm fix: error fix: add batch fix: fatal error fix: add batch chore: add batch chore: add batch fix: psalm fix: typo fix: psalm fix: return bool fix: revert Manager
* | | feat(http-client): expose default request timeout constant to be used ↵add-default-request-timeout-constThomas Citharel2024-10-111-1/+2
|/ / | | | | | | | | | | | | | | | | | | instead of magic number 30 Will be used to set default where we are able to override the default timeout. See https://github.com/nextcloud/server/pull/48418 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | Merge pull request #48623 from nextcloud/fix/allow-quota-wrapper-checkKate2024-10-091-1/+1
|\ \
| * | fix: Allow overriding shouldApplyQuota check from child classesfix/allow-quota-wrapper-checkJulius Knorr2024-10-091-1/+1
| | | | | | | | | | | | Signed-off-by: Julius Knorr <jus@bitgrid.net>
* | | refactor(Storage): Make all parameter types strong typesprovokateurin2024-10-0721-601/+448
| | | | | | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>