0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-02-07 09:59:46 +00:00
nextcloud_server/apps/files_sharing/tests
Ferdinand Thiessen 55b764b64b
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-31 22:18:03 +01:00
..
Collaboration Update php licenses 2021-06-04 22:02:41 +02:00
Command Remove at() matcher in files_sharing tests 2022-05-24 15:20:52 +02:00
Controller fix(files_sharing): Respect permissions passed when creating link shares 2025-01-31 22:18:03 +01:00
External add more checks to ensure mounts aren't empty 2023-10-24 15:51:38 +00:00
js Fix jsunit tests 2022-09-01 14:15:42 +02:00
Middleware Update php licenses 2021-06-04 22:02:41 +02:00
Migration Update php licenses 2021-06-04 22:02:41 +02:00
ApiTest.php feat(share): save date and time for expiration 2024-02-26 09:09:01 +00:00
ApplicationTest.php Multiple fixes 2022-07-31 19:37:59 +02:00
CacheTest.php test(files_sharing): Test if recent files result use actual share target name 2023-12-07 11:08:19 +01:00
CapabilitiesTest.php feat(share): save date and time for expiration 2024-02-26 09:09:01 +00:00
DeleteOrphanedSharesJobTest.php Adapt tests to new job constructors 2022-12-05 10:41:13 +01:00
EncryptedSizePropagationTest.php Update php licenses 2021-06-04 22:02:41 +02:00
EtagPropagationTest.php Update php licenses 2021-06-04 22:02:41 +02:00
ExpireSharesJobTest.php Update php licenses 2021-06-04 22:02:41 +02:00
ExternalStorageTest.php ocm services 2023-09-22 19:46:42 -01:00
GroupEtagPropagationTest.php Update php licenses 2021-06-04 22:02:41 +02:00
HelperTest.php Update php licenses 2021-06-04 22:02:41 +02:00
LockingTest.php Update php licenses 2021-06-04 22:02:41 +02:00
MountProviderTest.php Add SHARE_TYPE_SCIENCEMESH 2023-03-08 17:48:39 +00:00
PropagationTestCase.php Update php licenses 2021-06-04 22:02:41 +02:00
SharedMountTest.php add test for shared mount conflict resolution 2023-01-09 15:30:45 +01:00
SharedStorageTest.php Update php licenses 2021-06-04 22:02:41 +02:00
ShareTest.php Fix errors from PHP 8.2 testing 2022-11-14 17:08:21 +01:00
SizePropagationTest.php Update php licenses 2021-06-04 22:02:41 +02:00
TestCase.php Revert "fix(performance): Do not set up filesystem on every call" 2023-02-21 07:36:43 +01:00
UnshareChildrenTest.php Update php licenses 2021-06-04 22:02:41 +02:00
UpdaterTest.php Skip testMovedIntoShareChangeOwner 2022-07-26 12:17:46 +00:00
WatcherTest.php Update php licenses 2021-06-04 22:02:41 +02:00