You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Colm O hEigeartaigh (Jira)" <ji...@apache.org> on 2026/10/12 14:28:00 UTC

[jira] [Assigned] (CXF-8922) @Multipart for type java.lang.Integer returning null

     [ https://issues.apache.org/jira/browse/CXF-8922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh reassigned CXF-8922:
----------------------------------------

    Assignee: Colm O hEigeartaigh

> @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
>            Assignee: Colm O hEigeartaigh
>            Priority: Major
>             Fix For: 4.2.5, 4.1.10
>
>
> 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)