aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* fix: Initialize lastConnectionCheck after first connectionbackport/50874/stable30Louis Chemineau2025-02-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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()];` https://github.com/nextcloud/server/blob/60711ea4cfde6f53d0b18bcd7e166a34a43056a5/lib/private/DB/Connection.php#L215-L221 https://github.com/nextcloud/server/blob/60711ea4cfde6f53d0b18bcd7e166a34a43056a5/lib/private/DB/Connection.php#L891-L893 https://github.com/nextcloud/3rdparty/blob/2b6d7bf65ff242ea050e736925f752a38d8da220/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php#L136-L139 Then, if the connection name ends up as being 'primary', the reconnect logic is skipped: https://github.com/nextcloud/server/blob/60711ea4cfde6f53d0b18bcd7e166a34a43056a5/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>
* Fix(l10n): Update translations from TransifexNextcloud bot2025-02-242-8/+8
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* refactor: convert sanitize account properties repair step to background jobbackport/50985/stable30Ferdinand Thiessen2025-02-245-13/+44
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Optimize repair step performanceFerdinand Thiessen2025-02-241-3/+21
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: validate account properties as a repair stepFerdinand Thiessen2025-02-245-74/+62
| | | | | | | | 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>
* Fix(l10n): Update translations from TransifexNextcloud bot2025-02-242-0/+2
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2025-02-232-144/+144
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2025-02-222-0/+354
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* fix: Change UserAgent to *cloudbackport/50053/stable30Johannes Endres2025-02-211-1/+1
| | | | | Co-authored-by: Daniel Kesselberg <mail@danielkesselberg.de> Signed-off-by: Johannes Endres <je@johannes-endres.de>
* Fix(l10n): Update translations from TransifexNextcloud bot2025-02-202-2/+2
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Merge pull request #50900 from nextcloud/backport/50896/stable30Joas Schilling2025-02-191-1/+1
|\ | | | | [stable30] fix(cron): Keep job class limitation when searching for the next job
| * fix(cron): Keep job class limitation when searching for the next jobbackport/50896/stable30Joas Schilling2025-02-191-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #50877 from nextcloud/backport/50807/stable30Ferdinand Thiessen2025-02-191-2/+3
|\ \ | |/ |/| [stable30] fix(files): properly forward open params from short urls
| * fix(files): properly forward open params from short urlsskjnldsv2025-02-191-2/+3
| | | | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2025-02-198-8/+40
|/ | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2025-02-186-12/+370
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Merge pull request #50796 from nextcloud/backport/50781/stable30Andy Scherzinger2025-02-172-19/+10
|\ | | | | [stable30] perf(files): faster query to fetch incomplete directories
| * perf(files): faster query to fetch incomplete directoriesbackport/50781/stable30Benjamin Gaussorgues2025-02-142-19/+10
| | | | | | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | Merge pull request #49481 from nextcloud/backport/49004/stable30Daniel2025-02-151-16/+8
|\ \ | | | | | | [stable30] Bug/48678/restore dav error response
| * | fix: make locked exception path relative to the viewRobin Appelman2025-02-151-16/+8
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | fix(repair): PHP8.3 deprecation warningbackport/50809/stable30Git'Fellow2025-02-151-8/+4
|/ / | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2025-02-152-0/+2
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Merge pull request #49657 from nextcloud/backport/48769/stable30Andy Scherzinger2025-02-141-1/+8
|\ \ | | | | | | [stable30] Fix incorrect permissions when copying shared files
| * | fix: use scan_permissions when copying cache itemsRobin Appelman2025-02-131-1/+5
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | fix: store unmaked source permissions as scan_permissions when loading share ↵Robin Appelman2025-02-131-0/+3
| | | | | | | | | | | | | | | | | | cache items Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #50804 from nextcloud/backport/48651/stable30Andy Scherzinger2025-02-144-11/+48
|\ \ \ | | | | | | | | [stable30] fix(files): Correctly copy the cache information during copy operations
| * | | fix(files): Correctly copy the cache information on copy operationsLouis Chemineau2025-02-134-11/+48
| |/ / | | | | | | | | | | | | | | | Needed to copy the `encrypted` flag of encrypted files when those files are two level down in a moved folder. Signed-off-by: Louis Chemineau <louis@chmn.me>
* / / Fix(l10n): Update translations from TransifexNextcloud bot2025-02-144-4/+10
|/ / | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | fix: rework move into object store to better preserve fileidsRobin Appelman2025-02-131-19/+55
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix: preserve fileid when moving from objectstore to non-objectstoreRobin Appelman2025-02-132-6/+27
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix: ensure source folder is removed from cache when moving to objectstoreRobin Appelman2025-02-131-0/+1
| | | | | | | | | | | | otherwise this causes confusion down the line as it's contents will be moved to the new cache Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix(TaskProcessing\Manager): Always use distributed cache and use PHP serializebackport/50640/stable30Marcel Klehr2025-02-131-2/+4
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* | fix(TaskProcessing\Manager): Always use distributed cache and use PHP serializeMarcel Klehr2025-02-131-3/+1
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* | Merge pull request #50761 from nextcloud/backport/50324/stable30Andy Scherzinger2025-02-132-0/+16
|\ \ | | | | | | [stable30] fix: don't use cached root info from shared cache if the watcher has detected an update
| * | fix: don't use cached root info from shared cache if the watcher has ↵backport/50324/stable30Robin Appelman2025-02-112-0/+16
| | | | | | | | | | | | | | | | | | detected an update Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #50704 from nextcloud/backport/50660/stable30Andy Scherzinger2025-02-133-4/+27
|\ \ \ | |_|/ |/| | [stable30] fix: make sure we process mime extensions as string
| * | fix: psalm and OCP @since declarationsbackport/50660/stable30John Molakvoæ2025-02-063-5/+5
| | | | | | | | | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * | fix: make sure we process mime extensions as stringskjnldsv2025-02-063-4/+27
| | | | | | | | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* | | Merge pull request #50777 from nextcloud/backport/46480/stable30John Molakvoæ2025-02-131-1/+4
|\ \ \ | | | | | | | | [stable30] fix(Mailer): Fix sendmail binary fallback
| * | | fix(Mailer): Fix sendmail binary fallbackbackport/46480/stable30Josh2025-02-121-1/+4
| | | | | | | | | | | | | | | | Signed-off-by: Josh <josh.t.richards@gmail.com>
* | | | Fix(l10n): Update translations from TransifexNextcloud bot2025-02-134-2/+28
|/ / / | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | / Fix(l10n): Update translations from TransifexNextcloud bot2025-02-1210-22/+126
| |/ |/| | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2025-02-106-6/+20
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2025-02-092-2/+12
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2025-02-082-0/+2
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | fix(FediverseAction): Ensure valid fediverse links are generatedFerdinand Thiessen2025-02-071-5/+18
| | | | | | | | | | | | Harden also for existing values of the profile. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | fix(AccountManager): Sanitize social media handlesFerdinand Thiessen2025-02-071-78/+125
|/ | | | | | Ensure to only accept valid X and fediverse handles. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #50676 from nextcloud/backport/50193/stable30John Molakvoæ2025-02-062-6/+96
|\ | | | | [stable30] fix(oauth2): adjust db schemas when migrating from owncloud
| * fix(oauth2): adjust db schemas when migrating from owncloudbackport/50193/stable30Richard Steinmetz2025-02-052-6/+96
| | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | Fix(l10n): Update translations from TransifexNextcloud bot2025-02-064-18/+132
|/ | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>