diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-12-01 16:49:40 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-02-23 14:50:24 +0100 |
commit | 45e247594af2717d75919f544d20bffff74f4e5a (patch) | |
tree | c41fa1a8511c229c2cdf3fb7a9ec22d7278c82f8 /build | |
parent | fae6643e6dd4bc308170e0ab45886f110f60a639 (diff) | |
download | nextcloud-server-45e247594af2717d75919f544d20bffff74f4e5a.tar.gz nextcloud-server-45e247594af2717d75919f544d20bffff74f4e5a.zip |
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
Diffstat (limited to 'build')
-rw-r--r-- | build/integration/features/sharing-v1.feature | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/build/integration/features/sharing-v1.feature b/build/integration/features/sharing-v1.feature index 1a1a5c1981a..e16de8b6b11 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" |