[jbosstools-issues] [JBoss JIRA] (JBIDE-16476) Run As on JAX-RS Node generates wrong URI if Application path has no leading slash

Xavier Coulon (JIRA) issues at jboss.org
Thu Feb 6 08:28:29 EST 2014


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

Xavier Coulon updated JBIDE-16476:
----------------------------------

    Fix Version/s:     (was: 4.1.2.CR1)

    
> Run As on JAX-RS Node generates wrong URI if Application path has no leading slash
> ----------------------------------------------------------------------------------
>
>                 Key: JBIDE-16476
>                 URL: https://issues.jboss.org/browse/JBIDE-16476
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: webservices
>    Affects Versions: 4.1.1.Final
>            Reporter: Xavier Coulon
>            Assignee: Xavier Coulon
>            Priority: Minor
>             Fix For: 4.2.0.Alpha2
>
>
> * Create an HTML5 project from central
> * In JaxRsActivator, change @ApplicationPath("/rest") to @ApplicationPath("rest")
> * Do Run As > Run on Server on the GET rest/members endpoint in the JAX-RW Web Services node
> * Assert the WS Tester opens with http://localhost:8080/jboss-as-kitchensink-html5-mobile/rest/members
> FAIL : URL is http://localhost:8080/jboss-as-kitchensink-html5-mobilerest/members
> [JAX-RS doc|http://docs.oracle.com/cd/E19798-01/821-1841/ginpw/] says leading slashes are not mandatory for @Path, but I didn't see any mention of ApplicationPath (my guess is the rule should be consistent). At least, the application server doesn't puke on it so it's a valid use case to me.

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