Commit graph

79363 commits

Author SHA1 Message Date
Côme Chilliet
f09de1f2c5 fix: Fix test by scanning group before using it
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-02-27 15:35:22 +00:00
Daniel Kesselberg
5e1cf1359d fix: remove caching in fetchListOfGroups
When using nested groups without a memberof overlay, then fetchListOfGroups is called from getGroupsByMember without applying the group filter.

In some setups, the "unfiltered" result is then written back to the group mapping table. That might cause random "An administrator removed you from group" activities.

I was unable to replicate it locally, but we got the feedback that the random activities stopped with the patch applied.

Ref: https://github.com/nextcloud/server/issues/42195

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2025-02-27 15:35:22 +00:00
John Molakvoæ
4ab69ec7f4
Merge pull request #51093 from nextcloud/backport/51077/stable31
[stable31] files: fix exception when share-attributes is undefined
2025-02-27 14:57:00 +01:00
Varun Patil
752bc004ae fix(files): exception when share-attributes is undefined
Signed-off-by: Varun Patil <varunpatil@ucla.edu>

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2025-02-27 12:21:16 +00:00
Nextcloud bot
6e52b55555
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-27 00:22:29 +00:00
Arthur Schiwon
e332784e1b
Merge pull request #51076 from nextcloud/backport/51071/stable31
[stable31] fix(translation): Fix string concatenation in LDAP endpoint
2025-02-26 23:11:54 +01:00
Joas Schilling
2ffa65201f fix(translation): Fix string concatenation in LDAP endpoint
Signed-off-by: Joas Schilling <coding@schilljs.com>
2025-02-26 18:27:18 +00:00
Louis
45439dcd9c
Merge pull request #51062 from nextcloud/backport/51050/stable31
[stable31] fix: Report duplicated extra files in integrity check
2025-02-26 15:58:33 +01:00
Louis Chemineau
fe56b3ccc2 fix: Report duplicated extra files in integrity check
The `array_diff` is not comparing the array keys. This means that an extra key with an expected hash will not be reported. Using `array_diff_assoc` will report such files.

For example, copying `status.php` to `status 2.php`, will only be reported with the new version.

Signed-off-by: Louis Chemineau <louis@chmn.me>
2025-02-26 13:26:38 +00:00
Andy Scherzinger
3b49ee1c6b
Merge pull request #51034 from nextcloud/backport/48795/stable31
[stable31] feat: support migrating an instance to sharding
2025-02-26 11:05:50 +01:00
John Molakvoæ
f9fd3cf17b
Merge pull request #51047 from nextcloud/backport/50366/stable31 2025-02-26 09:43:46 +01:00
nextcloud-command
8a04a89028 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2025-02-26 07:59:11 +00:00
Joas Schilling
4538a4f4b4
Merge pull request #51041 from nextcloud/automated/noid/stable31-update-ca-cert-bundle
[stable31] fix(security): Update CA certificate bundle
2025-02-26 08:52:31 +01:00
nfebe
3f745a9fea fix(systemtags): Use literal strings for i18n in showSuccess
Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-02-26 07:42:01 +00:00
nextcloud-command
a8f664c58e fix(security): Update CA certificate bundle
Signed-off-by: GitHub <noreply@github.com>
2025-02-26 02:31:06 +00:00
Nextcloud bot
4201daaa40
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-26 00:21:55 +00:00
Robin Appelman
ea678c0280 feat: support migrating an instance to sharding
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-02-25 21:43:54 +00:00
Andy Scherzinger
77db5c76e8
Merge pull request #50963 from nextcloud/dependabot/npm_and_yarn/stable31/ts-loader-9.5.2
[stable31] chore(deps-dev): bump ts-loader from 9.5.1 to 9.5.2
2025-02-25 21:25:25 +01:00
Andy Scherzinger
3bc2e4358d
Merge pull request #50994 from nextcloud/backport/50992/stable31
[stable31] fix(admin_audit): Fix incorrect truncation of files path in admin audit log
2025-02-25 20:32:16 +01:00
dependabot[bot]
3225d6b896 chore(deps-dev): bump ts-loader from 9.5.1 to 9.5.2
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 9.5.1 to 9.5.2.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v9.5.1...v9.5.2)

---
updated-dependencies:
- dependency-name: ts-loader
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-25 20:25:48 +01:00
Côme Chilliet
74531b680a fix(admin_audit): Fix incorrect truncation of files path in admin audit log
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-02-25 19:38:05 +01:00
Andy Scherzinger
74c30d08d8
Merge pull request #51028 from nextcloud/backport/50987/stable31
[stable31] Spelling standardization
2025-02-25 19:37:22 +01:00
Andy Scherzinger
0d6f26153c
Merge pull request #51003 from nextcloud/backport/50958/stable31
[stable31] Fix: NotFoundException for anonymous users
2025-02-25 19:36:57 +01:00
nextcloud-command
59370fc50a chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2025-02-25 18:00:16 +00:00
Valdnet
fc0b59bb8f fix(l10n): Spelling standardization
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2025-02-25 17:42:13 +00:00
Andy Scherzinger
55b8a6ba13
Merge pull request #50941 from nextcloud/backport/50053/stable31
[stable31] fix: Change UserAgent to *cloud
2025-02-25 18:37:15 +01:00
Kostiantyn Miakshyn
22b3c6cd2e Fix: NotFoundException for anonymous users
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
2025-02-25 18:15:30 +01:00
Maksim Sukharev
d4bbe3c64b
Merge pull request #50995 from nextcloud/backport/50956/stable31 2025-02-25 17:22:41 +01:00
Louis
d632679d8f
Merge pull request #51025 from nextcloud/backport/50903/stable31
[stable31] fix(files_versions): Do not expire versions newer than min age
2025-02-25 17:22:31 +01:00
nextcloud-command
32c559415e chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2025-02-25 15:53:39 +00:00
Maksim Sukharev
0ec5954f1c fix: wipe local storages on log out
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2025-02-25 16:47:32 +01:00
Louis Chemineau
46b1825f2d fix(files_versions): Do not expire versions newer than min age
The auto expire logic does not take into account the min retention age set by the admin. So versions were eagerly deleted.

Fix https://github.com/nextcloud/server/issues/19791

Signed-off-by: Louis Chemineau <louis@chmn.me>
2025-02-25 15:04:21 +00:00
Côme Chilliet
5b421c99c6
Merge pull request #51017 from nextcloud/backport/50874/stable31
[stable31] fix: Initialize lastConnectionCheck after first connection
2025-02-25 16:01:39 +01:00
Joas Schilling
63b9a48e69
Merge pull request #50954 from nextcloud/backport/50942/stable31
[stable31] fix(cron): Ignore time sensitivity when a class was explicitely scheduled
2025-02-25 14:05:30 +01:00
Joas Schilling
43c677da86
Merge pull request #50953 from nextcloud/backport/50949/stable31
[stable31] ci(autochecks): Run some autochecks also on non-PHP files
2025-02-25 14:04:04 +01:00
Louis Chemineau
8a2437927d fix: Initialize lastConnectionCheck after first connection
We are checking whether the DB connection is alive once every 30 seconds. But when we are lacking the last check time, we are skipping the check and reconnect logic. This is causing the reconnect logic to never fire in those cases.

It seems to me that "those cases", are actually always the case, as upon initialization, we are not using the proper connection name to store the time.

In the `connect()` logic, when `$this->_conn` is null, `$this->getConnectionName()` is returning `replica`, so `$this->lastConnectionCheck` will be equal to `['replica' => time()];`

60711ea4cf/lib/private/DB/Connection.php (L215-L221)

60711ea4cf/lib/private/DB/Connection.php (L891-L893)

2b6d7bf65f/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php (L136-L139)

Then, if the connection name ends up as being 'primary', the reconnect logic is skipped:

60711ea4cf/lib/private/DB/Connection.php (L874-L880)

Follow-up of https://github.com/nextcloud/server/pull/41819

Signed-off-by: Louis Chemineau <louis@chmn.me>
2025-02-25 11:07:34 +00:00
Nextcloud bot
aef968456f
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-25 00:21:39 +00:00
Arthur Schiwon
051e46a7a2
Merge pull request #51011 from nextcloud/release/31.0.0
31.0.0
2025-02-24 22:41:02 +01:00
Nextcloud bot
0e038ec0a5
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-24 21:01:11 +00:00
Arthur Schiwon
fd933f2f1b
build(hub): 31.0.0
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2025-02-24 21:42:00 +01:00
Nextcloud bot
3276012191
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-24 20:39:17 +00:00
Arthur Schiwon
a9ba58e48f
Merge pull request #51007 from nextcloud/release/31.0.0
31.0.0
2025-02-24 19:50:04 +01:00
Arthur Schiwon
4c6c1e37c5
Merge pull request #51005 from nextcloud/backport/50985/stable31
[stable31] fix: validate account properties as a repair step
2025-02-24 18:22:46 +01:00
Arthur Schiwon
562baf499b
build(hub): 31.0.0
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2025-02-24 17:09:13 +01:00
Ferdinand Thiessen
06ddb7aff6 refactor: convert sanitize account properties repair step to background job
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-02-24 15:23:20 +00:00
Ferdinand Thiessen
29e5e8a31b fix: Optimize repair step performance
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-02-24 15:23:20 +00:00
Ferdinand Thiessen
e9c4c59998 fix: validate account properties as a repair step
Replace `ValidatePhoneNumber` from Nextcloud 21 with a new repair step,
`ValidateAccountProperties` which validates and sanitizes all account
properties.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-02-24 15:23:20 +00:00
Nextcloud bot
a1f748040a
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-24 00:22:04 +00:00
Nextcloud bot
328d1c24bd
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-23 00:22:08 +00:00
Nextcloud bot
543a01ab89
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-22 00:22:03 +00:00