|
|
|
|
@ -15,7 +15,6 @@ Feature: sharing
|
|
|
|
|
When Downloading file "/welcome.txt" with range "bytes=51-77"
|
|
|
|
|
Then Downloaded content should be "example file for developers"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: Upload forbidden if quota is 0
|
|
|
|
|
Given using dav path "remote.php/webdav"
|
|
|
|
|
And As an "admin"
|
|
|
|
|
@ -33,9 +32,35 @@ Feature: sharing
|
|
|
|
|
And Downloading last public shared file with range "bytes=51-77"
|
|
|
|
|
Then Downloaded content should be "example file for developers"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: Downloading a file on the old endpoint should serve security headers
|
|
|
|
|
Given using dav path "remote.php/webdav"
|
|
|
|
|
And As an "admin"
|
|
|
|
|
When Downloading file "/welcome.txt"
|
|
|
|
|
Then The following headers should be set
|
|
|
|
|
|Content-Disposition|attachment|
|
|
|
|
|
|Content-Security-Policy|default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *|
|
|
|
|
|
|X-Content-Type-Options |nosniff|
|
|
|
|
|
|X-Download-Options|noopen|
|
|
|
|
|
|X-Frame-Options|Sameorigin|
|
|
|
|
|
|X-Permitted-Cross-Domain-Policies|none|
|
|
|
|
|
|X-Robots-Tag|none|
|
|
|
|
|
|X-XSS-Protection|1; mode=block|
|
|
|
|
|
And Downloaded content should start with "Welcome to your ownCloud account!"
|
|
|
|
|
|
|
|
|
|
Scenario: Downloading a file on the new endpoint should serve security headers
|
|
|
|
|
Given using dav path "remote.php/dav/files/admin/"
|
|
|
|
|
And As an "admin"
|
|
|
|
|
When Downloading file "/welcome.txt"
|
|
|
|
|
Then The following headers should be set
|
|
|
|
|
|Content-Disposition|attachment|
|
|
|
|
|
|Content-Security-Policy|default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *|
|
|
|
|
|
|X-Content-Type-Options |nosniff|
|
|
|
|
|
|X-Download-Options|noopen|
|
|
|
|
|
|X-Frame-Options|Sameorigin|
|
|
|
|
|
|X-Permitted-Cross-Domain-Policies|none|
|
|
|
|
|
|X-Robots-Tag|none|
|
|
|
|
|
|X-XSS-Protection|1; mode=block|
|
|
|
|
|
And Downloaded content should start with "Welcome to your ownCloud account!"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|