Skip to content
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

Issue #8578 - getRequestURL can append "null" if getRequestURI is unspecified in an authority-form request-target #8579

Merged
merged 3 commits into from
Sep 13, 2022

Conversation

joakime
Copy link
Contributor

@joakime joakime commented Sep 9, 2022

When working with CONNECT headers, the old implementation of HttpURI.getPath() would return the authority component.
The changes in #8014 broke this backward compatibility behavior, causing unintended behaviors on HttpServletRequest.getRequestURL() and HttpServletRequest.getRequestURI().

Signed-off-by: Joakim Erdfelt joakim.erdfelt@gmail.com

…URI when working with CONNECT method

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
@joakime joakime added Bug For general bugs on Jetty side Sponsored This issue affects a user with a commercial support agreement labels Sep 9, 2022
@joakime joakime requested a review from sbordet September 9, 2022 20:01
@joakime joakime self-assigned this Sep 9, 2022
@joakime joakime mentioned this pull request Sep 9, 2022
47 tasks
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
@joakime joakime changed the title Issue #8578 - restore backward compat of getRequestURL and getRequestURI when working with CONNECT method Issue #8578 - getRequestURL can append "null" if getRequestURI is unspecified (like with CONNECT method) Sep 13, 2022
@joakime joakime changed the title Issue #8578 - getRequestURL can append "null" if getRequestURI is unspecified (like with CONNECT method) Issue #8578 - getRequestURL can append "null" if getRequestURI is unspecified in an authority-form request-target Sep 13, 2022
@joakime joakime merged commit b32d739 into jetty-9.4.x Sep 13, 2022
@joakime joakime deleted the fix/jetty-9.4.x-abstractproxy-null-request-url branch September 13, 2022 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For general bugs on Jetty side Sponsored This issue affects a user with a commercial support agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants