Commit Graph

1795 Commits (edb370d2ace62df275b592ff883df83ef88c2535)

Author SHA1 Message Date
Robin Appelman edb370d2ac chore: better type hints for `getAvailability`
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-11-12 17:45:41 +07:00
Robin Appelman 2221c69219 fix: make failed availability check apply in the same request
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-11-12 17:45:41 +07:00
Daniel Kesselberg fecaddf4cc
fix: validate filename when creating file from template
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2025-11-04 16:08:49 +07:00
Louis Chmn 3cfc34ecfa fix(S3): Only append streams if non-seekable
Later, when we rewind the stream in `writeMultiPart` during retry, both streams were rewinded, so the resulting stream was bigger than expected.

Inspired by https://github.com/aws/aws-sdk-php/blob/master/src/S3/ObjectUploader.php#L136-L146

Signed-off-by: Louis Chmn <louis@chmn.me>
2025-10-10 12:43:19 +07:00
provokateurin f5e3e97ea6
fix(files): Always return a valid mimetype
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-10-06 16:00:04 +07:00
Kate 7db30397fd
Merge pull request #55410 from nextcloud/backport/55374/stable31 2025-10-01 00:01:33 +07:00
Robin Appelman 6842d0746d
Merge pull request #55288 from nextcloud/backport/52816/stable31
[stable31] feat: move primary object store configuration to a single place
2025-09-30 10:35:42 +07:00
provokateurin 406c0011fa fix(files): Stop overwriting scan_permissions
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-09-29 16:12:10 +07:00
yemkareems d615109126 fix: small typo fix
Signed-off-by: yemkareems <yemkareems@gmail.com>
2025-09-29 12:24:43 +07:00
Robin Appelman 7162c3e8ed
feat: move primary object store configuration to a single place
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-09-24 18:39:21 +07:00
Louis Chemineau ffe4696192 fix(Updater): Lower deadlock log level from warning to info
If this is safe to ignore, then it does not make sense to keep warning the admins.

Signed-off-by: Louis Chemineau <louis@chmn.me>
2025-09-16 16:19:03 +07:00
Ferdinand Thiessen 6860d92bf4 fix(Filesystem): use FilenameValidator for `Filesystem::isFileBlacklisted`
This fixes the issue that some methods will not allow uploading files
because they still require the deprecated config option to be used.
So instead we need to use the validator introduced in v30.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-09-03 14:24:48 +07:00
Robin Appelman f38be0a169
fix: cast fileid to string in getMountsForFileId
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-08-29 17:59:16 +07:00
Côme Chilliet f1fb150055 fix(encryption): Fix TypeError when trying to decrypt unencrypted file
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-08-26 08:42:58 +07:00
John Molakvoæ 7cc52f0b14
Merge pull request #54190 from nextcloud/backport/54121/stable31
[stable31] fix: add missing color select to tags usage query
2025-08-07 17:01:34 +07:00
Benjamin Gaussorgues 50fc614bcd
Merge pull request #54297 from nextcloud/backport/54125/stable31 2025-08-07 17:00:12 +07:00
Robin Appelman 05e64418a7
fix: better object store write error propagation
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-08-07 13:48:43 +07:00
Robin Appelman d1af0f34a2
fix: always do stream counting for object store upload
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-08-07 13:48:42 +07:00
Robin Appelman 902cb3dbb9
fix: validate written size for s3 multipart uploads
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-08-07 13:48:42 +07:00
Robin Appelman e483387189
feat: more generic way of passing metadata to object storage backends for new objects
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-08-07 13:48:37 +07:00
Robin Appelman 78f976dc0b fix: add missing color select to tags usage query
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-08-06 13:04:01 +07:00
Robin Appelman 034cf48da3 fix: don't update cached mountpoints if the request doesn't have filesystem access
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-08-01 16:04:20 +07:00
Côme Chilliet e2861b42d1 fix(encryption): Correctly handle file opening and copying failures
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-07-03 16:03:19 +07:00
Kent Delante f40d14abac fix(s3): retry failed multipart uploads with decreased concurrency
Signed-off-by: Kent Delante <kent.delante@proton.me>
2025-06-20 18:24:16 +07:00
Daniel Calviño Sánchez 019b535868 fix(ObjectStore): Make S3 "connect_timeout" option configurable
The hardcoded connection timeout of 5 seconds may not be enough in some
cases, so now it is got from the ObjectStore arguments in Nextcloud
configuration, falling back to 5 if not set.

The connection timeout is set in seconds, but decimal precision can be
used for subsecond accuracy (for example, 4.2 for 4200 milliseconds).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2025-06-17 03:30:55 +07:00
Joas Schilling efb2a9376b fix: Run cleanByMoundId query on all shards
Signed-off-by: Joas Schilling <coding@schilljs.com>
2025-06-08 09:28:02 +07:00
Robin Appelman edfb7b2393 perf: set the folder size in the same query as we create it
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-06-02 09:56:29 +07:00
Louis Chemineau 9d26571eb2 fix(S3): Use original folder size during copy
This prevent having copied folders with a wrongly set size of 0KB.

- Fix https://github.com/nextcloud/server/issues/51916

Signed-off-by: Louis Chemineau <louis@chmn.me>
2025-06-02 09:56:29 +07:00
Jonas ed492c5c70 fix(node): emit hooks on `Node::copy()`
When calling `Files\Node\Node::copy()`, `Files\View::copy()` gets called,
but `Files\View::fakeRoot` is empty so the hooks are not emitted if no
path is given to `Files\View::shouldEmitHooks()`.

This results in node-related events like `NodeCopiedEvent` not being
fired when copying files via `Files\Node\Node::copy()`.

`Files\View::shouldEmitHooks()` is given a path as parameter in almost
all places except when called from the `copy()` function. This commit
changes it and passes the copy target path.

Fixes: nextcloud/collectives#1756

Signed-off-by: Jonas <jonas@freesources.org>
2025-05-28 11:50:11 +07:00
Elizabeth Danzberger 52ae766a8e feat: only load template fields when requested
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
2025-05-26 18:03:24 +07:00
Kate 76d37a37f6
Merge pull request #52987 from nextcloud/backport/50157/stable31 2025-05-26 08:27:43 +07:00
Andy Scherzinger b3d1fac31e
Merge pull request #52883 from nextcloud/backport/52873/stable31
[stable31] fix: improve error message when cache rename source can't be found
2025-05-25 20:16:11 +07:00
Robin Appelman 4dba5e141b fix: improve error message when cache rename source can't be found
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-25 18:38:42 +07:00
provokateurin 29d69826b6 feat(UserMountCache): Emit events for added, removed and updated mounts
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-05-25 16:46:53 +07:00
provokateurin 6517f0527d fix(SetupManager): Include home and root providers when registering mounts
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-05-25 16:42:35 +07:00
Robin Appelman 780766b63c fix: keep IObjectStoreMetaData in private namespace for backports
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-16 10:41:27 +07:00
Robin Appelman f0cab800ab feat: add command to list objects
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-16 10:41:27 +07:00
Robin Appelman a324dbec2e feat: add command to get object metadata
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-16 10:41:27 +07:00
Kate 3f2fee08ca
Merge pull request #52823 from nextcloud/backport/52775/stable31 2025-05-16 10:01:43 +07:00
Robin Appelman 465486e335 fix: fix unjailedroot of nested jails if there are other wrappers in between
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-15 14:57:05 +07:00
Robin Appelman 66362e6b51 test: add test for nested cache jail unjailedroot
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-15 14:57:05 +07:00
Robin Appelman 54338f6d72 fix: create mountpoint folder even if the user has a quota of 0
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-15 14:56:10 +07:00
Robin Appelman 4271753fc2
Merge pull request #52790 from nextcloud/backport/52441/stable31
[stable31] fix: better error message when trying to scan a folder that is already being scanned
2025-05-15 14:11:14 +07:00
Robin Appelman b8cbd0f41b
Merge pull request #52764 from nextcloud/backport/52706/stable31
[stable31] feat: add more encryption checks to info:file
2025-05-15 14:05:32 +07:00
Robin Appelman ef2e308aa3
Merge pull request #52762 from nextcloud/backport/52707/stable31
[stable31] fix: throw a better error if we can't get the encrypted header size
2025-05-15 14:03:03 +07:00
Robin Appelman a4a5bcaacb fix: better error message when trying to scan a folder that is already being scanned
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-13 14:06:15 +07:00
Robin Appelman d1ddfd220f fix: improve handling of newFolder race condition handling
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-13 11:59:05 +07:00
Robin Appelman 1c5658cd33 feat: add more encryption checks to info:file
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-12 11:27:33 +07:00
Robin Appelman 7e454b2d96 fix: throw a better error if we can't get the encrypted header size
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-12 11:27:21 +07:00
Anna Larch d393e98c9e fix(objectstorage): add retry attempts to S3 connection
Signed-off-by: Anna Larch <anna@nextcloud.com>
2025-04-23 18:40:23 +07:00