-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: testIssues in the test moduleIssues in the test modulestatus: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: bugA general bugA general bug
Milestone
Description
Dmitry Bedrin opened SPR-13752 and commented
MockHttpServletResponse.setIntHeader("Content-Length", 42) throws an Exception due to a bug in following code:
private boolean setSpecialHeader(String name, Object value) {
if (CONTENT_TYPE_HEADER.equalsIgnoreCase(name)) {
setContentType((String) value);
return true;
}
else if (CONTENT_LENGTH_HEADER.equalsIgnoreCase(name)) {
setContentLength(Integer.parseInt((String) value));
return true;
}
else {
return false;
}
}Affects: 4.1.8, 4.2.3
Issue Links:
- MockHttpServletResponse setIntHeader throws Exception when passed an int value for 'Content-length' [SPR-14016] #18588 MockHttpServletResponse setIntHeader throws Exception when passed an int value for 'Content-length' ("is duplicated by")
Referenced from: pull request #929, and commits a4f5c46, 79ded1c
Backported to: 4.1.9
Metadata
Metadata
Assignees
Labels
in: testIssues in the test moduleIssues in the test modulestatus: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: bugA general bugA general bug