Skip to content

downport some fixes to 5.1 - #131

Merged
pk-work merged 2 commits into
5.1from
downport_51
Aug 9, 2026
Merged

downport some fixes to 5.1#131
pk-work merged 2 commits into
5.1from
downport_51

Conversation

@pk-work

@pk-work pk-work commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

jnbdz added 2 commits August 9, 2026 19:02
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)
@pk-work
pk-work merged commit b5097b6 into 5.1 Aug 9, 2026
5 checks passed
@pk-work
pk-work deleted the downport_51 branch August 9, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants