From 09a63056687271ad99f2696a2223445fc5ff0846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 20 Oct 2021 16:13:30 +0200 Subject: [PATCH] Add test case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- .../sharing_features/sharing-v1-part3.feature | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/build/integration/sharing_features/sharing-v1-part3.feature b/build/integration/sharing_features/sharing-v1-part3.feature index 42e0f1b6add04..10e96b1dd9b13 100644 --- a/build/integration/sharing_features/sharing-v1-part3.feature +++ b/build/integration/sharing_features/sharing-v1-part3.feature @@ -472,6 +472,36 @@ Feature: sharing Then the OCS status code should be "404" And the HTTP status code should be "200" + Scenario: do not allow to increase link share permissions on sub reshare + Given As an "admin" + And user "user0" exists + And user "user1" exists + And group "group1" exists + And user "user1" belongs to group "group1" + And user "user0" created a folder "/TMP" + And user "user0" created a folder "/TMP/SUB" + And As an "user0" + And creating a share with + | path | TMP | + | shareType | 1 | + | shareWith | group1 | + | permissions | 15 | + When As an "user1" + And accepting last share + And As an "user0" + And creating a share with + | path | TMP/SUB | + | shareType | 0 | + | shareWith | user1 | + | permissions | 31 | + When As an "user1" + And accepting last share + And creating a share with + | path | TMP/SUB | + | shareType | 3 | + Then the OCS status code should be "100" + And the HTTP status code should be "200" + Scenario: deleting file out of a share as recipient creates a backup for the owner Given As an "admin" And user "user0" exists