Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8669

Multipart annotation not working 3.4.6 onwards.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.4.6, 3.5.5
    • 3.6.0, 4.0.1, 3.5.6, 3.4.11
    • None
    • None
    • Unknown

    Description

      Hello Team,
      I have following API declaration

      @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);
      

      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?

      Attachments

        Issue Links

          Activity

            People

              reta Andriy Redko
              rana9018 Abhishek Rana
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: