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
This commit is contained in:
Morris Jobke 2015-12-01 16:49:40 +01:00
parent fae6643e6d
commit 45e247594a
1 changed files with 11 additions and 0 deletions

View File

@ -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"