From 45e247594af2717d75919f544d20bffff74f4e5a Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 1 Dec 2015 16:49:40 +0100 Subject: [PATCH] Add a test that reproduces #20686 * user with a quota of 0 gets a file shared and can't update this file because the wrong quota is used to verify if the update is allowed --- build/integration/features/sharing-v1.feature | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build/integration/features/sharing-v1.feature b/build/integration/features/sharing-v1.feature index 1a1a5c1981..e16de8b6b1 100644 --- a/build/integration/features/sharing-v1.feature +++ b/build/integration/features/sharing-v1.feature @@ -495,3 +495,14 @@ Feature: sharing And user "user2" does not exist And user "user1" should see following elements | /myFOLDER/myTMP/ | + + Scenario: Check quota of owners parent directory of a shared file + Given using dav path "remote.php/webdav" + And As an "admin" + And user "user0" exists + And user "user1" exists + And user "user1" has a quota of "0" + And User "user0" moved file "/welcome.txt" to "/myfile.txt" + And file "myfile.txt" of user "user0" is shared with user "user1" + When User "user1" uploads file "data/textfile.txt" to "/myfile.txt" + Then the HTTP status code should be "204"