2023-11-13 23:37:12 +01:00
|
|
|
@env-config
|
2022-12-05 14:49:07 +05:45
|
|
|
Feature: public link for a space
|
|
|
|
|
|
|
|
|
|
Background:
|
2026-02-04 16:46:16 +05:45
|
|
|
Given the config "SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD" has been set to "false" for "sharing" service
|
2024-11-29 09:39:21 +05:45
|
|
|
And these users have been created with default attributes:
|
2022-12-05 14:49:07 +05:45
|
|
|
| username |
|
|
|
|
|
| Alice |
|
|
|
|
|
And using spaces DAV path
|
2023-06-15 15:56:48 +02:00
|
|
|
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
|
2023-10-30 17:57:42 +05:45
|
|
|
And user "Alice" has created a space "public space" with the default quota using the Graph API
|
2024-05-09 14:07:56 +05:45
|
|
|
And user "Alice" has created the following space link share:
|
|
|
|
|
| space | public space |
|
2025-01-21 11:54:57 +05:45
|
|
|
| permissionsRole | View |
|
2024-05-09 14:07:56 +05:45
|
|
|
And using SharingNG
|
2022-12-05 14:49:07 +05:45
|
|
|
|
2025-09-19 17:19:34 +02:00
|
|
|
|
2022-12-05 14:49:07 +05:45
|
|
|
Scenario: public tries to upload a file in the public space
|
2024-11-11 14:28:23 +05:45
|
|
|
When the public uploads file "test.txt" with content "test" using the public WebDAV API
|
2022-12-05 14:49:07 +05:45
|
|
|
And the HTTP status code should be "403"
|
|
|
|
|
|
2025-09-19 17:19:34 +02:00
|
|
|
|
2022-12-05 14:49:07 +05:45
|
|
|
Scenario: public tries to create a folder in the public space
|
2024-11-11 14:28:23 +05:45
|
|
|
When the public creates folder "created-by-public" using the public WebDAV API
|
2022-12-05 14:49:07 +05:45
|
|
|
And the HTTP status code should be "403"
|
|
|
|
|
|
2025-09-19 17:19:34 +02:00
|
|
|
|
2022-12-05 14:49:07 +05:45
|
|
|
Scenario: public tries to delete a file in the public space
|
|
|
|
|
Given user "Alice" has uploaded a file inside space "public space" with content "some content" to "test.txt"
|
2024-11-11 14:28:23 +05:45
|
|
|
When the public deletes file "test.txt" from the last public link share using the public WebDAV API
|
2022-12-05 14:49:07 +05:45
|
|
|
And the HTTP status code should be "403"
|
|
|
|
|
|
2025-09-19 17:19:34 +02:00
|
|
|
|
2022-12-05 14:49:07 +05:45
|
|
|
Scenario: public tries to delete a folder in the public space
|
|
|
|
|
And user "Alice" has created a folder "/public-folder" in space "public space"
|
2024-11-11 14:28:23 +05:45
|
|
|
When the public deletes folder "public-folder" from the last public link share using the public WebDAV API
|
2022-12-05 14:49:07 +05:45
|
|
|
And the HTTP status code should be "403"
|
|
|
|
|
|
2025-09-19 17:19:34 +02:00
|
|
|
|
2022-12-05 14:49:07 +05:45
|
|
|
Scenario: public tries to change content of a resources in the public space
|
|
|
|
|
Given user "Alice" has uploaded a file inside space "public space" with content "some content" to "test.txt"
|
2024-11-11 14:28:23 +05:45
|
|
|
When the public overwrites file "test.txt" with content "public content" using the public WebDAV API
|
2022-12-05 14:49:07 +05:45
|
|
|
And the HTTP status code should be "403"
|