downloading file shared via secure view role

This commit is contained in:
Sabin
2024-06-19 14:41:19 +05:45
parent 6176b4c00c
commit dc0401e25e
2 changed files with 44 additions and 0 deletions
@@ -382,6 +382,33 @@ Feature: sharing
| Uploader |
Scenario: sharee cannot download file shared with Secure viewer permission by sharee
Given using old DAV path
And user "Alice" has uploaded file with content "hello world" to "textfile.txt"
And user "Alice" has sent the following resource share invitation:
| resource | textfile.txt |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Secure viewer |
And user "Brian" downloads file "/Shares/textfile.txt" using the WebDAV API
Then the HTTP status code should be "403"
Scenario: sharee cannot download file inside folder shared with Secure viewer permission by sharee
Given using old DAV path
And user "Alice" has created folder "FolderToShare"
And user "Alice" has uploaded file with content "hello world" to "FolderToShare/textfile.txt"
And user "Alice" has sent the following resource share invitation:
| resource | FolderToShare |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Secure viewer |
And user "Brian" downloads file "/Shares/FolderToShare/textfile.txt" using the WebDAV API
Then the HTTP status code should be "403"
Scenario Outline: space admin tries to remove password of a public link share (change/create permission)
Given using spaces DAV path
And using OCS API version "<ocs-api-version>"