Open kyteinsky opened 9 months ago
cc @Altahrim @Fenn-CS
Here a little animation of the problem which is multiple discribed since many weeks
I hope we can fix that quickly because it is a basic function of NextCloud and should work without problems. :)
thanks!
⚠️ This issue respects the following points: ⚠️
Bug description
Subsequent shares (share by a user that has received the shared file from another user) do not respect the original share's expiration date.
If user1 shares a file with user2 with expiration date 1 day in the future, user2 can, when the share is live, share it with user3 with an expiration date lasting much longer.
All the shares are visible to the original sharer with the expiration dates but it still would make sense to limit the expiration date by parent's expiration date.
Could be relevant: https://github.com/nextcloud/server/blob/master/apps/files_sharing/lib/Controller/ShareAPIController.php#L770-L777
(Share seems to fail with 'expiration date is in the past' error for 28 and master)
cc @artonge
Steps to reproduce
Expected behavior
user2 is not able to share the file with longer expiration date (if the expiration date was set for the share initially)
Installation method
None
Nextcloud Server version
27
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
No response