https://bz.apache.org/bugzilla/show_bug.cgi?id=65851
Bug ID: 65851
Summary: DefaultServlet.checkIfNoneMatch return 400
Product: Tomcat 8
Version: 8.5.75
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ----
If header contains If-None-Match,response will send
error(HttpServletResponse.SC_BAD_REQUEST),because EntityTag.compareEntityTag
always false
examples:
If-None-Match: W/"43812-1643093925000"
// RFC 7232 requires weak comparison for If-None-Match
headers
Boolean matched = EntityTag.compareEntityTag(new
StringReader(headerValue), true, resourceETag);
if (matched == null) {
if (debug > 10) {
log("DefaultServlet.checkIfNoneMatch: Invalid
header value [" + headerValue + "]");
}
response.sendError(HttpServletResponse.SC_BAD_REQUEST);
return false;
}
--
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]