You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/10/08 13:57:30 UTC

DO NOT REPLY [Bug 50059] New: Resources are not served from /WEB-INF/lib/{*.jar}/META-INF/resources if metadata-complete="true" is set in web.xml

https://issues.apache.org/bugzilla/show_bug.cgi?id=50059

           Summary: Resources are not served from
                    /WEB-INF/lib/{*.jar}/META-INF/resources if
                    metadata-complete="true" is set in web.xml
           Product: Tomcat 7
           Version: 7.0.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: kiralyattila.hu@gmail.com


To reproduce:
1. Make a Servlet 3.0 webapp (lets name it foo) with metadata-complete="true"
attribute set on the web-app element in the /WEB-IBNF/web.xml.
2. Make a jar holding a single /META-INF/resources/index.html file. The jar
should be placed in /WEB-INF/lib (lets name it bar.jar).
3. Start the web app in Tomcat 7.0.2 and in browser go to
http://localhost:8080/foo/index.html.

Expected result: 200 response and index.html served.
Actual result: 404

If you modify the web.xml to metadata-complete="false" and restart the app now
/foo/index.html will respond as expected.

I tried the same webapp with Glassfish v3.0.1 and it works as expected
regardless what I set in metadata-complete attribute.

I made a quick look in the servlet 3.0 spec and as far as I can see
metadata-complete only regulates annotation and web fragment processing. In the
example bar.jar has nothing to do with annotations and it is not a web fragment
either but it is still handled differently depending on the metadata-complete
attribute.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 50059] Resources are not served from /WEB-INF/lib/{*.jar}/META-INF/resources if metadata-complete="true" is set in web.xml

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50059

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-10-08 17:32:39 EDT ---
Thanks for the report. Fixed in trunk and will be in 7.0.4 onwards.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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