-
Notifications
You must be signed in to change notification settings - Fork 594
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
Incorrect request URIs with HTTP/2 #1274
Comments
Thanks for reporting! Entire weeks following this one we'll work on http so will fix this then :) |
OK thanks, someone on the Play team may have time but we can discuss how we're placed when you have time. By the way, I've traced the error to the val uri = Uri(scheme, authority).withPath(Uri.Path(path)) Unfortunately the value of The val allHeaders0 =
if (rawRequestUriHeader) `Raw-Request-URI`(uriBytes.decodeString(HttpCharsets.`US-ASCII`.nioCharset)) :: headers
else headers E.g. something like: if (rawRequestUriHeader) headers += `Raw-Request-URI`(scheme + "://" + authority + pathAndQuery) |
Thanks for bringing it up, @richdougherty.
Yes, from a cursory look into it that might be the best solution. |
Hi, just wondering if you've had a chance to look at it? We might be able to look at it soon if you're too busy. |
@richdougherty, sorry, no didn't get to it so far. Would be nice if you could help us out with that one. |
OK, I think I should have a chance too look at it soon - hopefully next week :) |
This issue occurs with Play 2.6.1 which uses Akka HTTP 10.0.9. A Play user has reported an issue with handling requests with query parameters in the path, e.g.
/test?param=s
. Issue: playframework/playframework#7596http://localhost:9000/test?param=s
). When served with HTTP/2 the request URI is incorrect: the query part of the URI is included in the URI path (https://localhost:9443/test%3Fparam=s
).Raw-Request-URI
header is correctly provided with the HTTP/1 request, but not with the HTTP/2 request.You can see debug output showing the
HttpRequest
values here: playframework/playframework#7596 (comment).The text was updated successfully, but these errors were encountered: