-
Notifications
You must be signed in to change notification settings - Fork 366
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
Invalid version attribute in esapi.tld within esapi-2.6.0.0.jar causes deployment failure. #866
Comments
So I just spun up a demo project and it ran just fine. From scratch, the only thing I needed to add was ESAPI.properties and validation.properties into src/main/resources/esapi into the main project structure before running. Can you share a demo project that reproduces the result you're getting? |
@kwwall validated that the esapi.tld we have checked in doesn't have the "2.x" marking. |
Wouldn't the esapi-2.6.0.0-jakarta.jar need to be used with Tomcat 10, since I thought that Tomcat 10 used the new Jarkata Servlet API rather than the older Java EE Servlet API? That may not be the root cause of this problem, but I think that would surely cause the tag library to fail if the regular ESAPI jar were used with Tomcat 10. |
Also
Actually, it apparently does: So the question is, what SHOULD this be set to? And does it need to be different for Java EE vs Jakarta? |
I was the last person to touch that file back in '17. But that was simply moving it from an old location to the current one in META-INF/ |
Just to make sure I'm not insane, I'm up to date with commit history. Last commit was 11-30-2024 with
|
yes, so what we have to change this to decimal because we get severity in catalina.logs.Please help us to resolve this. Attaching the logs ... org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/usr/mware/jwsAppDetails/vdcs-api/webapps/vdcs-api.war] |
@Afridi76320 - We can change it, but:
In the meantime, I'd recommend just unjaring it, updating the tld yourself, and rejarring it, as our next release probably is still a few months away. (It's a minor PITA to do a release.) |
Description
While deploying a web application using
esapi-2.6.0.0.jar
, the following error is encountered:Steps to Reproduce
esapi-2.6.0.0.jar
in theWEB-INF/lib
folder.Expected Behavior
The application should deploy successfully without errors.
Actual Behavior
Deployment fails due to an invalid
version
attribute value inesapi.tld
. The value2.x
is not a valid decimal format.Suggested Fix
Update the
esapi.tld
file withinesapi-2.6.0.0.jar
to use a valid decimal value for theversion
attribute. For example, replace2.x
with2.0
.Environment
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.The text was updated successfully, but these errors were encountered: