aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/ObjectStore
Commit message (Collapse)AuthorAgeFilesLines
* fix(S3ConfigTrait): Allow proxy field to take falsebackport/48016/stable29provokateurin2024-09-151-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: write object to the correct urn when moving from another storage to ↵Robin Appelman2024-08-261-0/+25
| | | | | | object store Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(s3): Don't wait indefinitely for S3 to returnGit'Fellow2024-07-091-29/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: lint Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: use AwsException Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: Throw on connection failure Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: Wrap all in try catch block Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: use RequestTimeout error message Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> log: use OCP Server class Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: Handle connect timeout only Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: Handle errors more generically Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* fix(ObjectStore): handle empty S3 hostnameJosh2024-06-131-1/+1
| | | | | | | | Fixes #45637 The support for s3-accelerate added in #44496 introduced a regression in AWS S3 environments when `hostname` is blank (which is a valid configuration w/ AWS since the hostname gets auto-generated). Signed-off-by: Josh <josh.t.richards@gmail.com>
* feat: add option to enable s3 accelerationRobin Appelman2024-04-261-1/+16
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-045-8/+8
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(S3): Adjust typing for 32bit compatibilityFerdinand Thiessen2024-03-261-3/+6
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(ObjectStore): Make S3 MultipartUpload concurrency configurableFerdinand Thiessen2024-03-213-3/+9
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(ObjectStore): Use common S3 trait so config and connection trait members ↵Ferdinand Thiessen2024-03-213-30/+56
| | | | | | are in sync Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Revert "don't perform an explicit setup when using the file cache"Joas Schilling2024-03-071-8/+0
|
* Merge pull request #32163 from nextcloud/file-cache-gc-no-full-setupJohn Molakvoæ2024-03-071-0/+8
|\ | | | | don't perform an explicit setup when using the file cache
| * fix: fix user folder initRobin Appelman2024-03-061-0/+8
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix: disable the internal s3sdk multi part copy logicRobin Appelman2024-03-061-1/+2
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: Migrate away from OC::$server->getLoggerCôme Chilliet2024-02-131-33/+54
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor(objectstorage): cleanup typesThomas Citharel2024-02-023-15/+21
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* refactor(objectstorage): move $user property from ObjectStoreStorage class ↵Thomas Citharel2024-02-022-14/+6
| | | | | | to HomeObjectStoreStorage Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* fix(objectstorage): cleanup HomeObjectStoreStorageThomas Citharel2024-02-021-8/+4
| | | | | | Fix invalid signature for getUser() method and change occurences of OC\User\User for OCP\IUser Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* also updated parent etags when a changed etag is detected during scanningRobin Appelman2024-01-311-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(s3): Add config option to disable multipart copy for certain s3 providersJulius Härtl2023-12-282-1/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* only do a multipart s3 copy when above the regular copy limitRobin Appelman2023-12-282-11/+23
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(ObjectStore): Make copying behavior consistent with local storageFerdinand Thiessen2023-11-171-0/+7
| | | | | | Drop file permissions on copy like we do on local storage. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(s3): support SSE-C headers for the MultipartCopy callTobias Zimmerer2023-11-141-1/+7
| | | | Signed-off-by: Tobias Zimmerer <3228193+ir0nhide@users.noreply.github.com>
* Convert isset ternary to null coalescing operatorHamid Dehnavi2023-09-281-1/+1
| | | | 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-251-1/+1
|\ | | | | Store size in int|float for 32bit support
| * Store size in int|float for 32bit supportCôme Chilliet2023-09-191-1/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | use multipart copy for s3Robin Appelman2023-09-201-4/+12
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: Only store unencrypted_size if path should be encryptedJulius Härtl2023-09-061-0/+2
| | | | 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>
* | 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>
* fix(s3): add SSE-C parameters to headObject callTobias Zimmerer2023-07-301-1/+1
| | | | Signed-off-by: Tobias Zimmerer <3228193+ir0nhide@users.noreply.github.com>
* Merge pull request #38934 from nextcloud/bugfix/noid/ssec-multipartJulius Härtl2023-07-201-5/+5
|\
| * fix(s3): Pass SSE-C parameters for multipart uploadJulius Härtl2023-06-211-5/+5
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #38858 from nextcloud/scanner-performance3Robin Appelman2023-06-261-1/+1
|\ \ | |/ |/| file scanner performance improvements
| * file scanner performance improvementsRobin Appelman2023-06-161-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | use source cache when listing folder during recursive copyRobin Appelman2023-06-191-5/+6
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add utility command for object store objectsRobin Appelman2023-06-091-1/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #38261 from fsamapoor/replace_strpos_calls_in_lib_privateRobin Appelman2023-06-011-2/+2
|\ | | | | Refactors "strpos" calls in lib/private to improve code readability.
| * Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-151-2/+2
| | | | | | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* | don't always check if we need to setup the object store rootRobin Appelman2023-05-231-6/+18
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* repair -1 folder sizes for object store background scanRobin Appelman2023-05-103-83/+100
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #37534 from Rsplwe/masterSimon L2023-04-181-7/+18
|\ | | | | Adjust the value of the "max-parts" parameter of the object storage 'ListPart' interface to 1000
| * Update lib/private/Files/ObjectStore/S3.phpRsplwe2023-04-031-1/+1
| | | | | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Rsplwe <i@rsplwe.com>
| * s3: get remaining truncation partRsplwe2023-04-011-7/+18
| | | | | | Signed-off-by: Rsplwe <i@rsplwe.com>
| * Adjust the value of 'maxparts' to 1000Rsplwe2023-04-011-1/+1
| | | | | | Signed-off-by: Rsplwe <i@rsplwe.com>
* | Merge pull request #32314 from nextcloud/object-mkdir-loggingSimon L2023-04-171-0/+3
|\ \ | | | | | | additional logging when mkdir fails for object storage
| * | additional logging when mkdir fails for object storageRobin Appelman2023-04-051-0/+3
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* / improve objectstore rmdir handlingRobin Appelman2023-04-031-36/+50
|/ | | | | | | | remove folder entries as they are cleared instead of in one go afterwards otherwise they stick around if some of the child entries can't be removed Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat(s3): Use multipart upload for chunked uploadingJulius Härtl2023-03-082-3/+133
| | | | | | This allows to stream file chunks directly to S3 during upload. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* feat(s3): Add option to specify an SSE-C customer provided keyJulius Härtl2023-01-242-5/+38
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>