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

BeanParam: type of path parameter is not recognized

    Details

    • Sprint:
      Sprint to Beta3 Release
    • Steps to Reproduce:
      Hide

      STEP: Create Dynamic Web Project with JAX-RS Support
      STEP: Create BeanParam class

      public class MyPathParams {
      	
      	@PathParam("path")
      	private String path;
      
      	public void setPath(String path) {
      		this.path = path;
      	}
      	
      	public String getPath() {
      		return path;
      	}
      	
      	@QueryParam("query")
      	private String query;
      	
      	public void setQuery(String query) {
      		this.query = query;
      	}
      	
      	public String getQuery() {
      		return query;
      	}
      
      }
      

      STEP: Create resource class

      @Path("/test")
      public class Resource {
      	@GET()
          @Path("/{path}")
          @Produces(MediaType.TEXT_PLAIN)
          public String get(@BeanParam MyPathParams pathParams) {
      		return "Test";
          }
      }
      

      ASSERT: JAX-RS Explorer shows correct endpoint URI

      /test/{path:String}?query={String}
      

      FAIL: Missing type of path parameter

      /test/{path:*}?query={String}
      
      Show
      STEP: Create Dynamic Web Project with JAX-RS Support STEP: Create BeanParam class public class MyPathParams { @PathParam( "path" ) private String path; public void setPath( String path) { this .path = path; } public String getPath() { return path; } @QueryParam( "query" ) private String query; public void setQuery( String query) { this .query = query; } public String getQuery() { return query; } } STEP: Create resource class @Path( "/test" ) public class Resource { @GET() @Path( "/{path}" ) @Produces(MediaType.TEXT_PLAIN) public String get(@BeanParam MyPathParams pathParams) { return "Test" ; } } ASSERT: JAX-RS Explorer shows correct endpoint URI /test/{path: String }?query={ String } FAIL: Missing type of path parameter /test/{path:*}?query={ String }

      Gliffy Diagrams

        Attachments

          Activity

            People

            • Assignee:
              xcoulon Xavier Coulon
              Reporter:
              rrabara Radoslav RĂ¡bara
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: