dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.28k stars 1.58k forks source link

Test.py should not crash if an invalid URL is requested of a test server #34347

Open whesse opened 6 years ago

whesse commented 6 years ago

Unsupported operation: Illegal character in path: <!DOCTYPE

0 _Uri._checkWindowsPathReservedCharacters (dart:core/uri.dart:1714:11)

1 _Uri._toWindowsFilePath (dart:core/uri.dart:2643:7)

2 _Uri.toFilePath (dart:core/uri.dart:2618:22)

3 new File.fromUri (dart:io/file.dart:264:49)

4 TestingServers._handleFileOrDirectoryRequest (file:///C:/b/s/w/ir/tools/testing/dart/http_server.dart:251:22)

#5 TestingServers._startHttpServer..fileHandler (file:///C:/b/s/w/ir/tools/testing/dart/http_server.dart:232:9) #6 DispatchingServer._dispatchRequest (file:///C:/b/s/w/ir/tools/testing/dart/http_server.dart:35:26)
whesse commented 6 years ago

Unhandled exception: Unsupported operation: Illegal character in path: <!DOCTYPE

0 _Uri._checkWindowsPathReservedCharacters (dart:core/uri.dart:1714:11)

1 _Uri._toWindowsFilePath (dart:core/uri.dart:2643:7)

2 _Uri.toFilePath (dart:core/uri.dart:2618:22)

3 new File.fromUri (dart:io/file.dart:264:49)

4 TestingServers._handleFileOrDirectoryRequest (file:///C:/b/s/w/ir/tools/testing/dart/http_server.dart:251:22)

#5 TestingServers._startHttpServer..fileHandler (file:///C:/b/s/w/ir/tools/testing/dart/http_server.dart:232:9) #6 DispatchingServer._dispatchRequest (file:///C:/b/s/w/ir/tools/testing/dart/http_server.dart:35:26)
whesse commented 6 years ago

Unhandled exception: '''' Unsupported operation: Illegal character in path: <!DOCTYPE

0 _Uri._checkWindowsPathReservedCharacters (dart:core/uri.dart:1714:11)

1 _Uri._toWindowsFilePath (dart:core/uri.dart:2643:7)

2 _Uri.toFilePath (dart:core/uri.dart:2618:22)

3 new File.fromUri (dart:io/file.dart:264:49)

4 TestingServers._handleFileOrDirectoryRequest (file:///C:/b/s/w/ir/tools/testing/dart/http_server.dart:251:22)

#5 TestingServers._startHttpServer..fileHandler (file:///C:/b/s/w/ir/tools/testing/dart/http_server.dart:232:9) #6 DispatchingServer._dispatchRequest (file:///C:/b/s/w/ir/tools/testing/dart/http_server.dart:35:26) ''''
whesse commented 6 years ago

Unhandled exception:

Unsupported operation: Illegal character in path: <!DOCTYPE 
""""
    #0      _Uri._checkWindowsPathReservedCharacters (dart:core/uri.dart:1714:11)
    #1      _Uri._toWindowsFilePath (dart:core/uri.dart:2643:7)
#2      _Uri.toFilePath (dart:core/uri.dart:2618:22)
#3      new File.fromUri (dart:io/file.dart:264:49)
#4      TestingServers._handleFileOrDirectoryRequest (file:///C:/b/s/w/ir/tools/testing/dart/http_server.dart:251:22)
<asynchronous suspension>
#5      TestingServers._startHttpServer.<anonymous closure>.fileHandler (file:///C:/b/s/w/ir/tools/testing/dart/http_server.dart:232:9)
#6      DispatchingServer._dispatchRequest (file:///C:/b/s/w/ir/tools/testing/dart/http_server.dart:35:26)