[
https://issues.apache.org/jira/browse/CXF-8914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17759277#comment-17759277
]
Andriy Redko commented on CXF-8914:
-----------------------------------
Hi [~stephan.naecker] , thank you a lot for the information. The workaround is
inspired by this comment
https://issues.apache.org/jira/browse/CXF-8885?focusedCommentId=17747647&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17747647
. You basically need to define your own URLConnectionHTTPConduitFactory and
add the bean to the Spring context, that should make it. We will try to provide
a better options in the upcoming release. Thank you.
> No content-length header after upgrade CXF from 3.5.6 to 3.6.1
> --------------------------------------------------------------
>
> Key: CXF-8914
> URL: https://issues.apache.org/jira/browse/CXF-8914
> Project: CXF
> Issue Type: Bug
> Affects Versions: 3.6.1
> Environment: SpringBoot 2.7.13
> Reporter: Stephan Näcker
> Priority: Major
>
> After updating the CXF dependency in our application from 3.5.6 to 3.6.1 it
> does not add a content-length header anymore, when doing a multipart request
> for a file upload.
> I didn't find any information, how to let CXF set the header. Is it just
> dependent of chunking?
> Actually the application sets "allow chunking" to false. But I'm not sure,
> how I can test, if this really works.
> Thanks in advance for your help.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)