-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature:63 can fail #6721
Labels
Comments
HTTP log: Request URL: https://host.docker.internal:9200/ocs/v1.php/apps/files_sharing/api/v1/shares
Request Method: POST
Status Code: 200 OK
Remote Address: 172.17.0.1:9200
Referrer Policy: strict-origin-when-cross-origin
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
authorization: Bearer eyJhbGciOiJ...
Connection: keep-alive
Content-Length: 63
content-type: application/x-www-form-urlencoded
Host: host.docker.internal:9200
ocs-apirequest: true
Origin: https://host.docker.internal:9200
Referer: https://host.docker.internal:9200/files/spaces/personal/home?items-per-page=100
sec-ch-ua: "Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Linux"
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36
x-request-id: 0e0fe0d3-2edd-4569-bfd3-156c87e1fdb9
x-requested-with: XMLHttpRequest
# Form data
shareType: 0
shareWith: Brian
path: /simple-folder
permissions: 9
# Response
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Location
Content-Length: 141
Content-Type: text/xml; charset=utf-8
Date: Fri, 08 Apr 2022 06:12:29 GMT
Ocs-Api-Version: 1
Vary: Origin
<?xml version="1.0" encoding="UTF-8"?>
<ocs>
<meta>
<status>error</status>
<statuscode>404</statuscode>
<message>Not found</message>
</meta>
</ocs> oCIS Server log:
|
Re-appeared: https://drone.owncloud.com/owncloud/web/24755/63/15 |
reappeared: https://drone.owncloud.com/owncloud/web/24843/64/15 Scenario: share a folder with multiple users using role as advanced permissions role and different extra permissions # features/webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature:50
✔ Before # setup.js:41
✔ Before # setup.js:45
✔ Before # setup.js:49
✔ Before # setup.js:66
✔ Before # setup.js:73
✔ Before # setup.js:84
✔ Before # stepDefinitions/filesContext.js:17
✔ Before # stepDefinitions/generalContext.js:199
✔ Before # stepDefinitions/generalContext.js:237
✔ Before # stepDefinitions/middlewareContext.js:46
✔ Given the setting "shareapi_auto_accept_share" of app "core" has been set to "no" in the server # stepDefinitions/middlewareContext.js:66
✔ And the administrator has set the default folder for received shares to "Shares" in the server # stepDefinitions/middlewareContext.js:66
✔ And these users have been created with default attributes and without skeleton files in the server: # stepDefinitions/middlewareContext.js:76
| username |
| Alice |
| Brian |
| Carol |
✔ Given user "Alice" has created folder "/simple-folder" in the server # stepDefinitions/middlewareContext.js:66
✔ And user "Alice" has logged in using the webUI # stepDefinitions/loginContext.js:64
✔ When the user opens the share dialog for folder "simple-folder" using the webUI # stepDefinitions/sharingContext.js:588
✔ And the user selects the following collaborators for the share as "Custom permissions" with "delete, update" permissions: # stepDefinitions/sharingContext.js:371
| collaborator | type |
| Brian Murphy | user |
| Carol King | user |
✔ And the user shares with the selected collaborators # stepDefinitions/sharingContext.js:420
✖ And user "Brian" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server # stepDefinitions/middlewareContext.js:66
Error: Error: Could not find the share to be accepted:
at Object.acceptShare (/usr/src/app/src/helpers/sharingHelper.js:371:13)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async /usr/src/app/src/app.js:66:7
at /var/www/owncloud/web/tests/acceptance/stepDefinitions/middlewareContext.js:38:15
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
- And user "Carol" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server # stepDefinitions/middlewareContext.js:66
- Then custom permissions "delete, update" should be set for user "Brian Murphy" for folder "simple-folder" on the webUI # stepDefinitions/sharingContext.js:312
- And custom permissions "delete, update" should be set for user "Carol King" for folder "simple-folder" on the webUI # stepDefinitions/sharingContext.js:312
- And user "Brian Murphy" should be listed as "Custom permissions" in the collaborators list for folder "simple-folder" on the webUI # stepDefinitions/sharingContext.js:703
- And user "Carol King" should be listed as "Custom permissions" in the collaborators list for folder "simple-folder" on the webUI # stepDefinitions/sharingContext.js:703
- And user "Brian" should have received a share with these details in the server: # stepDefinitions/middlewareContext.js:76
| field | value |
| uid_owner | Alice |
| share_with | Brian |
| file_target | /Shares/simple-folder |
| item_type | folder |
| permissions | read, delete, update |
- And user "Carol" should have received a share with these details in the server: # stepDefinitions/middlewareContext.js:76
| field | value |
| uid_owner | Alice |
| share_with | Carol |
| file_target | /Shares/simple-folder |
| item_type | folder |
| permissions | read, delete, update |
✔ After # stepDefinitions/middlewareContext.js:60
✔ After # stepDefinitions/generalContext.js:255
✔ After # stepDefinitions/generalContext.js:224
✔ After # stepDefinitions/generalContext.js:165
✔ After # setup.js:117
✔ After # setup.js:113
✔ After # setup.js:109
✔ After # setup.js:102
✔ After # setup.js:93 |
9 tasks
will be tracked in #6796 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://drone.owncloud.com/owncloud/web/24385/63/15
The text was updated successfully, but these errors were encountered: