[
https://issues.apache.org/jira/browse/CXF-8914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17755398#comment-17755398
]
Stephan Näcker commented on CXF-8914:
-------------------------------------
Hi [~reta], I still had some logging output in my editor:
The first one is from an application version with 3.5.4, I just see. But my
local tests were on a 3.5.6, the behavior was the same. The second one is with
3.6.1. I already removed some x- headers, cause they are added by our
infrastructure. I hope, you don't add any x- headers. If yes, I removed them,
as well. :)
{noformat}
Headers: {
Accept=application/json,application/octet-stream,
zipkin-tags=X-Request-Id=332d216c2fe1aec6a14e5182b806f88a,
pragma=no-cache,
Authorization=Bearer eyJhbGciOi...,
tracestate=api-trace=,api-span=,
traceparent=00--4ae5dc446d044c14-01,
host=amp-approvals.amp-prod01-gke.svc.cluster.local:8443,
connection=keep-alive,
content-type=multipart/form-data;
boundary="uuid:c18d652e-7dbc-42fd-9334-006156aba080",
cache-control=no-cache,
Content-Length=103959,
user-agent=Apache-CXF/3.5.4
}{noformat}
{noformat}
Headers: {
transfer-encoding=chunked,
Accept=application/json,
zipkin-tags=X-Request-Id=7242d8d6b0baf74174f1f9ca50820659,
Authorization=Bearer eyJhbGciO...,
tracestate=api-trace=,api-span=,
traceparent=00--e380a91224144309-01,
host=amp-approvals:8443,
connection=keep-alive,
content-type=multipart/form-data;
boundary="uuid:96d37877-cfed-4a84-8894-859d29327aa0",
user-agent=Apache-CXF/3.6.1
}{noformat}
> 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)