Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-22377

Jax RS service - Run on Server: default id value is ignored in WS tester

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.30.x
    • 4.4.0.Alpha1
    • webservices
    • None

      I have a project with the following jax-rs service:

      @Path("/rest")
      public class Service {
      
      	@GET
      	@Path("/{id}")
      	public String mainService(@PathParam("id") @DefaultValue("0") Integer id,
      							  @MatrixParam("m1") @DefaultValue("m1") String m1,
      							  @QueryParam("q1") @DefaultValue("q1") String q1) {
      		return id + " " + m1 + " " + q1;
      	}
      	
      }
      

      When I select 'run on server' on the service endpoint and then invoke the opened service tester, it shows blank id value even when the default is set to 0.

            Unassigned Unassigned
            jrichter@redhat.com Jan Richter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: