-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Caching of open api context is broken in jaxrs2 OpenApiResource #2977
Comments
When JaxrsOpenApiContextBuilder creates XmlWebOpenApiContext, it should set ctxId. It is used as a key for OpenApiContext caching. As it currently stands, the code in JaxrsOpenApiContextBuilder is using ctxId derived from the servlet name to lookup OpenApiContext, while XmlWebOpenApiContext created by the builder always cached under a default context id. |
I ran into the same problem. If a context id is not provided, it should default to use the value from ServletConfigContextUtils.getContextIdFromServletConfig(servletConfig). This default value will allow it to work with OpenApiResource and AcceptHeaderOpenApiResource. This will also allow the context id to be set as a servlet init parameter. |
ref #2977 - fix ctxId in context, fix reader usage
No description provided.
The text was updated successfully, but these errors were encountered: