This repository was archived by the owner on Apr 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
This repository was archived by the owner on Apr 14, 2025. It is now read-only.
After accepting a share in OCIS data in the received file cannot be downloaded #208
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
Description
This scenario is failing: https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiShareManagement/acceptSharesToSharesFolder.feature#L15
https://cloud.drone.io/owncloud/ocis/1488/4/7
Background: # /srv/app/testrunner/tests/acceptance/features/apiShareManagement/acceptSharesToSharesFolder.feature:7
Given using OCS API version "1" # FeatureContext::usingOcsApiVersion()
And using new DAV path # FeatureContext::usingOldOrNewDavPath()
And these users have been created with default attributes and skeleton files: # FeatureContext::theseUsersHaveBeenCreated()
| username |
| Alice |
| Brian |
Scenario: When accepting a share of a file, the received file is accessible # /srv/app/testrunner/tests/acceptance/features/apiShareManagement/acceptSharesToSharesFolder.feature:15
Given the administrator has set the default folder for received shares to "Shares" # OccContext::theAdministratorHasSetTheDefaultFolderForReceivedSharesTo()
And parameter "shareapi_auto_accept_share" of app "core" has been set to "no" # AppConfigurationContext::serverParameterHasBeenSetTo()
And user "Alice" has shared file "/textfile0.txt" with user "Brian" # FeatureContext::userHasSharedFileWithUserUsingTheSharingApi()
When user "Brian" accepts the share "/textfile0.txt" offered by user "Alice" using the sharing API # FeatureContext::userReactsToShareOfferedBy()
Then the content of file "/Shares/textfile0.txt" for user "Brian" should be "ownCloud test text file 0" plus end-of-line # FeatureContext::contentOfFileForUserShouldBePlusEndOfLine()
The downloaded content was expected to be 'ownCloud test text file 0
', but actually is ''.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'ownCloud test text file 0\n
-'
+''
See #207 for a different issue - when the share is accepted the share does get created but the response body is empty.
In this issue, the test scenario accepts the share and does not bother to check the response body. It tries to download the received shared file. The download seems to "work" but the file content does not actually come - it seems empty.