coheigea opened a new pull request, #3563: URL: https://github.com/apache/cxf/pull/3563
Since 3.4.6 AttachmentDataSource reports "application/octet-stream" for parts with no Content-Type header, so the JAX-RS Attachment no longer falls back to text/plain. As a result simple form fields bound to non-String types (e.g. @Multipart Integer) found no MessageBodyReader and were silently injected as null. Per RFC 7578 section 4.4, a multipart/form-data part without a Content-Type defaults to text/plain. AttachmentUtil.createAttachment now applies that default to form-data parts that are not files (no "filename" parameter); other parts keep defaulting to application/octet-stream, and the "org.apache.cxf.attachment.content-type" property still overrides the default. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
