-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
BaseRequest.url passes the host and port to URL.build
when the port is included in the host header (non-default port) -- fixed in 3.10.7
#9307
Comments
Fix for Home Assistant is home-assistant/core#126882 |
This is messy because downstream expects the port in a lot of places to get the host
Its also used for |
Should the |
I can't imagine we'll make another release without solving the issue, so updating the pin is not going to help. |
The problem is that, being |
I think we’ll do a new release as soon as we can fix this one. I expect I’ll have time this weekend to make that happen. |
#9318 will fix it for 3.10 The caveat emptor is the fix makes the url call a lot slower so if it matters for you when we ship the fix I'd update yarl to 1.13.1 once its available as it will shave off most of the performance slowdown , however if you aren't fetching the url on every request you'll probably never notice. At this point everything is worked out and the hold up is waiting on GitHub CI runners |
…t when the host contains a port or IPv6 address (#9319) Co-authored-by: J. Nick Koston <[email protected]> fixes #9307
…t when the host contains a port or IPv6 address (#9318) Co-authored-by: J. Nick Koston <[email protected]> fixes #9307
I was hoping to release this fix today in 3.10.7 but docker registry is down so the release won't publish |
URL.build
when the port is included in the host header (non-default port)URL.build
when the port is included in the host header (non-default port) -- fixed in 3.10.7
request.host can be
127.0.0.1:8123
aiohttp/aiohttp/web_request.py
Line 447 in 0b8be7f
yarl 1.13.0+ caught this because host is now validated via aio-libs/yarl#954
Pinning yarl to < 1.13.0 will also prevent the issue since the validation doesn't happen until that version.
The text was updated successfully, but these errors were encountered: