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
Allow ResourceService sendWelcome to honor isRelativeRedirect #7512
Comments
@joakime can you explain why? If the ResourceService (and other redirecting handlers (eg ContextHandler)) produce relative links, then the resulting location header will be absolute or not entirely depending on the |
@gregw, the proposal was to move the logic of whether to make the redirect location full (based on |
@jluehe What is the isue with allowing relative paths to be passed? Is it that when converted to absolute URIs within I'm concerned that is we scatter code that checks |
This issue has been automatically marked as stale because it has been a |
I'll double check this |
Jetty version(s)
9.4.42+
Java version/vendor
(use: java -version)
All
OS type/version
All
Description
The changes introduced in issue #6883 made the call to
HttpServletResponse.sendRedirect(String path)
use relative paths in most static content cases (that don't happen in a dispatch forward/include, and session in url, path params, query merging, etc).Then relying on the HttpConfiguration.isRelativeRedirectAllowed() to determine behavior (or not).
The creation of the welcome redirect is no longer being created as an absolute location, I think it should honor the HttpConfiguration.isRelativeRedirectAllowed() in this case and produce an absolute location when that configuration is set appropriately.
The text was updated successfully, but these errors were encountered: