From 4b462896f5f5afac57860cc48d44e6f5041953cf Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 15 Apr 2026 23:51:13 +0200 Subject: [PATCH] test: add test for link reshares with more permissions being redacted Signed-off-by: Robin Appelman --- .../sharing_features/sharing-v1-part2.feature | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/build/integration/sharing_features/sharing-v1-part2.feature b/build/integration/sharing_features/sharing-v1-part2.feature index a6e4c67165a..e93c9951ab3 100644 --- a/build/integration/sharing_features/sharing-v1-part2.feature +++ b/build/integration/sharing_features/sharing-v1-part2.feature @@ -23,6 +23,36 @@ Feature: sharing And User "user2" should be included in the response And User "user3" should not be included in the response +Scenario: getting all shares of a file with reshares with link share with less permissions + Given user "user0" exists + And user "user1" exists + When as "user0" creating a share with + | path | textfile0.txt | + | shareType | 0 | + | shareWith | user1 | + | permissions | 17 | + Then the OCS status code should be "100" + And the HTTP status code should be "200" + When as "user0" creating a share with + | path | textfile0.txt | + | shareType | 3 | + | permissions | 19 | + Then the OCS status code should be "100" + And the HTTP status code should be "200" + And last link share can be downloaded + When As an "user1" + And sending "GET" to "/apps/files_sharing/api/v1/shares?reshares=true&path=textfile0 (2).txt" + Then the OCS status code should be "100" + And the HTTP status code should be "200" + And User "user1" should not be included in the response + Then the list of returned shares has 1 shares + And share 0 is returned with + | share_type | 3 | + | uid_owner | user0 | + | token | | + | url | | + | permissions | 19 | + Scenario: getting all shares of a file with a received share after revoking the resharing rights Given user "user0" exists And user "user1" exists