aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* fix: Handle exception when clearing previously removed two factor tokensbackport/48933/stable28Daniel Calviño Sánchez2024-11-051-1/+5
| | | | | | | | If a token was already removed from the database but not from the configuration clearing the tokens will try to remove it again from the database, which caused a DoesNotExistException to be thrown. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* fix: Clear pending two factor tokens also from configurationDaniel Calviño Sánchez2024-11-051-0/+2
| | | | | | | | | Otherwise as the tokens were removed from the database but not from the configuration the next time that the tokens were cleared the previous tokens were still got from the configuration, and trying to remove them again from the database ended in a DoesNotExistException being thrown. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Merge pull request #49084 from nextcloud/backport/49076/stable28Benjamin Gaussorgues2024-11-051-7/+5
|\
| * fix(owncloud): Fix ownCloud migration with oauth2 appbackport/49076/stable28Joas Schilling2024-11-041-7/+5
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2024-11-052-8/+8
|/ | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2024-11-046-72/+1008
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2024-11-012-0/+2
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Merge pull request #48985 from nextcloud/backport/47986/stable28Louis2024-10-311-0/+5
|\ | | | | [stable28] perf(ObjectStoreStorage): Improve (slow) move on same object bucket
| * perf(ObjectStoreStorage): Improve (slow) move on same object bucketChristoph Fiehe2024-10-291-0/+5
| | | | | | | | | | | | | | | | | | This commit fixes the issue #47856. When you upload a file into a group folder and when you use a single S3 bucket as primary storage, the final move operation hangs for a long time. In the background, Nextcloud initiates a copy-delete sequence from the bucket into the bucket, with causes a lot unnecessary overhead. Nextcloud thinks that the file must be imported to another storage and does not recognize that everything is done on the same object bucket. In that case, the import step can be completely skipped, which saves time, network bandwidth and reduces the load on the object storage. The behavior improves a lot with https://github.com/nextcloud/server/pull/46013. However, there are still some put messages that are being sent to the object storage when you use an object storage as primary storage and upload files into a group folder. Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com> Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de>
* | Fix(l10n): Update translations from TransifexNextcloud bot2024-10-312-0/+2
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | fix(locking): Accept mixed as value on setTTLstable28BackportMissingSetTTLGit'Fellow2024-10-301-1/+1
| | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2024-10-302-258/+258
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | fix: Fix copying or moving from shared groupfoldersDaniel Calviño Sánchez2024-10-291-2/+6
|/ | | | | | | | | | | | | | | When copying or moving between two local storages the source path (on disk) to copy or move from is got from the unjailed path of the source storage. However, if the source storage has more than one jail getting the unjailed path resolves the most external jail, but the source path needs to be got from the most internal jail instead (the one closer to the local storage). This can happen, for example, with a shared groupfolder: in that case there is an external jail for the shared storage, and one internal jail for the groupfolder storage wrapped by the shared storage. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2024-10-292-2/+2
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Merge pull request #48948 from nextcloud/backport/48947/stable28Joas Schilling2024-10-282-0/+10
|\ | | | | [stable28] fix(config): Mark more configs as sensitive
| * fix(config): Mark more configs as sensitivebackport/48947/stable28Joas Schilling2024-10-282-0/+10
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix: missing crypto addedbackport/48915/stable28yemkareems2024-10-281-0/+1
| | | | | | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* | fix: crypto made inline for constructor and decrypt error handled in exceptionyemkareems2024-10-281-1/+2
| | | | | | | | | | | | Signed-off-by: yemkareems <yemkareems@gmail.com> [skip ci]
* | fix: crypto made inline for constructor and decrypt error handled in exceptionyemkareems2024-10-281-5/+6
| | | | | | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* | fix: use Icrypto in place of Cyptoyemkareems2024-10-282-3/+3
| | | | | | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* | fix: crypto type made not nullable and tests run using ICryptoyemkareems2024-10-282-2/+2
| | | | | | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* | fix: encrypt and store password, decrypt and retrieve the sameyemkareems2024-10-282-1/+9
|/ | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2024-10-284-16/+24
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2024-10-272-2/+2
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2024-10-262-6/+6
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2024-10-244-24/+26
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2024-10-222-2/+6
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Merge pull request #48832 from nextcloud/backport/48603/stable28Joas Schilling2024-10-221-2/+19
|\ | | | | [stable28] fix(logger): Remove more parameters of other methods
| * fix(logger): Remove more parameters of other methodsbackport/48603/stable28Joas Schilling2024-10-211-2/+19
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2024-10-222-0/+2
|/ | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2024-10-216-10/+80
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2024-10-202-2/+18
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2024-10-194-8/+8
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2024-10-182-2/+2
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Merge pull request #48739 from nextcloud/backport/48673/stable28Ferdinand Thiessen2024-10-171-2/+2
|\ | | | | [stable28] fix(share): Return empty string if no label is set
| * fix(share): Return empty string if no label is setbackport/48673/stable28Ferdinand Thiessen2024-10-171-2/+2
| | | | | | | | | | | | | | | | | | * Resolves: https://github.com/nextcloud/server/issues/48629 While the database supports NULL, the typing has always said it only returns *string*. So to not break any apps that might trust the typings we should return `''` if the database is set to `NULL`. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | Merge pull request #48587 from nextcloud/backport/47896/stable28Ferdinand Thiessen2024-10-1710-64/+272
|\ \ | |/ |/| [stable28] fix: Make user removal more resilient
| * fix(UserTrait): Fix backend initializationbackport/47896/stable28provokateurin2024-10-171-0/+1
| | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
| * fix: Skip users that still exist in backendFerdinand Thiessen2024-10-155-11/+30
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| * fix: Make user removal more resilientFerdinand Thiessen2024-10-1510-64/+252
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently there is a problem if an exception is thrown in `User::delete`, because at that point the user is already removed from the backend, but not all data is deleted. There is no way to recover from this state, as the user is gone no information is available anymore. This means the data is still available on the server but can not removed by any API anymore. The solution here is to first set a flag and backup the user home, this can be used to recover failed user deletions in a way the delete can be re-tried. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | Merge pull request #48711 from nextcloud/backport/48682/stable28Kate2024-10-171-0/+1
|\ \
| * | fix(AppConfig): Add external JWT private key to sensitive keysbackport/48682/stable28provokateurin2024-10-151-0/+1
| |/ | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | Fix(l10n): Update translations from TransifexNextcloud bot2024-10-174-4/+6
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2024-10-162-6/+6
|/ | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2024-10-152-6/+6
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2024-10-146-2/+40
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2024-10-136-8/+20
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2024-10-124-4/+24
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Merge pull request #48633 from nextcloud/backport/48623/stable28Julius Knorr2024-10-111-1/+1
|\ | | | | [stable28] fix: Allow overriding shouldApplyQuota check from child classes
| * fix: Allow overriding shouldApplyQuota check from child classesbackport/48623/stable28Julius Knorr2024-10-091-1/+1
| | | | | | | | Signed-off-by: Julius Knorr <jus@bitgrid.net>