[ 
https://issues.apache.org/jira/browse/KARAF-6703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17553894#comment-17553894
 ] 

Grzegorz Grzybek commented on KARAF-6703:
-----------------------------------------

[~daltontc] in my case, we've fixed it in the fork of CXF (part of Fuse), but 
simply by backporting CXF-8380 to older (used by Fuse) version of CXF.
The fix is (CXF side):
{noformat}
diff --git 
a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/MultipartProvider.java
 
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/MultipartProvider.java
index bfc695528f2..1c615c00167 100644
--- 
a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/MultipartProvider.java
+++ 
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/MultipartProvider.java
@@ -445,7 +445,7 @@ public class MultipartProvider extends 
AbstractConfigurableProvider
                                      Type genericType,
                                      Annotation[] anns,
                                      MediaType contentType) {
-            super(new ByteDataSource("1".getBytes(), contentType.getType()));
+            super(new ByteDataSource("1".getBytes(), contentType.toString()));
             this.writer = writer;
             this.obj = obj;
             this.cls = cls;
{noformat}

[~ffang] ([~freeman.fang]?) may I ask you to check which upstream version of 
CXF contains this fix? (or confirm it's  3.5.0, 3.4.2, 3.3.9)?

[~daltontc] which version of CXF do you use?

> Spec features and cleanup
> -------------------------
>
>                 Key: KARAF-6703
>                 URL: https://issues.apache.org/jira/browse/KARAF-6703
>             Project: Karaf
>          Issue Type: Task
>          Components: karaf
>            Reporter: Francois Papon
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>
> As already discussed, we should remove the lib/jdk9plus folder and all spec 
> packages from etc/jre.properties to use spec features instead.
> That will give us more control in the specs version and support of JDK.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to