Commit graph

16117 commits

Author SHA1 Message Date
Côme Chilliet
d84f1466e0 fix: Fix crash in files_version about uninitialized property
Fix "Typed property OC\\Files\\Cache\\Cache::$storage must not be accessed before initialization"

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-10-14 18:32:37 +00:00
Daniel Kesselberg
6ee39e6d05
fix: disable mp3 preview provider
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2025-10-13 17:54:37 +02:00
Ferdinand Thiessen
919701ce24 fix(Collaboration\UserPlugin): ensure full match is included in results
When searching we need to:
1. check if sharing is limited to groups
  - if yes only include those
  - otherwise continue
2. check if there are restrictions to groups or phonebook
3. check if full match is included

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-10-13 13:41:56 +02:00
Ferdinand Thiessen
b9b42cfa7a feat(Share\IManager): add matchUserId method and update docs
Add missing `matchUserId` method for full-match-autocomplete options
and update docs to make it clearer what each options exactly means.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-10-13 13:41:56 +02:00
Louis Chmn
2ad19b99f9 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:32 +00:00
Marcel Klehr
552ef44568 fix(FileAccess): Make getAncestorInStorage pass sharding tests
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2025-10-09 07:51:58 +00:00
Marcel Klehr
38f2bf6f98 fix(FileAccess): Try to fix type error
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2025-10-09 07:51:58 +00:00
Marcel Klehr
bb82cff328 fix(FileAccess): Chunk parent query
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2025-10-09 07:51:58 +00:00
Marcel Klehr
5117f9ab1e fix(FileAccess): Make getByAncestorInStorage sharding ready
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2025-10-09 07:51:58 +00:00
Kate
9667e8c7f5
Merge pull request #55326 from nextcloud/backport/55289/stable32 2025-10-07 18:45:51 +02:00
Marcel Klehr
d82899e160 fix(TaskProcessing): Increase MAX_TASK_AGE to 6 months
to comply with the EU AI act

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2025-10-07 06:22:57 +00:00
provokateurin
42f8ebaf75 fix(files): Always return a valid mimetype
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-10-06 11:24:18 +00:00
provokateurin
5d1d9482f8
fix(IUserManager): Fix deprecation of search method
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-10-02 09:21:42 +02:00
Marcel Müller
b19023b51f
Merge pull request #55440 from nextcloud/backport/55420/stable32
[stable32] fix(appstore): Make appstore timeout configurable
2025-09-30 23:38:33 +02:00
Marcel Müller
d92b1f3ad0 fix(appstore): Make appstore timeout configurable
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
2025-09-30 15:18:59 +00:00
Marcel Müller
d98d9d3c60 fix(appstore): Also catch ClientException and ServerException
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
2025-09-30 14:03:10 +00:00
Andy Scherzinger
5653eea5f0
Merge pull request #55407 from nextcloud/backport/55394/stable32
[stable32] fix: small typo fix
2025-09-29 23:05:15 +02:00
provokateurin
9985baeb09 fix(files): Stop overwriting scan_permissions
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-09-29 16:12:24 +00:00
yemkareems
8633dd58b1 fix: small typo fix
Signed-off-by: yemkareems <yemkareems@gmail.com>
2025-09-29 12:17:22 +00:00
Louis
10609e9cc4
Merge pull request #55301 from nextcloud/backport/55259/stable32 2025-09-29 12:28:07 +02:00
Louis Chemineau
f320c19c85 feat(unified-search): Use existing min search length config
This setting existed already for the legacy unified search.
This commit expose that setting to the new front-end, and
also ignore non valid requests in the backend.

We also take the opportunity to register the config in the lexicon.

Signed-off-by: Louis Chemineau <louis@chmn.me>
2025-09-29 10:55:51 +02:00
Côme Chilliet
2f3e2c0928
fix: Do not try to create lazy ghosts for PHP internal classes
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
(cherry picked from commit d51efd9735)
2025-09-29 10:42:43 +02:00
Marcel Müller
9390b97d5f fix(cache): Ensure unique global prefix per instanceid
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
2025-09-28 17:09:21 +00:00
Maxence Lange
a4fee42b0e fix(ocm): ignore cache if not setup
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2025-09-26 16:58:55 +00:00
Benjamin Gaussorgues
e6e89d0ea1
feat(db): add SSL/TLS support for PostgreSQL
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2025-09-22 14:55:29 +02:00
Maxence Lange
71551254b1 fix(ocm-invites): add route to invite accept dialog
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2025-09-21 12:05:11 +00:00
Marcel Klehr
04a33be489 fix(TaskProcessing): Cache task types by
user language

fixes https://github.com/nextcloud/assistant/issues/357

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2025-09-18 07:23:55 +00:00
Maxence Lange
545f930ab3 fix(userconfig): crop configvalue at 64 before index
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2025-09-17 18:07:01 +00:00
Maxence Lange
ce5964cd58 fix(userconfig): using api bit functions
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2025-09-17 18:07:01 +00:00
Maxence Lange
6cc697e476 fix(userconfig): set 'mail' as indexed
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2025-09-17 18:07:00 +00:00
Côme Chilliet
4c4af010f0 fix: Allow hyphen in appid
It’s rare but exists for some apps not in the appstore.
Also added unit tests for cleanAppId and fixed small issues with it.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-09-16 21:47:03 +00:00
Andy Scherzinger
9d0402208a
Merge pull request #55138 from nextcloud/backport/55133/stable32
[stable32] fix: handleIMip undefined array key
2025-09-16 21:48:25 +02:00
Louis Chemineau
6defeaa119 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:39 +00:00
SebastianKrupinski
e04fd0850f fix: handleIMip undefined array key
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
2025-09-16 12:26:00 +00:00
Louis Chemineau
431f6d7c87 fix: Dispatch favorite event with an actual path
The `$path` argument was added in https://github.com/nextcloud/server/pull/48612, but was never actually used by the callers. The path was therefore missing in the favorite/unfavorite events, which lead to a broken activity information.

I also added a fallback to handle `addToFavorites` and `removeFromFavorites`, which are part of a public API, and are calling `tagAs` and `untag` without `$path`.

Fix https://github.com/nextcloud/activity/issues/2134

Signed-off-by: Louis Chemineau <louis@chmn.me>
2025-09-15 14:38:53 +00:00
Ferdinand Thiessen
156eca4727 fix: use mb_substr
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-09-12 10:50:50 +00:00
Ferdinand Thiessen
e67ee5d895 fix(ownCloud): ensure that accounts.display_name fits into users.displayname
`user.displayname` only allows 64 characters but old `accounts.display_name` allowed 255 characters.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-09-12 10:50:50 +00:00
Côme Chilliet
bccec549e5 fix(encryption): Take encryption enabled status into account
shouldEncrypt now returns false for all paths if encryption is disabled.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-09-11 21:18:37 +02:00
Côme Chilliet
feef3cfa7d fix(encryption): Correctly set encrypted to 0 when copying
If encryption got disabled, copying should set encrypted to 0 for the
 new unencrypted copy. For instance when using encryption:decrypt-all

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-09-11 21:18:37 +02:00
Côme Chilliet
419711cd85 chore(encryption): Cleanup typing in EncryptAll/DecryptAll
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-09-11 21:18:37 +02:00
Côme Chilliet
3c818c8f92 fix(encryption): Do not depend upon user in session unless really necessary
Should fix a bunch of stuff when encryption listener is triggered by events from occ commands or background jobs

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-09-11 21:18:37 +02:00
Louis Chemineau
bc0cdcf496 feat: Support limit argument in getSeenUsers
Signed-off-by: Louis Chemineau <louis@chmn.me>
2025-09-09 08:26:56 +00:00
Andy Scherzinger
e5d1b9b983
Merge pull request #54945 from nextcloud/backport/54941/stable32
[stable32] fix(cache): Set default Redis port to `0` for UNIX sockets
2025-09-09 07:49:00 +02:00
Andy Scherzinger
dfaad9845f
Merge pull request #54906 from nextcloud/backport/54870/stable32
[stable32] fix: remove executable flag from source files
2025-09-08 22:46:22 +02:00
Robin Appelman
a8ee28ba62 fix: ensure all object store configuration have distict bucket names
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-09-08 13:23:47 +00:00
Josh
7993190bc6 fix(cache): Set default Redis port to 0 for UNIX sockets
When using phpredis with a UNIX socket, the port should either not be specified at all or be `<1`. 

https://github.com/phpredis/phpredis?tab=readme-ov-file#connect-open

d0b0c5cfdd/library.c (L3332-L3334)

Fixes #54813

Signed-off-by: Josh <josh.t.richards@gmail.com>
2025-09-08 09:12:07 +00:00
Julien Veyssier
856bb1e162 feat(taskprocessing): add manager method to get the list of available task type IDs
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2025-09-05 10:10:39 +00:00
Ferdinand Thiessen
1538fa9e49
fix: remove executable flag from source files
(exceptions for real scripts, but source files never should be executable)

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-09-05 01:20:07 +02:00
Marcel Klehr
c7b5031656 feat(SystemTag): Add typed events for tag mapper events
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2025-09-04 09:21:13 +00:00
Andy Scherzinger
18abc8c09b
Merge pull request #54839 from nextcloud/carl/perf-seen-users
perf(users): Create lazy users in IUserManager::getSeenUsers
2025-09-03 18:49:44 +02:00