2022-12-15 14:20:04 +05:45
|
|
|
Feature: Public can download folders from project space public link
|
|
|
|
|
As a public
|
|
|
|
|
I want to be able to download folder from public link
|
|
|
|
|
So that I can gain access to it's contents
|
|
|
|
|
|
|
|
|
|
Background:
|
2024-11-29 09:39:21 +05:45
|
|
|
Given these users have been created with default attributes:
|
2022-12-15 14:20:04 +05:45
|
|
|
| username |
|
|
|
|
|
| Alice |
|
|
|
|
|
| Brian |
|
|
|
|
|
And using spaces DAV path
|
2023-08-16 09:29:00 +05:45
|
|
|
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 "new-space" with the default quota using the Graph API
|
2022-12-15 14:20:04 +05:45
|
|
|
|
2025-09-19 16:15:07 +02:00
|
|
|
@env-config
|
2022-12-15 14:20:04 +05:45
|
|
|
Scenario: download a folder from public link of a space
|
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-05-09 17:17:14 +05:45
|
|
|
And using SharingNG
|
2023-11-13 23:37:12 +01:00
|
|
|
And user "Alice" has created a folder "NewFolder" in space "new-space"
|
2022-12-15 14:20:04 +05:45
|
|
|
And user "Alice" has uploaded a file inside space "new-space" with content "some content" to "NewFolder/test.txt"
|
2024-05-09 17:17:14 +05:45
|
|
|
And user "Alice" has created the following space link share:
|
|
|
|
|
| space | new-space |
|
|
|
|
|
| displayName | someName |
|
2025-01-21 11:54:57 +05:45
|
|
|
| permissionsRole | View |
|
2022-12-19 15:46:51 +05:45
|
|
|
When public downloads the folder "NewFolder" from the last created public link using the public files API
|
2022-12-15 14:20:04 +05:45
|
|
|
Then the HTTP status code should be "200"
|
2024-07-16 15:52:16 +02:00
|
|
|
And the downloaded zip archive should contain these files:
|
2022-12-15 14:20:04 +05:45
|
|
|
| name | content |
|
|
|
|
|
| NewFolder/test.txt | some content |
|
|
|
|
|
|
2025-09-19 16:15:07 +02:00
|
|
|
@env-config @issue-5229
|
2022-12-15 14:20:04 +05:45
|
|
|
Scenario: download a folder from public link of a folder inside a space
|
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-05-09 17:17:14 +05:45
|
|
|
And using SharingNG
|
2023-11-13 23:37:12 +01:00
|
|
|
And user "Alice" has created a folder "NewFolder" in space "new-space"
|
2022-12-15 14:20:04 +05:45
|
|
|
And user "Alice" has created a folder "NewFolder/folder" in space "new-space"
|
|
|
|
|
And user "Alice" has uploaded a file inside space "new-space" with content "some content" to "NewFolder/folder/test.txt"
|
2024-05-09 17:17:14 +05:45
|
|
|
And user "Alice" has created the following resource link share:
|
|
|
|
|
| resource | NewFolder |
|
|
|
|
|
| space | new-space |
|
|
|
|
|
| displayName | public link |
|
2025-01-10 12:20:47 +05:45
|
|
|
| permissionsRole | View |
|
2022-12-19 15:46:51 +05:45
|
|
|
When public downloads the folder "folder" from the last created public link using the public files API
|
2022-12-15 14:20:04 +05:45
|
|
|
Then the HTTP status code should be "200"
|
2024-07-16 15:52:16 +02:00
|
|
|
And the downloaded zip archive should contain these files:
|
2022-12-15 14:20:04 +05:45
|
|
|
| name | content |
|
|
|
|
|
| folder/test.txt | some content |
|
2026-03-18 10:35:14 +05:45
|
|
|
|
|
|
|
|
@env-config
|
|
|
|
|
Scenario Outline: download an archive of a password protected public link share (project space)
|
|
|
|
|
And using SharingNG
|
|
|
|
|
And user "Alice" has created a folder "project-folder" in space "new-space"
|
|
|
|
|
And user "Alice" has uploaded a file inside space "new-space" with content "some content1" to "project-folder/test1.txt"
|
|
|
|
|
And user "Alice" has uploaded a file inside space "new-space" with content "some content2" to "project-folder/test2.txt"
|
|
|
|
|
And user "Alice" has uploaded a file inside space "new-space" with content "some content3" to "project-folder/test3.txt"
|
|
|
|
|
And user "Alice" has created the following resource link share:
|
|
|
|
|
| resource | project-folder |
|
|
|
|
|
| space | new-space |
|
|
|
|
|
| permissionsRole | <permissionsRole> |
|
|
|
|
|
| password | %public% |
|
|
|
|
|
When the public downloads the archive of the last created public link with password "%public%"
|
|
|
|
|
Then the HTTP status code should be "200"
|
|
|
|
|
And the downloaded "zip" archive should contain these files:
|
|
|
|
|
| name | content |
|
|
|
|
|
| test1.txt | some content1 |
|
|
|
|
|
| test2.txt | some content2 |
|
|
|
|
|
| test3.txt | some content3 |
|
|
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
| permissionsRole |
|
|
|
|
|
| Edit |
|
|
|
|
|
| View |
|
|
|
|
|
| Upload |
|