summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix(lookup-server): disable lookup server for non-global scale setupsFerdinand Thiessen11 days1-6/+7
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(lookup-server): do not query data by defaultFerdinand Thiessen11 days1-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test: add test for permissions of copied sharebackport/48769/stable30Robin Appelman2025-02-131-0/+27
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* test: fix share storage move test with object storeRobin Appelman2025-02-131-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* test: add test for shared storage root being changed after watcherRobin Appelman2025-02-111-0/+37
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(sharing): Ensure download restrictions are not droppedbackport/50642/stable30Ferdinand Thiessen2025-02-041-87/+106
| | | | | | | | When a user receives a share with share-permissions but also with download restrictions (hide download or the modern download permission attribute), then re-shares of that share must always also include those restrictions. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files_sharing): Respect permissions passed when creating link sharesFerdinand Thiessen2025-01-311-180/+192
| | | | | | | | | | | | | | | | | Given: User creates a link or email share with permissions=4 (create only = file drop). Problem: Currently the permissions are automatically extended to permissions = 5 (READ + CREATE). Work around was to create the share and directly update it. Solution: Respect what the user is requesting, create a file drop share. Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(sharing): add command to fix broken shares after ownership transferringbackport/43025/stable30Luka Trovic2024-12-121-0/+116
| | | | Signed-off-by: Luka Trovic <luka@nextcloud.com>
* fix(files_sharing): Cleanup error messagesbackport/48918/stable30provokateurin2024-10-282-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(autocomplete): Move known array keys to psalm docsbackport/48162/stable30Joas Schilling2024-09-231-5/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* test: fix ShareControllerTest.phpRobin Appelman2024-09-191-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* test: fix ShareAPIControllerTest.phpRobin Appelman2024-09-191-1/+41
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* test: put parent items into cache in testsRobin Appelman2024-09-191-0/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(files_sharing): adjust permissions from custom edit and delete check methodsbackport/47339/stable30skjnldsv2024-09-111-0/+46
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* test: mark share test cleanup as running across all shardsRobin Appelman2024-08-281-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat(files_sharing): add public name prompt for files requestsskjnldsv2024-07-181-4/+10
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* test: update share tests to work with shardingRobin Appelman2024-07-161-22/+22
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(files_sharing): adjust IAttributes API and files_versionsskjnldsv2024-07-121-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): phpunit & openapi fixesskjnldsv2024-07-123-27/+57
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* Merge pull request #44967 from nextcloud/perf/sharing-eventsFerdinand Thiessen2024-06-101-24/+18
|\ | | | | perf(files_sharing): Move events to listener classes and registration instead of boot
| * perf(files_sharing): Move events to listener classes and registration ↵Julius Härtl2024-05-131-24/+18
| | | | | | | | | | | | instead of boot Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | chore: Add SPDX headerAndy Scherzinger2024-06-0640-947/+113
|/ | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* refactor(shareApiController): use contrusctor property promotion & DI loggerfenn-cs2024-04-182-61/+46
| | | | Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(files_sharing): ShareesAPI - Return empty response when user is not ↵Ferdinand Thiessen2024-03-151-40/+74
| | | | | | | | allowed to share Resolves: https://github.com/nextcloud/server/issues/20950 Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor: make share manager buildableRobin Appelman2024-03-061-2/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(sharing): Avoid (dead)locking during orphan deletionChristoph Wurst2024-03-051-2/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #43471 from nextcloud/cache-path-by-idRobin Appelman2024-03-054-75/+107
|\ | | | | Cache path by id
| * perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-044-75/+107
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix: remove old test-only methodsRobin Appelman2024-02-261-4/+4
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat(share): save date and time for expirationBenjamin Gaussorgues2024-02-223-9/+17
| | | | | | | | Because of timezones, not saving time can lead to unexpected behaviour when sharing an item sooner than timezone offset Example: sharing a file before 9am when in UTC+9 Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix: phpunitJohn Molakvoæ2024-02-131-2/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat: rename users to account or personVincent Petry2024-02-131-2/+2
| | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* fix(tests): Adjust legacy tests for nextcloud-router updateFerdinand Thiessen2024-01-251-3/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(share): use user timezone to parse share expiration dateBenjamin Gaussorgues2024-01-092-2/+19
| | | | | | | | If an user in UTC+1 try to create a share at 00:00, it's day D for him, but D-1 for the server (UTC). This fix aims to apply the correct offset Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix: public dav and files_sharing testing fixesJohn Molakvoæ2024-01-092-6/+4
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-239-32/+30
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Merge pull request #39044 from nextcloud/more-empty-mount-checkingRobin Appelman2023-10-241-3/+10
|\ | | | | Fix root mounts not being setup in some cases
| * add more checks to ensure mounts aren't emptyRobin Appelman2023-09-121-3/+10
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | test(files_sharing): Test if recent files result use actual share target nameJulius Härtl2023-10-181-0/+37
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix unit tests on PHP 8.3Joas Schilling2023-10-161-0/+3
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix unit testsJoas Schilling2023-10-121-1/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Convert isset ternary to null coalescing operatorHamid Dehnavi2023-09-281-2/+2
| | | | | | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* | ocm controllerMaxence Lange2023-09-201-1/+3
|/ | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Merge pull request #39863 from nextcloud/sharing-mask-wrapperRobin Appelman2023-09-042-1/+7
|\ | | | | move share permission logic to storage wrapper
| * cleanup di for share permissions wrapperRobin Appelman2023-08-161-1/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * more share permission logic to storage wrapperRobin Appelman2023-08-141-0/+4
| | | | | | | | | | | | this way we only have to determine the share permissions once Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Fix sharing creation insert and getJohn Molakvoæ (skjnldsv)2023-09-021-4/+1
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | fix(tests): Specify all positional parameters again to fix testsJoas Schilling2023-08-231-12/+16
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #39605 from nextcloud/bugfix/noid/final-events-cleanupJoas Schilling2023-08-041-2/+0
|\ | | | | fix!: Final round of moving to IEventDispatcher
| * fix: Remove legacy dispatcher from share managerJoas Schilling2023-07-281-2/+0
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>