MultipartContent with zero parts writes itself as a dummy empty part by atykhyy
[Tool] Searching for MultipartContent zero parts, MultipartContent empty part, MultipartContent writes dummy part, MultipartContent RFC 1341, MultipartContent documentation, MultipartContent exception zero parts
[Tool] Found 19 issues, 27 comments, 20 returned results (6603 ms)
[Tool] Obtained 4 comments for issue #46959: Bug in .NET 5 HttpRequest.Content dropping empty parts in multipart/form-data encoded POST requests
[Tool] Obtained 4 comments for issue #68968: [API Proposal]: MultipartContent.cs constructor or public property to control usage of double quotes in boundary
[Tool] Obtained 4 comments for issue #72447: MultipartFormDataContent potentially not compliant with RFC 6266 and RFC 7578
[Tool] Obtained 6 comments for issue #98089: HttpClient send MultipartFormDataContent / Azure WAF Multipart request body failed strict validation
Triage for dotnet/runtime#115997.
Last updated: 2025-05-27_00-36-54
Here are related issues and discussions relevant to #115997 ("MultipartContent with zero parts writes itself as a dummy empty part"):
1. #46959 - Bug in .NET 5 HttpRequest.Content dropping empty parts in multipart/form-data encoded POST requests
2. #68968 - [API Proposal]: MultipartContent.cs constructor or public property to control usage of double quotes in boundary
3. #72447 - MultipartFormDataContent potentially not compliant with RFC 6266 and RFC 7578
nameparameter in the Content-Disposition header. The team clarified that both quoted and unquoted forms are allowed by the RFC, and closed the issue as by-design.4. #98089 - HttpClient send MultipartFormDataContent / Azure WAF Multipart request body failed strict validation
Key Takeaways for #115997
MultipartContent, but there is a clear pattern in related issues:No existing issue directly addresses the "dummy empty part" for zero parts, but the related issues above show the team's approach and support your suggestion to document this behavior.