Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tests-Only]make escaping/encoding case insensitive #38374

Merged
merged 1 commit into from
Feb 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ Feature: get file properties
Then the properties response should contain an etag
And the value of the item "//d:response/d:href" in the response to user "Alice" should match "/remote\.php\/<expected_href>/"
Examples:
| dav_version | file_name | expected_href |
| old | /C++ file.cpp | webdav\/C%2b%2b%20file\.cpp |
| old | /file #2.txt | webdav\/file%20%232\.txt |
| old | /file ?2.txt | webdav\/file%20%3f2\.txt |
| old | /file &2.txt | webdav\/file%20%262\.txt |
| new | /C++ file.cpp | dav\/files\/%username%\/C%2b%2b%20file\.cpp |
| new | /file #2.txt | dav\/files\/%username%\/file%20%232\.txt |
| new | /file ?2.txt | dav\/files\/%username%\/file%20%3f2\.txt |
| new | /file &2.txt | dav\/files\/%username%\/file%20%262\.txt |
| dav_version | file_name | expected_href |
| old | /C++ file.cpp | webdav\/C%2[bB]%2[bB]%20file\.cpp |
| old | /file #2.txt | webdav\/file%20%232\.txt |
| old | /file ?2.txt | webdav\/file%20%3[fF]2\.txt |
| old | /file &2.txt | webdav\/file%20%262\.txt |
| new | /C++ file.cpp | dav\/files\/%username%\/C%2[bB]%2[bB]%20file\.cpp |
| new | /file #2.txt | dav\/files\/%username%\/file%20%232\.txt |
| new | /file ?2.txt | dav\/files\/%username%\/file%20%3[fF]2\.txt |
| new | /file &2.txt | dav\/files\/%username%\/file%20%262\.txt |

@issue-ocis-reva-214
Scenario Outline: Do a PROPFIND of various folder names
Expand All @@ -54,21 +54,21 @@ Feature: get file properties
And there should be an entry with href matching "/remote\.php\/<expected_href>\/file1.txt/" in the response to user "Alice"
And there should be an entry with href matching "/remote\.php\/<expected_href>\/file2.txt/" in the response to user "Alice"
Examples:
| dav_version | folder_name | expected_href |
| old | /upload | webdav\/upload |
| old | /strängé folder | webdav\/str%c3%a4ng%c3%a9%20folder |
| old | /C++ folder | webdav\/C%2b%2b%20folder |
| old | /नेपाली | webdav\/%e0%a4%a8%e0%a5%87%e0%a4%aa%e0%a4%be%e0%a4%b2%e0%a5%80 |
| old | /folder #2.txt | webdav\/folder%20%232\.txt |
| old | /folder ?2.txt | webdav\/folder%20%3f2\.txt |
| old | /folder &2.txt | webdav\/folder%20%262\.txt |
| new | /upload | dav\/files\/%username%\/upload |
| new | /strängé folder | dav\/files\/%username%\/str%c3%a4ng%c3%a9%20folder |
| new | /C++ folder | dav\/files\/%username%\/C%2b%2b%20folder |
| new | /नेपाली | dav\/files\/%username%\/%e0%a4%a8%e0%a5%87%e0%a4%aa%e0%a4%be%e0%a4%b2%e0%a5%80 |
| new | /folder #2.txt | dav\/files\/%username%\/folder%20%232\.txt |
| new | /folder ?2.txt | dav\/files\/%username%\/folder%20%3f2\.txt |
| new | /folder &2.txt | dav\/files\/%username%\/folder%20%262\.txt |
| dav_version | folder_name | expected_href |
| old | /upload | webdav\/upload |
| old | /strängé folder | webdav\/str%[cC]3%[aA]4ng%[cC]3%[aA]9%20folder |
| old | /C++ folder | webdav\/C%2[bB]%2[bB]%20folder |
| old | /नेपाली | webdav\/%[eE]0%[aA]4%[aA]8%[eE]0%[aA]5%87%[eE]0%[aA]4%[aA]a%[eE]0%[aA]4%be%[eE]0%[aA]4%b2%[eE]0%[aA]5%80 |
| old | /folder #2.txt | webdav\/folder%20%232\.txt |
| old | /folder ?2.txt | webdav\/folder%20%3[fF]2\.txt |
| old | /folder &2.txt | webdav\/folder%20%262\.txt |
| new | /upload | dav\/files\/%username%\/upload |
| new | /strängé folder | dav\/files\/%username%\/str%[cC]3%[aA]4ng%[cC]3%[aA]9%20folder |
| new | /C++ folder | dav\/files\/%username%\/C%2[bB]%2[bB]%20folder |
| new | /नेपाली | dav\/files\/%username%\/%[eE]0%[aA]4%[aA]8%[eE]0%[aA]5%87%[eE]0%[aA]4%[aA]a%[eE]0%[aA]4%be%[eE]0%[aA]4%b2%[eE]0%[aA]5%80 |
| new | /folder #2.txt | dav\/files\/%username%\/folder%20%232\.txt |
| new | /folder ?2.txt | dav\/files\/%username%\/folder%20%3[fF]2\.txt |
| new | /folder &2.txt | dav\/files\/%username%\/folder%20%262\.txt |

Scenario Outline: Do a PROPFIND of various files inside various folders
Given using <dav_version> DAV path
Expand Down