[jira] [Commented] (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=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)
[jira] [Resolved] (CXF-8873) Get rid of EasyMock in cxf-rt-rs-security-oauth2-saml
[ https://issues.apache.org/jira/browse/CXF-8873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andriy Redko resolved CXF-8873. --- Resolution: Fixed > Get rid of EasyMock in cxf-rt-rs-security-oauth2-saml > - > > Key: CXF-8873 > URL: https://issues.apache.org/jira/browse/CXF-8873 > Project: CXF > Issue Type: Sub-task >Reporter: Andriy Redko >Assignee: Andriy Redko >Priority: Major > Fix For: 3.6.2, 4.0.3 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (CXF-8869) Get rid of EasyMock in cxf-rt-rs-extension-search
[ https://issues.apache.org/jira/browse/CXF-8869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andriy Redko resolved CXF-8869. --- Resolution: Fixed > Get rid of EasyMock in cxf-rt-rs-extension-search > - > > Key: CXF-8869 > URL: https://issues.apache.org/jira/browse/CXF-8869 > Project: CXF > Issue Type: Sub-task >Reporter: Andriy Redko >Assignee: Andriy Redko >Priority: Major > Fix For: 3.6.2, 4.0.3 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (CXF-8874) Get rid of EasyMock in cxf-rt-rs-security-sso-oidc
[ https://issues.apache.org/jira/browse/CXF-8874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andriy Redko resolved CXF-8874. --- Resolution: Fixed > Get rid of EasyMock in cxf-rt-rs-security-sso-oidc > -- > > Key: CXF-8874 > URL: https://issues.apache.org/jira/browse/CXF-8874 > Project: CXF > Issue Type: Sub-task >Reporter: Andriy Redko >Assignee: Andriy Redko >Priority: Major > Fix For: 3.6.2, 4.0.3 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (CXF-8849) Get rid of EasyMock in cxf-rt-features-clustering
[ https://issues.apache.org/jira/browse/CXF-8849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andriy Redko resolved CXF-8849. --- Resolution: Fixed > Get rid of EasyMock in cxf-rt-features-clustering > - > > Key: CXF-8849 > URL: https://issues.apache.org/jira/browse/CXF-8849 > Project: CXF > Issue Type: Sub-task >Reporter: Andriy Redko >Assignee: Andriy Redko >Priority: Major > Fix For: 3.6.2, 4.0.3 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (CXF-8851) Get rid of EasyMock in cxf-rt-features-throttling
[ https://issues.apache.org/jira/browse/CXF-8851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andriy Redko resolved CXF-8851. --- Resolution: Fixed > Get rid of EasyMock in cxf-rt-features-throttling > - > > Key: CXF-8851 > URL: https://issues.apache.org/jira/browse/CXF-8851 > Project: CXF > Issue Type: Sub-task >Reporter: Andriy Redko >Assignee: Andriy Redko >Priority: Major > Fix For: 3.6.2, 4.0.3 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (CXF-8850) Get rid of EasyMock in cxf-rt-features-logging
[ https://issues.apache.org/jira/browse/CXF-8850?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andriy Redko resolved CXF-8850. --- Resolution: Fixed > Get rid of EasyMock in cxf-rt-features-logging > -- > > Key: CXF-8850 > URL: https://issues.apache.org/jira/browse/CXF-8850 > Project: CXF > Issue Type: Sub-task >Reporter: Andriy Redko >Assignee: Andriy Redko >Priority: Major > Fix For: 3.6.2, 4.0.3 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (CXF-8853) Get rid of EasyMock in xkms-x509-handlers
[ https://issues.apache.org/jira/browse/CXF-8853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andriy Redko updated CXF-8853: -- Summary: Get rid of EasyMock in xkms-x509-handlers (was: Get rid of EasyMock in org.apache.cxf.services.xkms) > Get rid of EasyMock in xkms-x509-handlers > - > > Key: CXF-8853 > URL: https://issues.apache.org/jira/browse/CXF-8853 > Project: CXF > Issue Type: Sub-task >Reporter: Andriy Redko >Assignee: Andriy Redko >Priority: Major > Fix For: 3.6.2, 4.0.3 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (CXF-8853) Get rid of EasyMock in cxf-services-xkms-x509-handlers
[ https://issues.apache.org/jira/browse/CXF-8853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andriy Redko updated CXF-8853: -- Summary: Get rid of EasyMock in cxf-services-xkms-x509-handlers (was: Get rid of EasyMock in xkms-x509-handlers) > Get rid of EasyMock in cxf-services-xkms-x509-handlers > -- > > Key: CXF-8853 > URL: https://issues.apache.org/jira/browse/CXF-8853 > Project: CXF > Issue Type: Sub-task >Reporter: Andriy Redko >Assignee: Andriy Redko >Priority: Major > Fix For: 3.6.2, 4.0.3 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (CXF-8549) Get rid of EasyMock
[ https://issues.apache.org/jira/browse/CXF-8549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andriy Redko updated CXF-8549: -- Description: Get rid of EasyMock in favor of Mockito since it does require additional access to sealed JDK internals for JDK-16 and above. Also, the EasyMock does not support JDK-21 as of today. {noformat} Caused by: java.lang.IllegalArgumentException: org.apache.cxf.io.CachedOutputStream$$$EasyMock$1 must be defined in the same package as org.easymock.internal.ClassProxyFactory at org.easymock.bytebuddy.dynamic.loading.ClassInjector$UsingLookup.injectRaw(ClassInjector.java:1635) at org.easymock.bytebuddy.dynamic.loading.ClassInjector$AbstractBase.inject(ClassInjector.java:118) at org.easymock.bytebuddy.dynamic.loading.ClassLoadingStrategy$UsingLookup.load(ClassLoadingStrategy.java:519) at org.easymock.bytebuddy.dynamic.TypeResolutionStrategy$Passive.initialize(TypeResolutionStrategy.java:101) at org.easymock.bytebuddy.dynamic.DynamicType$Default$Unloaded.load(DynamicType.java:6317) at org.easymock.internal.ClassProxyFactory.lambda$createProxy$0(ClassProxyFactory.java:146) at org.easymock.bytebuddy.TypeCache.findOrInsert(TypeCache.java:168) ... 34 more {noformat} [X] ./core/pom.xml [X] ./integration/jca/pom.xml [X] ./rt/bindings/coloc/pom.xml [X] ./rt/bindings/corba/pom.xml [X] ./rt/bindings/soap/pom.xml [X] ./rt/databinding/aegis/pom.xml [X] ./rt/databinding/jaxb/pom.xml [X] ./rt/features/clustering/pom.xml [X] ./rt/features/logging/pom.xml [X] ./rt/features/throttling/pom.xml [X] ./rt/frontend/jaxrs/pom.xml [X] ./rt/frontend/jaxws/pom.xml [ ] ./rt/frontend/js/pom.xml [X] ./rt/management/pom.xml [ ] ./rt/rs/client/pom.xml [X] ./rt/rs/description/pom.xml [ ] ./rt/rs/extensions/providers/pom.xml [ ] ./rt/rs/extensions/search/pom.xml [X] ./rt/rs/microprofile-client/pom.xml [X] ./rt/rs/security/oauth-parent/oauth2/pom.xml [X] ./rt/rs/security/oauth-parent/oauth2-saml/pom.xml [X] ./rt/rs/security/sso/oidc/pom.xml [X] ./rt/transports/http/pom.xml [X] ./rt/transports/http-jetty/pom.xml [X] ./rt/transports/http-netty/netty-client/pom.xml [X] ./rt/transports/http-netty/netty-server/pom.xml [X] ./rt/transports/http-undertow/pom.xml [X] ./rt/transports/jms/pom.xml [X] ./rt/transports/websocket/pom.xml [X] ./rt/ws/addr/pom.xml [X] ./rt/ws/policy/pom.xml [ ] ./rt/ws/rm/pom.xml [ ] ./rt/ws/security/pom.xml [X] ./rt/ws/transfer/pom.xml [X] ./rt/wsdl/pom.xml [ ] ./services/xkms/xkms-x509-handlers/pom.xml [ ] ./services/xkms/xkms-x509-repo-ldap/pom.xml was: Get rid of EasyMock in favor of Mockito since it does require additional access to sealed JDK internals for JDK-16 and above. Also, the EasyMock does not support JDK-21 as of today. {noformat} Caused by: java.lang.IllegalArgumentException: org.apache.cxf.io.CachedOutputStream$$$EasyMock$1 must be defined in the same package as org.easymock.internal.ClassProxyFactory at org.easymock.bytebuddy.dynamic.loading.ClassInjector$UsingLookup.injectRaw(ClassInjector.java:1635) at org.easymock.bytebuddy.dynamic.loading.ClassInjector$AbstractBase.inject(ClassInjector.java:118) at org.easymock.bytebuddy.dynamic.loading.ClassLoadingStrategy$UsingLookup.load(ClassLoadingStrategy.java:519) at org.easymock.bytebuddy.dynamic.TypeResolutionStrategy$Passive.initialize(TypeResolutionStrategy.java:101) at org.easymock.bytebuddy.dynamic.DynamicType$Default$Unloaded.load(DynamicType.java:6317) at org.easymock.internal.ClassProxyFactory.lambda$createProxy$0(ClassProxyFactory.java:146) at org.easymock.bytebuddy.TypeCache.findOrInsert(TypeCache.java:168) ... 34 more {noformat} [X] ./core/pom.xml [X] ./integration/jca/pom.xml [X] ./rt/bindings/coloc/pom.xml [X] ./rt/bindings/corba/pom.xml [X] ./rt/bindings/soap/pom.xml [X] ./rt/databinding/aegis/pom.xml [X] ./rt/databinding/jaxb/pom.xml [ ] ./rt/features/clustering/pom.xml [ ] ./rt/features/logging/pom.xml [ ] ./rt/features/throttling/pom.xml [X] ./rt/frontend/jaxrs/pom.xml [X] ./rt/frontend/jaxws/pom.xml [ ] ./rt/frontend/js/pom.xml [X] ./rt/management/pom.xml [ ] ./rt/rs/client/pom.xml [X] ./rt/rs/description/pom.xml [ ] ./rt/rs/extensions/providers/pom.xml [ ] ./rt/rs/extensions/search/pom.xml [X] ./rt/rs/microprofile-client/pom.xml [X] ./rt/rs/security/oauth-parent/oauth2/pom.xml [ ] ./rt/rs/security/oauth-parent/oauth2-saml/pom.xml [ ] ./rt/rs/security/sso/oidc/pom.xml [X] ./rt/transports/http/pom.xml [X] ./rt/transports/http-jetty/pom.xml [X] ./rt/transports/http-netty/netty-client/pom.xml [X] ./rt/transports/http-netty/netty-server/pom.xml [X] ./rt/transports/http-undertow/pom.xml [X] ./rt/transports/jms/pom.xml [X] ./rt/transports/websocket/pom.xml [ ] ./rt/ws/addr/pom.xml [X] ./rt/ws/policy/pom.xml [ ] ./rt/ws/rm/pom.xml [ ] ./rt/ws/security/pom.xml [ ] ./rt/ws/transfer/pom.xml [X] ./rt/