From 4e7044f915c130514c2c14a6e7dc32a6272b109c Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Fri, 5 Jul 2024 12:14:58 +0200 Subject: [PATCH] test: fix content-disposition in acceptance tests --- .../downloadFile.feature | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/acceptance/features/coreApiWebdavOperations/downloadFile.feature b/tests/acceptance/features/coreApiWebdavOperations/downloadFile.feature index e46d064e6c..1d70c2275e 100644 --- a/tests/acceptance/features/coreApiWebdavOperations/downloadFile.feature +++ b/tests/acceptance/features/coreApiWebdavOperations/downloadFile.feature @@ -270,7 +270,7 @@ Feature: download file Then the HTTP status code should be "200" And the following headers should be set | header | value | - | Content-Disposition | attachment; filename*=UTF-8''; filename="" | + | Content-Disposition | attachment; filename*=UTF-8''; filename="" | | Content-Security-Policy | child-src 'self'; connect-src 'self'; default-src 'none'; font-src 'self'; frame-ancestors 'self'; frame-src 'self' blob: https://embed.diagrams.net/; img-src 'self' data: blob:; manifest-src 'self'; media-src 'self'; object-src 'self' blob:; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline' | | X-Content-Type-Options | nosniff | | X-Frame-Options | SAMEORIGIN | @@ -279,16 +279,16 @@ Feature: download file | X-XSS-Protection | 1; mode=block | And the downloaded content should be "test file" Examples: - | dav-path-version | file-name | - | old | textfile.txt | - | old | comma%2C.txt | - | old | %27quote%27single%27.txt | - | new | textfile.txt | - | new | comma%2C.txt | - | new | %27quote%27single%27.txt | - | spaces | textfile.txt | - | spaces | comma%2C.txt | - | spaces | %27quote%27single%27.txt | + | dav-path-version | file-name | encoded-file-name | + | old | textfile.txt | textfile.txt | + | old | comma,.txt | comma%2C.txt | + | old | 'quote'single'.txt | %27quote%27single%27.txt | + | new | textfile.txt | textfile.txt | + | new | comma,.txt | comma%2C.txt | + | new | 'quote'single'.txt | %27quote%27single%27.txt | + | spaces | textfile.txt | textfile.txt | + | spaces | comma,.txt | comma%2C.txt | + | spaces | 'quote'single'.txt | %27quote%27single%27.txt | @smokeTest @issue-8361 @skipOnReva Scenario Outline: downloading a file should serve security headers (file with doubel quotes) @@ -298,7 +298,7 @@ Feature: download file Then the HTTP status code should be "200" And the following headers should be set | header | value | - | Content-Disposition | attachment; filename*=UTF-8''%22quote%22double%22.txt; filename=""quote"double".txt" | + | Content-Disposition | attachment; filename*=UTF-8''%22quote%22double%22.txt; filename=""quote"double".txt" | | Content-Security-Policy | child-src 'self'; connect-src 'self'; default-src 'none'; font-src 'self'; frame-ancestors 'self'; frame-src 'self' blob: https://embed.diagrams.net/; img-src 'self' data: blob:; manifest-src 'self'; media-src 'self'; object-src 'self' blob:; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline' | | X-Content-Type-Options | nosniff | | X-Frame-Options | SAMEORIGIN |