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

Query Params not showing up in WADL when declared using @BeanParam

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.7, 3.0.1
    • Fix Version/s: 2.7.13, 3.0.2, 3.1
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      We have some REST services exposed using JAX-RS annotations. We would like to be able to use a single bean to expose all of our query parameters. So, we have created a GET method with MyQueryParams bean as a parameter, and annotated with @BeanParam. Then we have added member variables to MyQueryParams class and annotated them with @QueryParam. When we expose this service and attempt to run it, all is well. However, when we look at the WADL document, the query parameters are not getting exposed. If I add a parameter to the GET method call directly, and add the @QueryParam annotation, it gets exposed in the WADL properly.

      Additionally, if I annotate the MyQueryParams bean in the method call with the @QueryParam("") annotation (note the empty string), I will see query params in the WADL, but they are all converted to all lower case and the @QueryParam("lastName") value is ignored. Instead of a camel case name like 'lastName', it becomes 'lastname'. I will try to attach an example of the behavior to this defect.

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              rickcole3 Rick Cole
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: