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

WADL contains wrong parameter names for multipart/form-data

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.4
    • 2.4.5, 2.5.1
    • JAX-RS
    • None
    • Unknown

    Description

      I have the following annotated REST function:

          @POST
          @Path("/umsinfo/profileid/{profileId}")
          @Consumes("multipart/form-data")
          public UmsInfo getUmsInfoByProfileId(@PathParam("profileId") String profileId,
                                               @Multipart(value="includeCompany") Boolean includeCompany,
                                               @Multipart(value="passwordToCheck") String passwordToCheck,
                                               @Context UriInfo info)
      

      and it produces the following relevant WADL entry:

                  <resource path="/umsinfo/profileid/{profileId}">
                      <param name="profileId" style="template" type="xs:string"/>
                      <method name="POST">
                          <request>
                              <representation mediaType="multipart/form-data">
                                  <param name="request" style="plain" type="xs:boolean"/>
                              </representation>
                              <representation mediaType="multipart/form-data">
                                  <param name="request" style="plain" type="xs:string"/>
                              </representation>
                          </request>
                          <response>
                              <representation mediaType="application/octet-stream"/>
                          </response>
                      </method>
      

      Please note that the param name is always "request". This is true for all multipart/form-data functions inside this WADL.

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            thecoolace Bla Bla
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: