-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
MetaInfConfiguration scanning of TLDs should follow spec #10899
Comments
The relevant section in the Tomcat Jasper implementation that follows this spec too. Our use of |
I think the current behaviour in jetty is correct. We are only doing the scanning of container and Both Jetty and Apache Jasper when looking for
|
... and WebAppContext.extraClasspath JARs (and directories)? |
Yep, we handle those too. |
I believe we're following the spec re scanning for |
Jetty version(s)
12.0.3
Jetty Environment
All environments
Java version/vendor
(use: java -version)
All
OS type/version
All
Description
As pointed out in comment #10889 (comment)
We are scanning for TLDs incorrectly.
We should also be using the Resource API, not Path + Walk (if possible).
For Webapps themselves.
https://github.com/jakartaee/pages/blob/master/spec/src/main/asciidoc/ServerPages.adoc#731-identifying-tag-library-descriptors
It is a recursive scan for anything that ends in
.tld
(case insensitive) from root of webapp resource./WEB-INF/classes/
/WEB-INF/lib/
/
(ie: it's a directory calledfoo.tld/
)/WEB-INF/tags/
(with exception forimplicit.tld
)For JAR files (in webapp classpath).
https://github.com/jakartaee/pages/blob/master/spec/src/main/asciidoc/ServerPages.adoc#721-packaged-tag-libraries
It is a recursive scan for anything that ends in
.tld
(case insensitive) from the/META-INF/
directory in the JAR file.No exclusions or ignored rules for JAR files.
The text was updated successfully, but these errors were encountered: