Closed
Description
Build: https://drone.owncloud.com/owncloud/encryption/2564/31/19
Scenario: apiMain/quota.feature:358
@files_sharing-app-required @skipOnOcV10.8 @skipOnOcV10.9 @skipOnOcV10.10
Scenario: share receiver of a share with insufficient quota should not be able to copy from home folder to the received shared file # /var/www/owncloud/testrunner/tests/acceptance/features/apiMain/quota.feature:358
Given the administrator has set the default folder for received shares to "Shares" # OccContext::theAdministratorHasSetTheDefaultFolderForReceivedSharesTo()
And auto-accept shares has been disabled # FeatureContext::autoAcceptSharesHasBeenDisabled()
And user "Brian" has been created with default attributes and without skeleton files # FeatureContext::userHasBeenCreatedWithDefaultAttributesAndWithoutSkeletonFiles()
And the quota of user "Brian" has been set to "10 MB" # FeatureContext::theQuotaOfUserHasBeenSetTo()
And the quota of user "Alice" has been set to "10 B" # FeatureContext::theQuotaOfUserHasBeenSetTo()
And user "Alice" has uploaded file with content "short" to "/testquota.txt" # FeatureContext::userHasUploadedAFileWithContentTo()
And user "Brian" has uploaded file with content "longer line of text" to "/testquota.txt" # FeatureContext::userHasUploadedAFileWithContentTo()
And user "Alice" has shared file "/testquota.txt" with user "Brian" # FeatureContext::userHasSharedFileWithUserUsingTheSharingApi()
And user "Brian" has accepted share "/testquota.txt" offered by user "Alice" # FeatureContext::userHasReactedToShareOfferedBy()
When user "Brian" copies file "/testquota.txt" to "/Shares/testquota.txt" using the WebDAV API # FeatureContext::userCopiesFileUsingTheAPI()
Then the HTTP status code should be "507" # FeatureContext::thenTheHTTPStatusCodeShouldBe()
And the DAV exception should be "Sabre\DAV\Exception\InsufficientStorage" # FeatureContext::theDavElementShouldBe()
And as "Brian" file "/Shares/testquota.txt" should exist # FeatureContext::asFileOrFolderShouldExist()
And as "Alice" file "/testquota.txt" should exist # FeatureContext::asFileOrFolderShouldExist()
And the content of file "/testquota.txt" for user "Alice" should be "short" # FeatureContext::contentOfFileForUserShouldBe()
The downloaded content was expected to be 'short', but actually is '<?xml'. HTTP status was 500
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'short'
+'<?xml'
Recently the quota handling issue has been fixed owncloud/core#40140. Needs investigation