aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix: Change UserAgent to *cloudbackport/50053/stable29Johannes Endres2025-02-211-1/+1
| | | | | Co-authored-by: Daniel Kesselberg <mail@danielkesselberg.de> Signed-off-by: Johannes Endres <je@johannes-endres.de>
* fix(Mailer): Fix sendmail binary fallbackbackport/46480/stable29Josh2025-02-171-1/+2
| | | | Signed-off-by: Josh <josh.t.richards@gmail.com>
* test(View): Copy preserves contentbackport/48651/stable29Louis Chemineau2025-02-131-0/+8
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(files): Correctly copy the cache information on copy operationsLouis Chemineau2025-02-131-0/+1
| | | | | | 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>
* test:(PasswordConfirmationMiddleware): Fix constructor callLouis Chemineau2025-02-111-5/+21
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(FediverseAction): Ensure valid fediverse links are generatedFerdinand Thiessen2025-02-091-0/+186
| | | | | | Harden also for existing values of the profile. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(AccountManager): Sanitize social media handlesFerdinand Thiessen2025-02-091-50/+200
| | | | | | Ensure to only accept valid X and fediverse handles. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: improve checks for moving shares/storages into other mountsRobin Appelman2025-02-051-9/+42
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(sharing): Move permission validation to share managerFerdinand Thiessen2025-01-311-5/+25
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Exclude non accepted shares when computing access listbackport/50519/stable29Louis Chemineau2025-01-301-0/+9
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(files): Do not array access null valuebackport/50437/stable29Ferdinand Thiessen2025-01-291-0/+8
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Correctly return app id and app version for `core` styles and imagesFerdinand Thiessen2025-01-292-21/+125
| | | | | | fix(TemplateLayout): `core` is not an app but the server itself Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Metadata field searchbackport/50273/stable29Louis Chemineau2025-01-271-2/+7
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* test: fix periodic `Test\Group\DatabaseTest::testSearchGroups` failurebackport/50319/stable29Josh2025-01-221-2/+2
| | | Signed-off-by: Josh <josh.t.richards@gmail.com>
* chore: Remove syntax incompatible with PHP 8.0backport/49629/stable29Côme Chilliet2024-12-191-2/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Use getRelativePath method to check if node is inside folderCôme Chilliet2024-12-191-10/+14
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Fix promotion of reshares from subsubfoldersCôme Chilliet2024-12-191-16/+84
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(tests): Fix share tests to test new reshare promotion systemCôme Chilliet2024-12-191-17/+17
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Tidy up code for reshare deletionCôme Chilliet2024-12-191-8/+8
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: delete re-shares when deleting the parent shareLuka Trovic2024-12-191-4/+116
| | | | | | | | Note: Removed part about fix command from original PR Signed-off-by: Luka Trovic <luka@nextcloud.com> Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> (cherry picked from commit 42181c2f490025860e22907255b6917583c798af)
* fix(tests): Adapt ManagerTest to change in Exception class usedbackport/49822/stable29Côme Chilliet2024-12-121-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: fix mimetype not being updated when changing file extention on object storebackport/40394/stable29Robin Appelman2024-12-111-0/+35
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(migration): Decrypt ownCloud secrets v2Christoph Wurst2024-11-281-0/+13
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix: do not query CNAME if A succeeded alreadygeorglauterbach2024-11-141-2/+3
| | | | Signed-off-by: georglauterbach <44545919+georglauterbach@users.noreply.github.com>
* Merge pull request #49097 from nextcloud/backport/48933/stable29Richard Steinmetz2024-11-131-0/+58
|\ | | | | [stable29] Clear pending two factor tokens also from configuration
| * fix: Handle exception when clearing previously removed two factor tokensbackport/48933/stable29Daniel Calviño Sánchez2024-11-051-0/+32
| | | | | | | | | | | | | | | | 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/+26
| | | | | | | | | | | | | | | | | | 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>
* | fix: conflicts resolved in apps.php loadDirectorybackport/38630/stable29yemkareems2024-11-131-1/+1
| | | | | | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* | fix: Clean-up some remaining readdir calls with undesirable false evaluation ↵Josh Richards2024-11-133-4/+4
|/ | | | | | | | potential Signed-off-by: Josh Richards <josh.t.richards@gmail.com> [skip ci]
* Merge pull request #48998 from nextcloud/backport/47986/stable29Louis2024-10-313-0/+182
|\ | | | | [stable29] perf(ObjectStoreStorage): Improve (slow) move on same object bucket
| * fix(tests): Fix most obvious errors in ObjectStore testsbackport/47986/stable29Côme Chilliet2024-10-313-56/+60
| | | | | | | | | | | | Some are still failing Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * perf(ObjectStoreStorage): Improve (slow) move on same object bucketChristoph Fiehe2024-10-303-0/+178
| | | | | | | | | | | | | | | | | | 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>
* | Merge pull request #48488 from nextcloud/backport/48235/stable29Benjamin Gaussorgues2024-10-301-0/+15
|\ \ | |/ |/|
| * test: re-add object store primary storage phpunit testsRobin Appelman2024-10-091-0/+15
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | test: add test for nested jail cross-storage movebackport/47847/stable29Robin Appelman2024-10-291-0/+23
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix: crypto added manually as expectedyemkareems2024-10-281-1/+1
| | | | | | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* | fix: crypto type made not nullable and tests run using ICryptoyemkareems2024-10-281-4/+3
| | | | | | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* | fix: encrypt and store password, decrypt and retrieve the sameyemkareems2024-10-281-2/+19
| | | | | | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* | Merge pull request #48764 from nextcloud/backport/48539/stable29Joas Schilling2024-10-171-5/+5
|\ \ | | | | | | [stable29] fix(message): Fix logic of Mail test
| * | fix(message): Fix logic of Mail testbackport/48539/stable29Joas Schilling2024-10-171-5/+5
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #48588 from nextcloud/backport/47896/stable29Ferdinand Thiessen2024-10-172-14/+70
|\ \ \ | |/ / |/| | [stable29] fix: Make user removal more resilient
| * | fix(UserTrait): Fix backend initializationbackport/47896/stable29provokateurin2024-10-151-0/+3
| | | | | | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
| * | fix: Make user removal more resilientFerdinand Thiessen2024-10-151-14/+67
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* / fix(share): Return empty string if no label is setbackport/48673/stable29Ferdinand Thiessen2024-10-151-0/+34
|/ | | | | | | | | * 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>
* fix: gracefully parse non-standard trusted certificatesbackport/48307/stable29Richard Steinmetz2024-09-302-2/+32
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* fix(users): Don't crash if disabled user is missing in the databasebackport/48207/stable29Louis Chemineau2024-09-235-30/+48
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(tests): Fix Folder testsCôme Chilliet2024-09-191-3/+22
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* test: put parent items into cache in testsRobin Appelman2024-09-195-49/+82
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* test: fix incorrect ltrim usage in testRobin Appelman2024-09-191-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #48100 from nextcloud/backport/46140/stable29Robin Appelman2024-09-161-0/+7
|\ | | | | [stable29] fix(config): Add missing handling for `envCache` in `getKeys()`