[
https://issues.apache.org/jira/browse/CXF-8922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17761948#comment-17761948
]
Colm O hEigeartaigh commented on CXF-8922:
------------------------------------------
Can you create a test-case to reproduce the problem?
> @Multipart for type java.lang.Integer returning null
> ----------------------------------------------------
>
> Key: CXF-8922
> URL: https://issues.apache.org/jira/browse/CXF-8922
> Project: CXF
> Issue Type: Bug
> Affects Versions: 3.5.5
> Reporter: Lef
> Priority: Major
>
> In version 3.3.5 this code was working fine (index & total were returned as
> Integer)
> {code:java}
> @Path("/uploadFiles")
> @POST
> @Consumes({MediaType.MULTIPART_FORM_DATA})
> public void uploadFile(@Context HttpServletRequest httpServletRequest,
> @Context HttpServletResponse httpServletResponse,
> @Multipart(value = "file", required = false)
> Attachment file,
> @Multipart(value = "dzchunkindex", required = false)
> Integer index,
> @Multipart(value = "dztotalchunkcount", required =
> false) Integer total,
> @QueryParam(value = "path") String path) {code}
> after upgrading to 3.5.5 index and total are always returned null.
> Changing the type from Integer to String fixes my issue. Is this expected
> functionality?
> I've debugged this down to MultipartProvider#fromAttachment line 233 where
> MessageBodyReader is null
--
This message was sent by Atlassian Jira
(v8.20.10#820010)