https://bz.apache.org/bugzilla/show_bug.cgi?id=57601
Bug ID: 57601
Summary: DefaultServlet returns no content when included during
a HEAD request
Product: Tomcat 8
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
During a HEAD request, when a RequestDispatcher include is handled by the
DefaultServlet the content of the static resource is not written to the
HttpServletResponse. If the including servlet has wrapped the response before
performing the include it will not receive the content of the resource.
This causes an issue for the JSTL <c:import> tag when a relative url is used in
order to retrieve the resource, for example for use with the <x:parse> tag. Bug
37466 describes this case.
It is also a problem for other requests where the response headers may be
affected by this lack of content causing different header values to be returned
for GET vs. HEAD methods. For example, the Content-Length header does not
account for bytes that are emitted by the included resource.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]