[jbosstools-issues] [JBoss JIRA] (JBIDE-13546) Fix matrix param url generated from jaxrs explorer

Jaroslav Jankovič (JIRA) jira-events at lists.jboss.org
Tue Feb 12 09:52:57 EST 2013


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

Jaroslav Jankovič updated JBIDE-13546:
--------------------------------------

    Steps to Reproduce: 
EXEC: create a jaxrs service:
{code}
@Path("/")
public class Service {

	@GET
	@Path("/{id}")
	public String method(@PathParam("id") int id,
			             @MatrixParam("m1") String m1,
			             @QueryParam("q1") String q1) {
		return id + " " + m1 + " " + q1;
	}
	
}
{code}
EXEC: invoke service via JAX RS explorer (Run As -> Run on Server)
ASSERT: type of jaxrs parameters are set correctly in url text field of Web Service tester view
FAIL: matrix parameter is not set correctly in url. It should be "m1=\{m1:TYPE\}" not "m1=\{TYPE\}". Query parameters generating is correct

The problem here is, that if I type:
{code}
http://localhost:8080/prj/rest/{id};m1={java.lang.MYPARAM}?q1={q1:java.lang.MYPARAM}
{code} 
into url text field and invoke web service, dialog for setting values for jax rs parameters is not valid.
{code} 

  was:
EXEC: create a jaxrs service:
{code}
@Path("/")
public class Service {

	@GET
	@Path("/{id}")
	public String method(@PathParam("id") int id,
			             @MatrixParam("m1") String m1,
			             @QueryParam("q1") String q1) {
		return id + " " + m1 + " " + q1;
	}
	
}
{code}
EXEC: invoke service via JAX RS explorer (Run As -> Run on Server)
ASSERT: type of jaxrs parameters are set correctly in url text field of Web Service tester view
FAIL: matrix parameter is not set correctly in url. It should be "m1={m1:TYPE}" not "m1={TYPE}". Query parameters generating is correct

The problem here is, that if I type:
{code}
http://localhost:8080/prj/rest/{id};m1={java.lang.MYPARAM}?q1={q1:java.lang.MYPARAM} into url text field and invoke web service, dialog for setting values for jax rs parameters is not valid.
{code} 


    
> Fix matrix param url generated from jaxrs explorer
> --------------------------------------------------
>
>                 Key: JBIDE-13546
>                 URL: https://issues.jboss.org/browse/JBIDE-13546
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Webservices
>    Affects Versions: 4.1.0.Alpha1
>            Reporter: Jaroslav Jankovič
>            Assignee: Xavier Coulon
>             Fix For: 4.1.x
>
>
> There is difference when generating url from JAX RS explorer with parameters (matrix, query). This can cause issue when entering values in "WS Tester: URL Parameters" dialog.

--
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