-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multipart/byterange output is invalid to RFC7233 #3916
Comments
Wow - the clients are being very forgiving not to have broken on that a long time ago! |
To be fair, multi range byte requests are probably pretty rare. |
Signed-off-by: Sean Bright <sean.bright@gmail.com>
This issue has been automatically marked as stale because it has been a full year without activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
+ Updating existing testcase Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
…ut-boundary Issue #3916 - Fix whitespace between boundary and part headers
Merged PR #5102 |
This fix broke several tests in DefaultServletTest:
|
@joakime nudge.... build is broken |
This is the heart of the issue ... String rawResponse = localConnector.getResponse(rawRequest);
HttpTester.Response response = HttpTester.parseResponse(rawResponse);
assertThat(response.get("Content-Length"), is("" + response.getContent().length); That isn't true in some test cases. In one testcase ...
But the Response.getContent().length() is 243 In a different testcase ...
But the Response.getContent().length() is 372 I have no idea how eliminating 1 set of "\r\n" during a OutputStream.write() messed up the calculation of Content-Length during the generation of the response header. |
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Pushed fix (2206b3e) to |
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Closing with commit dcf867c |
The output of our
ResourceService
formultipart/byterange
responses is invalid.Discovered while testing PR #3910 for Issue #3840
Example from Jetty 9.2.28.v20190418 server with WebAppContext and static content ...
Request
Response
According to https://tools.ietf.org/html/rfc7233 there should be no extra lines after the boundary and before the part headers.
The text was updated successfully, but these errors were encountered: