downport some fixes to 5.1 - #131
Merged
Merged
Conversation
According to the OpenAPI specification the URL of a Server Object may be relative, to indicate that the host location is relative to the location where the document containing the Server Object is being served. ServerImpl rejected such URLs because java.net.URL requires a protocol. Parse the URL with java.net.URI instead and only apply the strict java.net.URL validation to absolute URLs, so the existing behaviour for absolute URLs is unchanged. Fixes #99 (cherry picked from commit d3f439d)
…ontent The multipart body was decoded into a UTF-8 String before the parts were split. Byte sequences that are invalid in UTF-8 were replaced with the replacement character during that decoding, and stripping the raw parts also removed whitespace bytes from the beginning and end of binary part bodies. Both corrupted binary file uploads. Split the multipart body on byte level instead. Only the header section of a part is decoded into a String, and the line break preceding a delimiter is treated as part of the delimiter, so a part body is passed through byte for byte. Fixes #85 Fixes #119 (cherry picked from commit 8d164c7)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.