@@ -47,7 +47,7 @@ Feature: FilesDrop
4747 And Downloading file "/drop/a.txt"
4848 Then Downloaded content should be "abc"
4949
50- Scenario : Files drop forbis MKCOL
50+ Scenario : Files drop forbid MKCOL
5151 Given user "user0" exists
5252 And As an "user0"
5353 And user "user0" created a folder "/drop"
@@ -90,3 +90,42 @@ Feature: FilesDrop
9090 Then Downloaded content should be "abc"
9191 And Downloading file "/drop/Mallory/a (2).txt"
9292 Then Downloaded content should be "def"
93+
94+ Scenario : Files request drop with invalid nickname with slashes
95+ Given user "user0" exists
96+ And As an "user0"
97+ And user "user0" created a folder "/drop"
98+ And as "user0" creating a share with
99+ | path | drop |
100+ | shareType | 4 |
101+ | permissions | 4 |
102+ | attributes | [{"scope ":"fileRequest ","key ":"enabled ","value ":true }] |
103+ | shareWith | |
104+ When Dropping file "/folder/a.txt" with "abc" as "Alice/Bob/Mallory"
105+ Then the HTTP status code should be "400"
106+
107+ Scenario : Files request drop with invalid nickname with forbidden characters
108+ Given user "user0" exists
109+ And As an "user0"
110+ And user "user0" created a folder "/drop"
111+ And as "user0" creating a share with
112+ | path | drop |
113+ | shareType | 4 |
114+ | permissions | 4 |
115+ | attributes | [{"scope ":"fileRequest ","key ":"enabled ","value ":true }] |
116+ | shareWith | |
117+ When Dropping file "/folder/a.txt" with "abc" as ".htaccess"
118+ Then the HTTP status code should be "400"
119+
120+ Scenario : Files request drop with invalid nickname with forbidden characters
121+ Given user "user0" exists
122+ And As an "user0"
123+ And user "user0" created a folder "/drop"
124+ And as "user0" creating a share with
125+ | path | drop |
126+ | shareType | 4 |
127+ | permissions | 4 |
128+ | attributes | [{"scope ":"fileRequest ","key ":"enabled ","value ":true }] |
129+ | shareWith | |
130+ When Dropping file "/folder/a.txt" with "abc" as ".Mallory"
131+ Then the HTTP status code should be "400"
0 commit comments