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
Fix broken URI behaviors #3140
Fix broken URI behaviors #3140
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #3140 +/- ##
==========================================
+ Coverage 76.75% 76.79% +0.03%
==========================================
Files 211 211
Lines 8020 8084 +64
==========================================
+ Hits 6156 6208 +52
- Misses 1864 1876 +12
|
ac91cbb
to
63b7f60
Compare
63b7f60
to
6228ad3
Compare
56d63b9
to
a99f79e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me but I'd wait for @0xTim too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few queries but overall looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just double checking we have tests that cover all the reported bugs. It looks like it but double checking
We do - there were three actual issues filed plus the one I opened as a central point of reference. All three original tickets have new individual tests marked with the issue numbers, plus the many additional tests of URI that were added in the original URI PR (and updated to be correct in this one). |
* main: Patch configuration and log actual port on startup (vapor#3160) Update provider tests to 5.10 (vapor#3178) Migrate to Async NIOFileIO APIs (vapor#3167) Removed streamFile deprecation + deactivated advancedETagComparison by default (vapor#3177) Remove HeadResponder (vapor#3147) Advanced ETag Comparison now supported (vapor#3015) Enabled Request Decompression By Default (vapor#3175) HTTP2 Response Compression/Request Decompression (vapor#3126) Don't set ignore status for SIGTERM and SIGINT on Linux (vapor#3174) Fix typos across the codebase (vapor#3162) Fix some Sendable warnings on 5.10 (vapor#3158) Allow `HTTPServer`'s configuration to be dynamically updatable (vapor#3132) Fix issue when client disconnects midway through a stream (vapor#3102) Fix handling of "flag" URL query params (vapor#3151) Bump the dependencies group with 1 update (vapor#3148) Merge Async Tests (vapor#3141) Fix URI handling with multiple slashes and variable components. (vapor#3143) Fix broken URI behaviors (vapor#3140) # Conflicts: # Package.swift
These changes are now available in 4.92.0
Numerous issues have arisen with the changes made to
URI
as a result of the fix for GHSA-r6r4-5pr8-gjcp. This update fixes all known issues and restores several changedURI
behaviors (although, quite deliberately, not all of them), including new tests. Fixes #3133, #3135, #3137, and #3138.Also addresses
Sendable
warnings inContentEncoder
,ContentDecoder
,ContentContainer
,PlaintextDecoder
,PlaintextEncoder
,URLQueryDecoder
,URLQueryEncoder
,URLQueryContainer
,URLEncodedFormDecoder
, andURLEncodedFormEncoder
.Shoutout to @weissi, @grahamburgsma, and @finestructure for their help tracking down the various problems, thank you all!