[jbosstools-issues] [JBoss JIRA] (JBIDE-17730) JAX-RS @PathParam Field is not validated against @Path annotation value

Radoslav Rábara (JIRA) issues at jboss.org
Thu Jul 10 06:35:24 EDT 2014


     [ https://issues.jboss.org/browse/JBIDE-17730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Radoslav Rábara closed JBIDE-17730.
-----------------------------------



Verified with JBDS 8.0.0 Beta3-v20140706-0939-B172

> JAX-RS @PathParam Field is not validated against @Path annotation value
> -----------------------------------------------------------------------
>
>                 Key: JBIDE-17730
>                 URL: https://issues.jboss.org/browse/JBIDE-17730
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: webservices
>    Affects Versions: 4.2.0.Beta2
>            Reporter: Xavier Coulon
>            Assignee: Xavier Coulon
>             Fix For: 4.2.0.Beta3
>
>
> Take the following code:
> {code}
> @Path("/")
> public class CarResource {
> 	
> 	@PathParam("id")
> 	private Integer id;
> 	
> 	@GET
> 	@Path("{id}")
> 	public Object getCar() {
> 		return null;
> 	}
> }
> {code}
> replace {{@PathParam("id")}} with {{@PathParam("i")}}, there is no problem reported in 'as-you-type', while there should be (user has to save the file to see the problem markers). 
> Same goes when changing the value of the {{@Path}} annotation on the method: no 'as-you-type' problem report.



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)



More information about the jbosstools-issues mailing list