5977 Commits

Author SHA1 Message Date
Salvatore Martire
7b92145f7c fix(L10N): stop stripping _ from language codes
Stripping the underscore breaks support for all languages like de_AT,
de_DE and so on...

Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
2026-02-25 15:54:51 +00:00
Misha M.-Kupriyanov
262dc40ec6 feat(install): dispatch InstallationCompletedEvent in Setup
Integrate event dispatching into Setup class:

- Inject IEventDispatcher dependency
- Dispatch InstallationCompletedEvent after successful installation
- Add Setup tests for event integration
- Update composer autoload for new class

Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
2026-02-03 13:25:53 +01:00
Misha M.-Kupriyanov
3460a7c703 feat(install): add InstallationCompletedEvent for post-installation hooks
Add InstallationCompletedEvent class in public API (OCP namespace) that
provides installation details: data directory, admin username, and admin
email. Event will be dispatched after successful installation.

Include comprehensive unit tests covering all event scenarios.

Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
2026-02-03 13:25:53 +01:00
provokateurin
4b8cd326b2 test(UserPlugin): Rewrite unit tests as integration tests
Signed-off-by: provokateurin <kate@provokateurin.de>
2026-01-21 16:04:19 +01:00
provokateurin
2c76338e64 fix(UserMountCache): Add back unique index for oc_mounts and use normal insert
Signed-off-by: provokateurin <kate@provokateurin.de>
2026-01-19 08:28:14 +01:00
Louis Chemineau
4249a5f66a feat(files): Add appconfig value to disable fixed userfolder permissions optimization
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Louis Chemineau <louis@chmn.me>
2026-01-14 19:21:06 +01:00
Benjamin Gaussorgues
5e3aea3326 Merge pull request #57298 from nextcloud/backport/52442/stable31 2026-01-08 11:03:23 +01:00
Benjamin Gaussorgues
14ef6200cd Merge pull request #57419 from nextcloud/backport/57414/stable31 2026-01-08 09:54:02 +01:00
Benjamin Gaussorgues
f2f5254753 Merge pull request #57415 from nextcloud/backport/56938/stable31 2026-01-08 08:55:40 +01:00
Joas Schilling
81fc235e14 fix(controller): Support native int ranges
Signed-off-by: Joas Schilling <coding@schilljs.com>
2026-01-07 19:40:15 +01:00
Joas Schilling
ae2bd13285 fix(l10n): Fix language selection
Signed-off-by: Joas Schilling <coding@schilljs.com>
2026-01-07 19:27:37 +01:00
Daniel Calviño Sánchez
b49d406b53 fix: Unify handling of exclude groups in contacts menu and sharing
If the current user belongs to both one or more groups excluded from
sharing and one or more groups not excluded from sharing the user is
allowed to share. However, in the contacts menu, as soon as the current
user belonged to a group excluded from sharing the user could not search
for local contacts. This has been unified now with the sharing
behaviour, so local contacts can still be searched if the user also
belongs to a group not excluded from sharing (or to no group at all,
which was also allowed before).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2026-01-07 18:34:58 +01:00
Daniel Calviño Sánchez
ca5b838181 test: Add unit test for excluded groups in contacts menu
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2026-01-07 18:34:58 +01:00
Daniel Calviño Sánchez
53cc490c8f test: Adjust unit test name to better reflect its behaviour
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2026-01-07 18:22:21 +01:00
Robin Appelman
050c9da6de test: add tests for watcher check filter
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-12-31 13:30:17 +01:00
nfebe
e7ce70744d fix(sharing): Add isTrustedServer flag to lookup results
When `show_federated_shares_to_trusted_servers_as_internal` is enabled,
lookup server results were being filtered out because they lacked the
`isTrustedServer` flag. This adds the flag to lookup results by:

- Injecting TrustedServers service into LookupPlugin
- Adding `server` and `isTrustedServer` fields to each lookup result
- Updating tests to reflect new structure

This ensures lookup results from trusted servers appear in internal
sharing while non-trusted servers are correctly filtered out.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-12-04 12:05:01 +01:00
provokateurin
3140daa1aa feat(CertificateManager): Add option to specify the default certificates bundle path
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-12-01 11:57:26 +01:00
Richard Steinmetz
e429a689d8 fix(l10n): do not consider user language when getting the generic one
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2025-11-25 15:43:47 +00:00
Robin Appelman
6b02bb1366 Merge pull request #56557 from nextcloud/backport/52786/stable31
[stable31] allow configuring multiple object store backends
2025-11-24 17:09:19 +01:00
Robin Appelman
d1a760d618 fix: ensure all object store configuration have distict bucket names
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-11-20 15:36:14 +01:00
Robin Appelman
6d487ac990 fix: make bucket mapper work with new multi-object-store config
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-11-20 15:36:13 +01:00
Robin Appelman
f21dcac9ef feat: allow object store configuration aliases for easier migrations
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-11-20 15:36:11 +01:00
Robin Appelman
ff74df3528 feat: allow configuring multiple objectstore configurations
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-11-20 15:16:39 +01:00
Marcel Müller
35a86d6f96 feat: Add option to update the public key of a user
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
2025-11-19 12:42:58 +00:00
Côme Chilliet
96ab777817 feat(login): Add rememberme checkbox
Only present if allowed by configuration.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-11-17 14:16:40 +00:00
Git'Fellow
63fb254b6b Merge pull request #55962 from nextcloud/backport/55955/stable31
[stable31] fix(dav): allow multiple link shares token in session
2025-11-15 13:11:20 +01:00
Robin Appelman
09089193d2 Merge pull request #56406 from nextcloud/backport/56255/stable31
[stable31] make failed availability check apply in the same request
2025-11-12 22:59:21 +01:00
Daniel Calviño Sánchez
f92244d04a Merge pull request #56385 from nextcloud/backport/52012/stable31
[stable31] Fix user collaborators returned when searching for mail collaborators
2025-11-12 21:37:36 +01:00
Daniel Calviño Sánchez
a4bf16e779 fix: Fix user collaborators returned when searching for mail collaborators
The MailPlugin collaborator returned results for both user and mail
collaborators, but it was registered only for mail collaborators. While
it might make sense to move the user results to the UserPlugin instead
that change would be more complex and riskier, so for now the MailPlugin
is now registered for both user and mail collaborators and the results
are limited only to the registered type.

As the plugins are registered only with their class and then resolved
when needed using dependency injection it is not possible (as far as I
know) to provide an explicit parameter in the constructor to
differentiate whether the MailPlugin should return user or mail
collaborators. To overcome this two subclasses are introduced,
MailByMailPlugin and UserByMailPlugin, which just hardcode in their
constructor the collaborator type that their parent MailPlugin must use,
and those subclasses are the ones registered instead of the MailPlugin
(which still contains all the logic).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2025-11-12 21:08:25 +01:00
Daniel Calviño Sánchez
a38fd8f976 test: Rename data providers to match the name of their tests
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2025-11-12 21:08:25 +01:00
Daniel Calviño Sánchez
6aa0fb70b2 test: Replace magic value with named constant of share type
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2025-11-12 21:08:25 +01:00
Daniel Calviño Sánchez
1d9e5d813d test: Rename parameters to show that they are expected values
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2025-11-12 21:08:25 +01:00
Daniel Calviño Sánchez
792506a736 test: Fix parameter documentation
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2025-11-12 21:08:25 +01: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 +00:00
Joas Schilling
6a60d9daf2 feat(rate-limit): Allow overwriting the rate limit
Signed-off-by: Joas Schilling <coding@schilljs.com>
2025-11-12 10:58:20 +01:00
nfebe
6a1fdf5498 fix: Make TrustedServers optional in RemotePlugin
The federation app is not always installed, causing errors when
TrustedServers is injected as a hard dependency. This change makes
the dependency optional by using nullable types and null-safe
operators, defaulting to false when unavailable.

Modified backport of #55893 which are required for
the stable31 backport to function correctly.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-11-11 12:09:05 +01:00
nfebe
75179f9520 fix(sharing): Adapt share suggestions to match trusted servers configs
When `show_federated_shares_to_trusted_servers_as_internal` is enabled
but `show_federated_shares_as_internal` is not, filter federated share
suggestions to only include trusted servers. Previously, searching for
an email address would suggest non-trusted federated servers.

Resolved: #54511
Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-11-11 12:09:05 +01:00
Joas Schilling
4fe190a76a fix(jobs): Limit command jobs to known cases
Signed-off-by: Joas Schilling <coding@schilljs.com>
2025-11-05 13:51:42 +01: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 +01:00
SebastianKrupinski
9648a3f37e fix: iMip reply from outlook.com does not contain organizer property
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
2025-10-23 12:14:00 -04:00
skjnldsv
68727491e0 fix(dav): allow multiple link shares token in session
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-10-23 16:16:37 +02:00
Joas Schilling
37a513f79a fix(l10n): Don't fallback from 3-letter languages to 2-letter
Signed-off-by: Joas Schilling <coding@schilljs.com>
2025-10-16 11:43:22 +00:00
Ferdinand Thiessen
970122fa92 test: adjust test cases
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-10-13 23:05:45 +02:00
Thomas Citharel
cad9728db7 feat(test-case): allow to use PHPUnit Group attributes to mark tests requiring database
Before that, only the annotation @group('DB') is possible to mark test classes as requiring the database. Now the \PHPUnit\Framework\Attributes\Group attribute can be used as long as PHPUnit 10+ is used.

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2025-10-06 15:10:37 +02:00
Marcel Müller
f23bcc5580 fix(appstore): Make appstore timeout configurable
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
2025-09-30 15:18:45 +00: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 +02:00
Andy Scherzinger
5a0ea20850 Merge pull request #55250 from nextcloud/backport/55142/stable31
[stable31] fix: Allow hyphen in appid
2025-09-23 08:22:06 +02:00
Benjamin Gaussorgues
98d30feb95 feat(db): add SSL/TLS support for PostgreSQL
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2025-09-22 14:59:54 +02:00
Côme Chilliet
315c0ea59c 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-22 10:03:08 +02:00
Marcel Klehr
62e63730df 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 09:36:19 +02:00