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

JAX-RS explorer shows url with slash before matrix parameters

    XMLWordPrintable

Details

    • Hide

      STEP: Create Dynamic Web Project with JAX-RS support
      STEP: Create following REST Service:

      package org.rest.test;
      
      import javax.ws.rs.GET;
      import javax.ws.rs.MatrixParam;
      import javax.ws.rs.Path;
      
      @Path("/rest")
      public class RestService {
      	@GET
      	public void getBooks(@MatrixParam("author") java.lang.Long param1,
      			     @MatrixParam("country") java.lang.Integer param2) {
      	}
      }
      

      ASSERT: JAX-RS explorer shows following URL:

      /rest;author={Long};country={Integer}
      

      FAIL: The URL is:

      /rest/;author={Long};country={Integer}
      
      Show
      STEP: Create Dynamic Web Project with JAX-RS support STEP: Create following REST Service: package org. rest .test; import javax.ws.rs.GET; import javax.ws.rs.MatrixParam; import javax.ws.rs.Path; @Path( "/ rest " ) public class RestService { @GET public void getBooks(@MatrixParam( "author" ) java.lang. Long param1, @MatrixParam( "country" ) java.lang. Integer param2) { } } ASSERT: JAX-RS explorer shows following URL: / rest ;author={ Long };country={ Integer } FAIL: The URL is: / rest /;author={ Long };country={ Integer }

    Attachments

      Issue Links

        Activity

          People

            manderse@redhat.com Max Andersen
            rrabara Radoslav RĂ¡bara (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: