Commit graph

15180 commits

Author SHA1 Message Date
MichaIng
60ebe42ef5
Merge pull request #53593 from nextcloud/backport/53210/stable30
[stable30] fix: clear opcache after app extraction
2025-06-19 14:25:35 +02:00
Daniel Kesselberg
b4cbdadd71
fix: clear opcache after app extraction
clear opcache post app update extraction to prevent outdated files issues.

opcache.validate_timestamps=0 disables automated file modification checks.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2025-06-18 20:29:57 +02:00
Daniel Calviño Sánchez
5830546c1b 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-18 11:02:22 +02:00
Joas Schilling
2fb8e92067
Merge pull request #53366 from nextcloud/backport/53314/stable30
[stable30] fix(notifications): Fix check for hasNotifiers when all apps use Regi…
2025-06-16 16:37:00 +02:00
Joas Schilling
688dd8be61 fix: Run cleanByMoundId query on all shards
Signed-off-by: Joas Schilling <coding@schilljs.com>
2025-06-08 09:28:42 +02:00
Joas Schilling
21f9ea09de fix(notifications): Fix check for hasNotifiers when all apps use RegistrationContext
Signed-off-by: Joas Schilling <coding@schilljs.com>
2025-06-06 08:44:02 +00:00
Julien Veyssier
be027ae01c
fix(PreviewManager): use the forced mimetype in throwIfPreviewsDisabled
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2025-06-02 23:26:00 +02:00
Robin Appelman
7eb607c8b9
perf: set the folder size in the same query as we create it
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-06-02 12:00:59 +02:00
Louis Chemineau
1c80a98720 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:15 +00:00
Maxence Lange
f2f526b0b6 fix(metadata): set background job on fresh setup
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2025-05-29 14:52:40 +02:00
Jonas
10034c4d15 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:49:58 +00:00
Edward Ly
94cb83eb1f fix(TaskProcessing): increase task cleanup delay
Signed-off-by: Edward Ly <contact@edward.ly>
2025-05-27 08:39:43 -07:00
Louis Chemineau
7ac1adeccf fix(blurhash): Skip generation the if previews are disabled.
Signed-off-by: Louis Chemineau <louis@chmn.me>
2025-05-27 12:56:19 +00:00
Jonas
e4261a6be1
Merge pull request #53132 from nextcloud/backport/53131/stable30
[stable30] fix(FileReferenceEventListener): Invalidate cache after node was renamed
2025-05-27 13:37:44 +02:00
Stephan Orbaugh
0d394fc9e9
Merge pull request #52988 from nextcloud/backport/50157/stable30
[stable30] feat(UserMountCache): Emit events for added, removed and updated mounts
2025-05-27 13:24:15 +02:00
Jonas
9dd48a1837
fix(FileReferenceEventListener): Invalidate cache after node was renamed
Fixes: nextcloud/collectives#1527

Signed-off-by: Jonas <jonas@freesources.org>
2025-05-27 12:33:09 +02:00
Christoph Wurst
7b38b3049f fix(log): map all warnings to warn log level, notice to info
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2025-05-27 06:22:44 +00:00
provokateurin
a8b96fd4f8
feat(UserMountCache): Emit events for added, removed and updated mounts
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-05-26 08:34:45 +02:00
Robin Appelman
fe29175144
Merge pull request #52884 from nextcloud/backport/52873/stable30
[stable30] fix: improve error message when cache rename source can't be found
2025-05-25 16:50:16 +02:00
Kate
4d63308cbf
Merge pull request #52990 from nextcloud/backport/52972/stable30 2025-05-23 14:31:24 +02:00
Joas Schilling
e269df3bc8 fix: Fix warning when crash reporter fails to get loaded
Signed-off-by: Joas Schilling <coding@schilljs.com>
2025-05-20 20:30:19 +00:00
provokateurin
8ed7fdafaf
fix(SetupManager): Include home and root providers when registering mounts
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-05-20 15:14:08 +02:00
Akhil
bdc3521619 fix: Throw exception in PreviewManager when preview is not available
Signed-off-by: Akhil <akhil@e.email>
2025-05-20 11:32:54 +00:00
Kate
119727d74a
Merge pull request #52759 from nextcloud/backport/49352/stable30 2025-05-19 06:44:24 +02:00
Robin Appelman
09e1ecd15b
Merge pull request #52867 from nextcloud/backport/51603/stable30
[stable30] Add command to list orphan objects
2025-05-16 21:36:28 +02:00
Louis
921c98e4df
Merge pull request #52696 from nextcloud/backport/49903/stable30 2025-05-16 16:23:56 +02:00
Daniel
4f583f073c
Merge pull request #52881 from nextcloud/backport/50234/stable30
[stable30] fix(ratelimit): Allow to bypass rate-limit from bruteforce allowlist
2025-05-16 13:17:22 +02:00
Daniel
327ce31c66
Merge pull request #52814 from nextcloud/backport/52798/stable30
[stable30] fix: log requests exceeding the rate limiting
2025-05-16 13:11:52 +02:00
Christoph Wurst
87dcb67da4
Merge pull request #52803 from nextcloud/backport/52782/stable30
[stable30] feat(log): Log the request id sent with the request
2025-05-16 10:59:34 +02:00
Robin Appelman
a4f0a9c7ca fix: improve error message when cache rename source can't be found
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-15 16:34:39 +00:00
Robin Appelman
86206e9bac fix: keep IObjectStoreMetaData in private namespace for backports
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-15 18:00:35 +02:00
Joas Schilling
b6a8287ce1 fix(ratelimit): Allow to bypass rate-limit from bruteforce allowlist
Signed-off-by: Joas Schilling <coding@schilljs.com>
2025-05-15 17:52:02 +02:00
Robin Appelman
ca6e59c820
Merge pull request #52824 from nextcloud/backport/52775/stable30
[stable30] fix unjailedroot of nested jails if there are other wrappers in between
2025-05-15 14:57:11 +02:00
Robin Appelman
9da4ebd650 feat: add command to list objects
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-15 14:13:06 +02:00
Robin Appelman
042934a99f feat: add command to get object metadata
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-15 14:13:06 +02:00
Robin Appelman
855f3f1b4f
Merge pull request #52763 from nextcloud/backport/52706/stable30
[stable30] feat: add more encryption checks to info:file
2025-05-15 14:05:34 +02:00
Robin Appelman
b253b70d16
Merge pull request #52761 from nextcloud/backport/52707/stable30
[stable30] fix: throw a better error if we can't get the encrypted header size
2025-05-15 14:03:07 +02:00
Robin Appelman
195358eb8e fix: fix unjailedroot of nested jails if there are other wrappers in between
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-14 20:08:02 +02:00
Robin Appelman
e5aabded60 test: add test for nested cache jail unjailedroot
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-14 20:06:56 +02:00
Daniel Kesselberg
0edd50647e fix: log requests exceeding the rate limiting
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2025-05-14 12:55:05 +00:00
Côme Chilliet
01e2e30767 fix(log): Only log client request id if present, and at the end
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-05-14 08:07:46 +00:00
Côme Chilliet
acf03a2389 feat(log): Log the request id sent with the request
This should help matching client logs with server logs, hopefully.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-05-14 08:07:45 +00:00
Robin Appelman
f2798bf0d4 fix: improve handling of newFolder race condition handling
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-13 11:59:28 +00:00
Robin Appelman
fa135d9535 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 14:14:59 +02:00
Robin Appelman
0fe56ce669 feat: add more encryption checks to info:file
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-12 11:27:29 +00:00
Robin Appelman
87a4bff4ee chore: cleanup leftover debug statement
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-12 11:59:53 +02:00
Robin Appelman
eade5703ba fix: get object size from stream where possible
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-12 11:59:47 +02:00
Robin Appelman
6632669157 fix: don't perform the extra buffering in s3 stream write when the stream size is known
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-12 11:58:34 +02:00
Robin Appelman
b1ad63666f fix: use php://temp instead of php://memory for multi-part upload buffer
this should reduce potential memory issues if the limit is set very high

Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-12 11:58:23 +02:00
Robin Appelman
697a20ef2a fix: restore updated encrypted version when copying versions
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-05-08 18:57:17 +00:00