-
Bug
-
Resolution: Low Engagement
-
Low
-
None
-
2.9.1, 2.10.1
-
None
-
3
-
Severity 3 - Minor
-
0
-
Trying to use a plugin that uses spring-mvc might cause the following exception:
[INFO] [talledLocalContainer] java.lang.ClassCastException: org.springframework.web.context.request.async.WebAsyncManager cannot be cast to org.springframework.web.context.request.async.WebAsyncManager
[INFO] [talledLocalContainer] at org.springframework.web.context.request.async.WebAsyncUtils.getAsyncManager(WebAsyncUtils.java:46)
[INFO] [talledLocalContainer] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:960)
[INFO] [talledLocalContainer] at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
This is due to spring-mvc setting a request attribute with the WebAsyncManager in core (using Spring3), and spring request processing in the plugin trying to reuse it and cast it to the Spring4 version, which fails.
A workaround is to declare a servlet-filter module in the plugin that will handle cleaning the request attribute before further processing:
@Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { if (request.getAttribute(WebAsyncUtils.WEB_ASYNC_MANAGER_ATTRIBUTE) != null) { request.setAttribute(WebAsyncUtils.WEB_ASYNC_MANAGER_ATTRIBUTE, null); }
[CWD-4770] Trying to use a plugin using spring-mvc might fail with a classcast exception
Resolution | New: Low Engagement [ 10300 ] | |
Status | Original: Long Term Backlog [ 12073 ] | New: Closed [ 6 ] |
Labels | Original: ecosystem plugins spring | New: cleanup-seos-fy25 ecosystem plugins spring |
UIS | Original: 4 | New: 0 |
UIS | New: 4 |
Epic Link | Original: CWD-4701 [ 598559 ] |
Workflow | Original: Simplified Crowd Development Workflow v2 - restricted [ 1588800 ] | New: JAC Bug Workflow v3 [ 3365053 ] |
Status | Original: Verified [ 10005 ] | New: Long Term Backlog [ 12073 ] |
Support reference count | New: 3 |
Symptom Severity | Original: Minor [ 14432 ] | New: Severity 3 - Minor [ 15832 ] |
Symptom Severity | New: Minor [ 14432 ] |
Hi,
At Atlassian, our goal is to ensure we’re providing the best experience for our customers. With our new Data Center strategy, Atlassian's focus is on security, compliance, and performance and is a key driver in prioritizing bugs. Closing the bugs that do not fall into those categories will allow us to focus on the ones in the most current versions of our products.
This bug is being closed due to a lack of engagement in the last four years, including no new watchers, votes, or comments; this inactivity suggests a low impact.
Please note the comments on this thread are not being monitored.
You can read more about our bug fix policy here and how we prioritize bugs.
To learn more about our recent investments in Crowd Data Center, please check our public roadmap.
Kind regards,
Crowd Data Center