Apache Struts2 Spring Plugin opens Spring ApplicationContext outside try-with-resources
Original title: Apache Struts2 Spring Plugin Uses a Previously Closed Resource
The Spring Plugin in Apache Struts2 Core opens an ApplicationContext via try-with-resources but continues to use the closed resource, resulting in IllegalStateException.
The Apache Struts2 Spring Plugin opens a Spring ApplicationContext via a try-with-resources block and, outside of said block, then continues to use the closed resource, resulting in an uncaught IllegalStateException. This particular issue prevents proper functionality and indicates poor code quality and code review standards and processes, while not being, itself, otherwise excessively meaningful for a production environment.
- Opens ApplicationContext in try-with-resources
- Uses the closed resource outside the block
- Results in uncaught IllegalStateException
- Vendors
- Apache
- Products
- Struts2 Core
From the original article
Posted by Daniel Owens via Fulldisclosure on Nov 01 Description The Apache Struts2 Spring Plugin opens a Spring `ApplicationContex` via a try-with-resources block and, outside of said block, then continues to use the closed resource, resulting in an uncaught `IllegalStateException`.
seclists.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.