-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Request error context is not reset #5454
Comments
gregw
added a commit
that referenced
this issue
Oct 16, 2020
Reset the error context when a request is recycled.
Thanks for the report. The issue is not a race, simply that we do not reset the errorContext when a request is recycled. This is normally not a problem as errors frequently close the connection and thus the request is not recycled. But it can be reused in some circumstances and I have reproduced and fixed. PR coming.... |
joakime
pushed a commit
that referenced
this issue
Oct 16, 2020
Reset the error context when a request is recycled.
joakime
added a commit
that referenced
this issue
Oct 16, 2020
…-fixed Fixes #5454 Reset Error Context
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jetty 9.4.22.v20191022
Java openjdk 11.0.8 2020-07-14 LTS
OS CentOS Linux 7
I'm using jetty with pax-web 7.2.14 (Karaf 4.2.8).
I created bundle fragment and registered custom error handler using jetty.xml:
In most cases it works correctly, however there is a race condition: sometimes I receive default jetty error page.
Scenario:
GET /applications/application/999999
Expected:
com.company.jetty.error.handler.ServerErrorPageHandler
is returnedActual:
org.eclipse.jetty.servlet.ErrorPageErrorHandler
is returned.During debugging I noticed that
org.eclipse.jetty.server.Request#_errorContext
is not null whileorg.eclipse.jetty.server.Request#_context
andorg.eclipse.jetty.server.Request#_contextPath
are null.Path of the
_errorContext
is a random path of the one of registered applications (it's not /applications/application/999999 but for example /platform/api).There is no
_errorContext
cleanup inorg.eclipse.jetty.server.Request#setContext
method.Is there a defect with
_errorContext
cleanup?The text was updated successfully, but these errors were encountered: