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
Nextcloud bot
8c2a39cd89
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-21 00:21:58 +00:00
Benjamin Gaussorgues
6568bb3d7d
Merge pull request #50912 from nextcloud/release/31.0.0_rc5
2025-02-20 20:54:20 +01:00
Benjamin Gaussorgues
8bac3d6740
build(hub): 31.0.0 RC5
...
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2025-02-20 19:49:43 +01:00
Andy Scherzinger
7c440108ee
Merge pull request #50829 from nextcloud/dependabot/npm_and_yarn/stable31/sass-loader-16.0.5
...
bump sass-loader from 16.0.4 to 16.0.5
2025-02-20 17:50:46 +01:00
Andy Scherzinger
daf5747018
Merge pull request #50926 from nextcloud/backport/50922/stable31
...
[stable31] fix(files_sharing): Also list deleted team shares
2025-02-20 17:44:48 +01:00
Andy Scherzinger
77b80b5eff
Merge pull request #50923 from nextcloud/backport/50920/stable31
...
[stable31] Revert "fix(files): updateAll method"
2025-02-20 17:44:12 +01:00
skjnldsv
6a1ab49c16
chore: compile assets
...
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2025-02-20 15:26:09 +00:00
Ferdinand Thiessen
77ba2a6d75
fix(files_sharing): Also list deleted team shares
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-02-20 15:02:48 +00:00
skjnldsv
c37bb3e1b1
Revert "fix(files): updateAll method"
...
This reverts commit fbec19c0d7 .
2025-02-20 14:20:20 +00:00
dependabot[bot]
ef19e2ad80
bump sass-loader from 16.0.4 to 16.0.5
...
---
updated-dependencies:
- dependency-name: sass-loader
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2025-02-20 13:23:54 +00:00
Benjamin Gaussorgues
dd37d1f87b
Merge pull request #50913 from nextcloud/backport/50791/stable31
2025-02-20 09:57:28 +01:00
Benjamin Gaussorgues
4f8eacd3a2
chore(filecache): remove index fs_id_storage_size
...
Index is outdated by PR 50781
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2025-02-20 08:09:31 +00:00
Nextcloud bot
2afb2156ef
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-20 00:22:18 +00:00
Andy Scherzinger
529978a663
Merge pull request #50832 from nextcloud/dependabot/npm_and_yarn/stable31/types/dockerode-3.3.34
...
bump @types/dockerode from 3.3.32 to 3.3.34
2025-02-19 22:33:23 +01:00
dependabot[bot]
804ab80827
bump @types/dockerode from 3.3.32 to 3.3.34
...
---
updated-dependencies:
- dependency-name: "@types/dockerode"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-02-19 21:06:52 +00:00
Andy Scherzinger
747fbf6ed8
Merge pull request #50799 from nextcloud/backport/50794/stable31
...
[stable31] fix: Only keep allowed characters in appid, and flag the method as escaping
2025-02-19 21:00:19 +01:00
Andy Scherzinger
f0a229c92f
Merge pull request #50880 from nextcloud/backport/50873/stable31
...
[stable31] fix(files_sharing): block downloading if needed
2025-02-19 20:45:17 +01:00
Andy Scherzinger
f7e9388be0
Merge pull request #50831 from nextcloud/dependabot/npm_and_yarn/stable31/zip.js/zip.js-2.7.57
...
bump @zip.js/zip.js from 2.7.53 to 2.7.57
2025-02-19 18:43:16 +01:00
Andy Scherzinger
1a52535337
Merge pull request #50812 from nextcloud/backport/50769/stable31
...
[stable31] fix(SharedStorage): Check if storage ID is set on cache
2025-02-19 18:41:56 +01:00
Côme Chilliet
a9ad23e3d8
fix: Also remove digits at the start and underscore on both ends of appid
...
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
2025-02-19 18:39:20 +01:00
Côme Chilliet
adf5b72939
fix: Only keep allowed characters in appid, and flag the method as escaping
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-02-19 18:39:20 +01:00
Andy Scherzinger
08e3e213d3
Merge pull request #50797 from nextcloud/backport/50781/stable31
...
[stable31] perf(files): faster query to fetch incomplete directories
2025-02-19 18:38:21 +01:00
Andy Scherzinger
be10e5b317
Merge pull request #50850 from nextcloud/backport/50798/stable31
...
[stable31] fix(login): only show error state on login box if user interacted
2025-02-19 18:37:28 +01:00
Ferdinand Thiessen
760939b9bb
chore: Compile assets
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-02-19 17:10:10 +01:00
Ferdinand Thiessen
0b75350f24
fix(login): only show error state on login box if user interacted
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-02-19 17:10:10 +01:00
Andy Scherzinger
2abf275cb4
Merge pull request #50906 from nextcloud/backport/50904/stable31
...
[stable31] fix(files): do not show extension warning for folders renaming
2025-02-19 17:09:01 +01:00
nextcloud-command
5d684e0fb5
chore(assets): Recompile assets
...
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2025-02-19 15:42:01 +00:00
Andy Scherzinger
29b7364d68
Merge pull request #50892 from nextcloud/backport/50820/stable31
...
[stable31] fix(files_sharing): Fix public share expiration being set when toggle is not enabled
2025-02-19 16:40:21 +01:00
skjnldsv
2131496291
fix(files): do not show extension warning for folders renaming
...
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-02-19 15:36:13 +00:00
Joas Schilling
c7e84f99c1
Merge pull request #50901 from nextcloud/backport/50896/stable31
...
[stable31] fix(cron): Keep job class limitation when searching for the next job
2025-02-19 13:34:23 +01:00
nextcloud-command
9f2a77009d
chore(assets): Recompile assets
...
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2025-02-19 12:04:21 +00:00
Christopher Ng
9ded1e3c63
fix(files_sharing): Fix public share expiration being set when toggle is not enabled
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2025-02-19 12:59:42 +01:00
Joas Schilling
4b1b16430d
fix(cron): Keep job class limitation when searching for the next job
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2025-02-19 09:28:34 +00:00
Nextcloud bot
4a4cfa00f1
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-19 00:21:52 +00:00
John Molakvoæ
6654fc9d74
Merge pull request #50884 from nextcloud/backport/50814/stable31
...
[stable31] fix(systemtags): do not hide if no tags
2025-02-18 19:47:00 +01:00