[jbosstools-issues] [JBoss JIRA] (JBIDE-15600) MatrixParam and QueryParam field names are used instead of the annotation values

Radoslav Rábara (JIRA) jira-events at lists.jboss.org
Fri Nov 1 11:11:02 EDT 2013


    [ https://issues.jboss.org/browse/JBIDE-15600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12828578#comment-12828578 ] 

Radoslav Rábara commented on JBIDE-15600:
-----------------------------------------

Hi [~xcoulon] !

I have difficulty with this issue. I tried to reproduce this issue but my URI Path Template is without queryParam:
{code}
/products/{productType}/{id}
{code}

I tried it also in JBDS 7.0.1 but without change.

Please, take a look at my steps:
STEP: Create Dynamic Web Project
STEP: Activate JAX-RS support
STEP: Create classes ProductResourceLocator, BookResource and empty class Book
ASSERT: the URL Template for the Endpoint is 
{code}
/products/{productType}/{id}?foo1={String}
{code}
FAIL: the URL Template is 
{code}
/products/{productType}/{id}
{code}

!urlTemplateWithoutQueryParam.jpg!
                
> MatrixParam and QueryParam field names are used instead of the annotation values
> --------------------------------------------------------------------------------
>
>                 Key: JBIDE-15600
>                 URL: https://issues.jboss.org/browse/JBIDE-15600
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: webservices
>    Affects Versions: 4.1.0.Final
>            Reporter: Xavier Coulon
>            Assignee: Xavier Coulon
>             Fix For: 4.1.1.Beta1
>
>         Attachments: urlTemplateWithoutQueryParam.jpg
>
>
> Take the following classes:
> {code}
> @Path("/products")
> public class ProductResourceLocator {
> 	@QueryParam("foo1")
> 	private String foo2;
>         @Path("/{productType}")
> 	public Object getProductResourceLocator() {
> 		return new BookResource(); 
> 	}
> }
> {code}
> and 
> {code}
> @Produces({ MediaType.APPLICATION_XML, "application/json" })
> public class BookResource {
> 	@GET
> 	@Path("/{id}")
> 	@Produces({ "application/xml", "application/json" })
> 	public Book getProduct(@PathParam("id") Integer id) {
> 		return null;
> 	}
> }
> {code}
> ASSERT: the URL Template for the Endpoint should be something like 
> {code}
> /products/{productType}/{id}?foo1={String}
> {code}
> FAIL: the URL Template for the Endpoint should be something like 
> {code}
> /products/{productType}/{id}?foo2={String}
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jbosstools-issues mailing list