https://issues.apache.org/bugzilla/show_bug.cgi?id=54262
--- Comment #1 from Konstantin Kolinko <knst.koli...@gmail.com> ---
Created attachment 29736
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29736&action=edit
resources1.jar

Confirming.

Steps to reproduce with 7.0.34:
1. Download attached resources1.jar and put it into
webapps/examples/WEB-INF/lib

The file is based on test/webapp-3.0-fragments/WEB-INF/lib/resources.jar from
Tomcat sources. I
a) removed all resources except "resourceA.jsp" and
b) declared an instance of HelloWorldServlet in web-fragment.xml.

2. Edit webapps/examples/WEB-INF/web.xml:
a) change metadata-complete attribute s/true/false/
b) add <absolute-ordering />

3. Start Tomcat.
4. Actual result: The following two URLs work:
[1] http://localhost:8080/examples/resourceA.jsp
[2] http://localhost:8080/examples/resources1/HelloWorldExample

Expected result: [2] should return 404 as web-fragment.xml should be ignored
and the servlet mapping declared there should be ignored.

<quote from="Servet Spec 3.0 Rev a - page #67 (89/230)">
1.d. (..) If the
 <absolute-ordering> element does not contain an <others/> element,
 any web-fragment not specifically mentioned within <name /> elements
 MUST be ignored. (...)
</quote>

Regarding [1], I do not see any specific reference that such exclusion affects
static resources in META-INF/resources. Thus I think that the expected
behaviour of [1] is to display resourcesA.jsp page. 7.0.34 behaves correctly
here.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to