nextcloud-server/apps/files_sharing/tests
Ferdinand Thiessen 253f4345f1
fix(files_sharing): Respect permissions passed when creating link shares
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>
2025-01-28 16:40:50 +07:00
..
Collaboration fix(autocomplete): Move known array keys to psalm docs 2024-09-18 11:40:45 +07:00
Command fix(sharing): add command to fix broken shares after ownership transferring 2024-11-18 21:24:23 +07:00
Controller fix(files_sharing): Respect permissions passed when creating link shares 2025-01-28 16:40:50 +07:00
External feat(federatedfilesharing): auto-accept shares from trusted servers 2025-01-09 12:54:51 +07:00
Middleware chore(apps): Apply new rector configuration to autouse classes 2024-10-15 10:40:25 +07:00
Migration refactor(apps): Use constructor property promotion when possible 2024-10-21 12:37:59 +07:00
ApiTest.php fix(files_sharing): Cleanup error messages 2024-10-28 09:07:41 +07:00
ApplicationTest.php Merge pull request #44967 from nextcloud/perf/sharing-events 2024-06-10 11:57:53 +07:00
CacheTest.php refactor(apps): Use constructor property promotion when possible 2024-10-21 12:37:59 +07:00
CapabilitiesTest.php test: Update tests 2025-01-15 15:50:43 +07:00
DeleteOrphanedSharesJobTest.php refactor(apps): Use constructor property promotion when possible 2024-10-21 12:37:59 +07:00
EncryptedSizePropagationTest.php chore: Add SPDX header 2024-06-06 22:53:41 +07:00
EtagPropagationTest.php refactor(apps): Use constructor property promotion when possible 2024-10-21 12:37:59 +07:00
ExpireSharesJobTest.php refactor(apps): Use constructor property promotion when possible 2024-10-21 12:37:59 +07:00
ExternalStorageTest.php chore(apps): Apply new rector configuration to autouse classes 2024-10-15 10:40:25 +07:00
GroupEtagPropagationTest.php chore(apps): Apply new rector configuration to autouse classes 2024-10-15 10:40:25 +07:00
HelperTest.php chore(apps): Apply new rector configuration to autouse classes 2024-10-15 10:40:25 +07:00
LockingTest.php chore(apps): Apply new rector configuration to autouse classes 2024-10-15 10:40:25 +07:00
MountProviderTest.php chore(apps): Apply new rector configuration to autouse classes 2024-10-15 10:40:25 +07:00
PropagationTestCase.php refactor(apps): Use constructor property promotion when possible 2024-10-21 12:37:59 +07:00
ShareTest.php refactor(apps): Use constructor property promotion when possible 2024-10-21 12:37:59 +07:00
SharedMountTest.php chore(apps): Apply new rector configuration to autouse classes 2024-10-15 10:40:25 +07:00
SharedStorageTest.php test: add test for permissions of copied share 2024-12-04 19:19:08 +07:00
SharesReminderJobTest.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +07:00
SizePropagationTest.php chore(apps): Apply new rector configuration to autouse classes 2024-10-15 10:40:25 +07:00
TestCase.php refactor(apps): Use constructor property promotion when possible 2024-10-21 12:37:59 +07:00
UnshareChildrenTest.php chore(apps): Apply new rector configuration to autouse classes 2024-10-15 10:40:25 +07:00
UpdaterTest.php chore(apps): Apply new rector configuration to autouse classes 2024-10-15 10:40:25 +07:00
WatcherTest.php refactor(apps): Use constructor property promotion when possible 2024-10-21 12:37:59 +07:00