You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andriy Redko (Jira)" <ji...@apache.org> on 2023/08/23 01:29:00 UTC
[jira] [Comment Edited] (CXF-8914) No content-length header after upgrade CXF from 3.5.6 to 3.6.1
[ https://issues.apache.org/jira/browse/CXF-8914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17757750#comment-17757750 ]
Andriy Redko edited comment on CXF-8914 at 8/23/23 1:28 AM:
------------------------------------------------------------
Hi [~stephan.naecker], I think this commit [https://github.com/apache/cxf/commit/395cba5b5a6b6725e6a54d41ee9b3b1675ffbb43] is the culprit, the {color:#2a00ff}"Content-Length"{color} header is filtered out. By default in 3.6.1, CXF uses HttpClient as underlying client transport and it does not (apparently) allow setting this header. One of the possible options - switch to back to URLConnectionHTTPConduit, that should fix the issue.
I would be happy to help you there but need a bit of help to understand how you configure and run your application. Spring? Servlet Container? Something else?
was (Author: reta):
Hi [~stephan.naecker], I think this commit [https://github.com/apache/cxf/commit/395cba5b5a6b6725e6a54d41ee9b3b1675ffbb43] is the culprit, the {color:#2a00ff}"Content-Length"{color} header is filtered out. By default in 3.6.1, CXF uses HttpClient as underlying client transport and it does not (apparently) allow
setting this header. One of the possible options - switch to back to URLConnectionHTTPConduit, that should fix the issue.
> 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)