diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2026-06-16 18:40:39 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2026-06-16 19:46:53 +0900 |
| commit | 8359d5291faabf8d0e3bf9db958555e7831442cd (patch) | |
| tree | d546132df28497bdde53322ab41dcd5cad417077 | |
| parent | 670a752c6a68c931a94018683e801588c9a730c2 (diff) | |
Omit WEBrick test_directory_traversal on Windowsruby_3_3
`/..%5c../` resolves the backslash as a path separator on Windows, so the
vendored FileHandler returns 404 instead of the expected 200 and logs a
nondisclosure warning, breaking the daily Windows snapshot CI. This vendored
test only remains on ruby_3_3; 3.4 and later removed it together with WEBrick.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
| -rw-r--r-- | tool/test/webrick/test_filehandler.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/test/webrick/test_filehandler.rb b/tool/test/webrick/test_filehandler.rb index 9c5b83e300..7ed885b008 100644 --- a/tool/test/webrick/test_filehandler.rb +++ b/tool/test/webrick/test_filehandler.rb @@ -216,6 +216,7 @@ class WEBrick::TestFileHandler < Test::Unit::TestCase def test_directory_traversal return if File.executable?(__FILE__) # skip on strange file system + omit "`..%5c..' (backslash) is resolved as a path separator on Windows" if windows? config = { :DocumentRoot => File.dirname(__FILE__), } log_tester = lambda {|log, access_log| |
