@@ -154,6 +154,62 @@ Scenario: Should return 404 when excess slashes
154154 | property | value |
155155 | status | 404 |
156156
157+ Scenario : Should return 404 when excess slashes (2)
158+ Given enonic is running in production mode
159+ # Given loglevel is set to "debug"
160+ Given the following resources:
161+ | path | exist |
162+ | /assets //icons //favicons //apple -touch -icon -120x120 .png | false |
163+ Given the following request:
164+ | property | value |
165+ | branch | draft |
166+ | contextPath | /admin /tool /_ /service /com .enonic .xp .app .standardidprovider /asset |
167+ | host | localhost |
168+ | method | GET |
169+ | mode | admin |
170+ | path | /admin /tool /_ /service /com .enonic .xp .app .standardidprovider /asset /1727786440404 /icons /favicons /apple -touch -icon -120x120 .png |
171+ | port | 8080 |
172+ | rawPath | /admin /tool /_ /service /com .enonic .xp .app .standardidprovider /asset /1727786440404 //icons //favicons //apple -touch -icon -120x120 .png |
173+ | remoteAddress | 127 .0 .0 .1 |
174+ | repositoryId | com .enonic .cms .default |
175+ | scheme | http |
176+ | url | http ://localhost :8080 /admin /tool /_ /service /com .enonic .xp .app .standardidprovider /asset /1727786440404 /icons /favicons /apple -touch -icon -120x120 .png |
177+ | webSocket | false |
178+ Given the following request headers:
179+ | header | value |
180+ | Accept | text /html ,application /xhtml +xml ,application /xml ;q =0 .9 ,image /avif ,image /webp ,image /apng ,*/*;q =0 .8 ,application /signed -exchange ;v =b3 ;q =0 .7 |
181+ | Accept -Encoding | gzip , deflate , br , zstd |
182+ | Accept -Language | en -GB ,en -US ;q =0 .9 ,en ;q =0 .8 ,no ;q =0 .7 |
183+ | Cache -Control | no -cache |
184+ | Connection | keep -alive |
185+ | Cookie | app .browse .RecentItemsList =base %3Afolder %7Cportal %3Asite ; JSESSIONID =1o50615fgjqlt1wsbsvcubu00m2 |
186+ | Host | localhost :8080 |
187+ | Pragma | no -cache |
188+ | sec -ch -ua | "Chromium ";v ="128 ", "Not ;A =Brand ";v ="24 ", "Google Chrome ";v ="128 " |
189+ | sec -ch -ua -mobile | ?0 |
190+ | sec -ch -ua -platform | "macOS " |
191+ | Sec -Fetch -Dest | document |
192+ | Sec -Fetch -Mode | navigate |
193+ | Sec -Fetch -Site | none |
194+ | Sec -Fetch -User | ?1 |
195+ | Upgrade -Insecure -Requests | 1 |
196+ | User -Agent | Mozilla /5 .0 (Macintosh ; Intel Mac OS X 10_15_7 ) AppleWebKit /537 .36 (KHTML , like Gecko ) Chrome /128 .0 .0 .0 Safari /537 .36 |
197+ Given the following request cookies:
198+ | name | value |
199+ | app .browse .RecentItemsList | base %3Afolder %7Cportal %3Asite |
200+ | JSESSIONID | 1o50615fgjqlt1wsbsvcubu00m2 |
201+ Given the following request params:
202+ | param | value |
203+ Given the following request path params:
204+ | param | value |
205+ | path | /1727786440404 //icons //favicons //apple -touch -icon -120x120 .png |
206+ # Then log info the request
207+ When the request is sent
208+ # Then log info the response
209+ Then the response should have the following properties:
210+ | property | value |
211+ | status | 404 |
212+
157213Scenario : prefers brotli even though it comes last and have lowest qvalue weight
158214 Given enonic is running in production mode
159215 Given the following resources:
0 commit comments