-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Request with HttpVersion > 3 and RequestVersionOrHigher policy sent as H/3 request #72185
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsDescriptionRequest message with HttpVersion higher than currently supported 3.0 is not checked on the HttpVersionPolicy. In case when it is set to RequestVersionOrHigher we get unexpected behavior -- request is treated as H/3 request. Reproduction Steps
Expected behaviorThrow request version cannot establish Actual behaviorNo exception from HttpConnection pool and sent via H/3 connection Regression?No response Known WorkaroundsNo response ConfigurationNo response Other informationNo response
|
Low priority, not big impact on customers, moving to 8.0 due to time restrictions. |
Should we check the request version against known versions and allow only that? I.e.:
Question is whether that could break someone. For instance, someone asking for 2.5 and getting HTTP/2. If we'd chose to go the strict way, we should probably get it in early in the release to see if someone gets borked by it. |
Triage: we don't have any customer reports complaining about this, not critical for 8.0. We would take a community PR though. |
Nothing is disallowing setting an invalid version in HTTP message, you can even form a http message with an invalid version and send it with curl. IMO how to handle the version is up to the HTTP handler implementation, it shouldn't be restricted on higher levels. |
Description
Request message with HttpVersion higher than currently supported 3.0 is not checked on the HttpVersionPolicy. In case when it is set to RequestVersionOrHigher we get unexpected behavior -- request is treated as H/3 request.
Reproduction Steps
Expected behavior
Throw request version cannot establish
Actual behavior
No exception from HttpConnection pool and sent via H/3 connection
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: