[ https://issues.apache.org/jira/browse/CXF-8669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17522288#comment-17522288 ]
Eric Chatellier edited comment on CXF-8669 at 4/14/22 1:01 PM: --------------------------------------------------------------- Hi, I'm facing the exactly same problem. Also with Long parameters. {code:java} @POST @Path("/createPieces") @Consumes(MediaType.MULTIPART_FORM_DATA) @Produces(MediaType.APPLICATION_JSON) Response createPieces(List<Attachment> attachments, @Multipart("id") Long id, @Multipart("type") String type, @Multipart("name") String name) throws BaseException; {code} Here, *id* is {_}null{_}, *type* and *name* are {_}non null{_}. was (Author: JIRAUSER288052): Hi, I'm facing the exactly same problem. Also with Long parameters. {code:java} @POST @Path("/createPieces") @Consumes(MediaType.MULTIPART_FORM_DATA) @Produces(MediaType.APPLICATION_JSON) Response createListPieceDossier(List<Attachment> attachments, @Multipart("id") Long id, @Multipart("type") String type, @Multipart("name") String name) throws BaseException; {code} Here, *id* is {_}null{_}, *type* and *name* are {_}non null{_}. > Multipart annotation not working 3.4.6 onwards. > ----------------------------------------------- > > Key: CXF-8669 > URL: https://issues.apache.org/jira/browse/CXF-8669 > Project: CXF > Issue Type: Bug > Reporter: Abhishek Rana > Priority: Major > > Hello Team, > I have following API declaration > {code:java} > @POST > @Path("/{configurationName}.diff") > @Consumes(MediaType.MULTIPART_FORM_DATA) > @Produces({MediaType.APPLICATION_JSON}) > ConfigurationDiffDTO diff(@PathParam("configurationName") String > configurationName, > @Multipart(value = "fromRev", required = false) Long fromRev, > @Multipart(value = "toRev", required = false) Long toRev, @Multipart(value = > "file", required = false) Attachment file); > {code} > Above declaration works fine till 3.4.5 , after I upgraded to 3.5.0 (even > 3.4.6) , multipart form values (fromRev and toRev) they are coming as null. > Is it a regression? -- This message was sent by Atlassian Jira (v8.20.1#820001)