You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have some legacy urls in our client which has a // empty segment in the request URI. We try to by pass the 400 bad request message by configuring<Set name="uriCompliance"><Call class="org.eclipse.jetty.http.UriCompliance" name="from"><Arg><Property name="jetty.httpConfig.uriCompliance" default="LEGACY"/></Arg></Call></Set>
in jetty.xml, but the exception is still thrown because when trying to create the
protected ServletApiRequest newServletApiRequest()
{
if (getHttpURI().hasViolations() && !getServletChannel().getServletContextHandler().getServletHandler().isDecodeAmbiguousURIs())
{
// TODO we should check if current compliance mode allows all the violations?
for (UriCompliance.Violation violation : getHttpURI().getViolations())
{
if (UriCompliance.AMBIGUOUS_VIOLATIONS.contains(violation))
return new ServletApiRequest.AmbiguousURI(this);
}
}
return new ServletApiRequest(this);
}
It always checks if there's a violation. How to reproduce?
Access /webapp//index.html
The text was updated successfully, but these errors were encountered:
Jetty version(s)
12.0.6
Jetty Environment
ee10
Java version/vendor
(use: java -version)
openjdk 17
OS type/version
ubuntu 22.04
Description
We have some legacy urls in our client which has a // empty segment in the request URI. We try to by pass the 400 bad request message by configuring
<Set name="uriCompliance"><Call class="org.eclipse.jetty.http.UriCompliance" name="from"><Arg><Property name="jetty.httpConfig.uriCompliance" default="LEGACY"/></Arg></Call></Set>
in jetty.xml, but the exception is still thrown because when trying to create the
protected ServletApiRequest newServletApiRequest()
{
if (getHttpURI().hasViolations() && !getServletChannel().getServletContextHandler().getServletHandler().isDecodeAmbiguousURIs())
{
// TODO we should check if current compliance mode allows all the violations?
It always checks if there's a violation.
How to reproduce?
Access /webapp//index.html
The text was updated successfully, but these errors were encountered: