Skip to content

Accept transport padding after a multipart boundary delimiter - #1117

Closed
arturobernalg wants to merge 1 commit into
apache:mainfrom
arturobernalg:rfc2046-multipart-transport-padding
Closed

arturobernalg wants to merge 1 commit into
apache:mainfrom
arturobernalg:rfc2046-multipart-transport-padding

Conversation

@arturobernalg

Copy link
Copy Markdown
Member

RFC 2046, section 5.1.1 allows a delimiter to be followed by transport padding (white space) and requires a receiver to be able to handle it. The multipart parser only accepted a delimiter directly followed by CRLF or "--". Padding after the first delimiter caused the whole body to be treated as if it contained no parts, and padding after any later delimiter caused the request to be rejected. Skip the padding after the delimiter.

RFC 2046, section 5.1.1 allows a delimiter to be followed by transport
padding (white space) and requires a receiver to be able to handle it.
The multipart parser only accepted a delimiter directly followed by CRLF
or "--". Padding after the first delimiter caused the whole body to be
treated as if it contained no parts, and padding after any later
delimiter caused the request to be rejected. Skip the padding after the
delimiter.
@markt-asf

Copy link
Copy Markdown
Contributor

This code is forked from Commons FileUpload 1.x branch. The issue should be fixed there and then we'll pick up the fix when there is a new FileUpload 1.x release.

@markt-asf markt-asf closed this Nov 5, 2026
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