esapi-java-legacy
esapi-java-legacy copied to clipboard
Invalid version attribute in esapi.tld within esapi-2.6.0.0.jar causes deployment failure.
Description
While deploying a web application using esapi-2.6.0.0.jar, the following error is encountered:
Steps to Reproduce
- Deploy a web application that includes
esapi-2.6.0.0.jarin theWEB-INF/libfolder. - Start the Tomcat server.
- Observe the deployment logs.
Expected Behavior
The application should deploy successfully without errors.
Actual Behavior
Deployment fails due to an invalid version attribute value in esapi.tld. The value 2.x is not a valid decimal format.
Suggested Fix
Update the esapi.tld file within esapi-2.6.0.0.jar to use a valid decimal value for the version attribute. For example, replace 2.x with 2.0.
Environment
- Tomcat Version: [10.1.34]
- ESAPI Version: 2.6.0.0
- Java Version: [java17]
- Operating System: [MAC]
Impact
This issue prevents the deployment of applications that depend on the ESAPI library, making the library unusable in its current state.
Additional Information
This issue is reproducible on multiple environments. A quick workaround involves extracting the JAR, editing the esapi.tld file, and re-packaging the JAR. However, an official fix is preferred.