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

WADLGenerator ignores header or query parameters when FormParam parameters are available

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.4.8, 2.5.4, 2.6.1
    • JAX-RS
    • None
    • Unknown

    Description

      Having a signature like this

      @POST
      @Consumes(@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
      void form3(@HeaderParam("headerId") String headerId,
                 @QueryParam("queryId") String queryId,
                 @PathParam("id") String id, 
                 @FormParam("field1") String f1);
      

      will lead to WADLGenerator losing header and query parameters in the generated WADL. Having a query parameter alonside form parameters does not make much sense but is technically possible for POSTs. The loss of the header parameter is more serious

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: