@@ -44,7 +44,7 @@ Feature: FilesDrop
4444 And Updating last share with
4545 | permissions | 4 |
4646 When Dropping file "/folder/a.txt" with "abc"
47- Then the HTTP status code should be "405 "
47+ Then the HTTP status code should be "400 "
4848
4949 Scenario : Files drop forbid MKCOL without a nickname
5050 Given user "user0" exists
@@ -57,7 +57,7 @@ Feature: FilesDrop
5757 And Updating last share with
5858 | permissions | 4 |
5959 When Creating folder "folder" in drop
60- Then the HTTP status code should be "405 "
60+ Then the HTTP status code should be "400 "
6161
6262 Scenario : Files drop allows MKCOL with a nickname
6363 Given user "user0" exists
@@ -83,7 +83,7 @@ Feature: FilesDrop
8383 And Updating last share with
8484 | permissions | 4 |
8585 When dropping file "/folder/a.txt" with "abc"
86- Then the HTTP status code should be "405 "
86+ Then the HTTP status code should be "400 "
8787
8888 Scenario : Files request drop
8989 Given user "user0" exists
@@ -195,4 +195,43 @@ Feature: FilesDrop
195195 | attributes | [{"scope ":"fileRequest ","key ":"enabled ","value ":true }] |
196196 | shareWith | |
197197 When Dropping file "/folder/a.txt" with "abc"
198- Then the HTTP status code should be "405"
198+ Then the HTTP status code should be "400"
199+
200+ Scenario : Files request drop with invalid nickname with slashes
201+ Given user "user0" exists
202+ And As an "user0"
203+ And user "user0" created a folder "/drop"
204+ And as "user0" creating a share with
205+ | path | drop |
206+ | shareType | 4 |
207+ | permissions | 4 |
208+ | attributes | [{"scope ":"fileRequest ","key ":"enabled ","value ":true }] |
209+ | shareWith | |
210+ When Dropping file "/folder/a.txt" with "abc" as "Alice/Bob/Mallory"
211+ Then the HTTP status code should be "400"
212+
213+ Scenario : Files request drop with invalid nickname with forbidden characters
214+ Given user "user0" exists
215+ And As an "user0"
216+ And user "user0" created a folder "/drop"
217+ And as "user0" creating a share with
218+ | path | drop |
219+ | shareType | 4 |
220+ | permissions | 4 |
221+ | attributes | [{"scope ":"fileRequest ","key ":"enabled ","value ":true }] |
222+ | shareWith | |
223+ When Dropping file "/folder/a.txt" with "abc" as ".htaccess"
224+ Then the HTTP status code should be "400"
225+
226+ Scenario : Files request drop with invalid nickname with forbidden characters
227+ Given user "user0" exists
228+ And As an "user0"
229+ And user "user0" created a folder "/drop"
230+ And as "user0" creating a share with
231+ | path | drop |
232+ | shareType | 4 |
233+ | permissions | 4 |
234+ | attributes | [{"scope ":"fileRequest ","key ":"enabled ","value ":true }] |
235+ | shareWith | |
236+ When Dropping file "/folder/a.txt" with "abc" as ".Mallory"
237+ Then the HTTP status code should be "400"
0 commit comments