|
|
|
@ -47,7 +47,7 @@ Feature: FilesDrop |
|
|
|
And Downloading file "/drop/a.txt" |
|
|
|
Then Downloaded content should be "abc" |
|
|
|
|
|
|
|
Scenario: Files drop forbis MKCOL |
|
|
|
Scenario: Files drop forbid MKCOL |
|
|
|
Given user "user0" exists |
|
|
|
And As an "user0" |
|
|
|
And user "user0" created a folder "/drop" |
|
|
|
@ -90,3 +90,42 @@ Feature: FilesDrop |
|
|
|
Then Downloaded content should be "abc" |
|
|
|
And Downloading file "/drop/Mallory/a (2).txt" |
|
|
|
Then Downloaded content should be "def" |
|
|
|
|
|
|
|
Scenario: Files request drop with invalid nickname with slashes |
|
|
|
Given user "user0" exists |
|
|
|
And As an "user0" |
|
|
|
And user "user0" created a folder "/drop" |
|
|
|
And as "user0" creating a share with |
|
|
|
| path | drop | |
|
|
|
| shareType | 4 | |
|
|
|
| permissions | 4 | |
|
|
|
| attributes | [{"scope":"fileRequest","key":"enabled","value":true}] | |
|
|
|
| shareWith | | |
|
|
|
When Dropping file "/folder/a.txt" with "abc" as "Alice/Bob/Mallory" |
|
|
|
Then the HTTP status code should be "400" |
|
|
|
|
|
|
|
Scenario: Files request drop with invalid nickname with forbidden characters |
|
|
|
Given user "user0" exists |
|
|
|
And As an "user0" |
|
|
|
And user "user0" created a folder "/drop" |
|
|
|
And as "user0" creating a share with |
|
|
|
| path | drop | |
|
|
|
| shareType | 4 | |
|
|
|
| permissions | 4 | |
|
|
|
| attributes | [{"scope":"fileRequest","key":"enabled","value":true}] | |
|
|
|
| shareWith | | |
|
|
|
When Dropping file "/folder/a.txt" with "abc" as ".htaccess" |
|
|
|
Then the HTTP status code should be "400" |
|
|
|
|
|
|
|
Scenario: Files request drop with invalid nickname with forbidden characters |
|
|
|
Given user "user0" exists |
|
|
|
And As an "user0" |
|
|
|
And user "user0" created a folder "/drop" |
|
|
|
And as "user0" creating a share with |
|
|
|
| path | drop | |
|
|
|
| shareType | 4 | |
|
|
|
| permissions | 4 | |
|
|
|
| attributes | [{"scope":"fileRequest","key":"enabled","value":true}] | |
|
|
|
| shareWith | | |
|
|
|
When Dropping file "/folder/a.txt" with "abc" as ".Mallory" |
|
|
|
Then the HTTP status code should be "400" |