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

Xavier Coulon (JIRA) issues at jboss.org
Tue Feb 4 09:00:30 EST 2014


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

Xavier Coulon commented on JBIDE-16431:
---------------------------------------

fix works fine, thanks !
                
> Run As on JAX-RS Node generates wrong URI if Application path has no leading slash
> ----------------------------------------------------------------------------------
>
>                 Key: JBIDE-16431
>                 URL: https://issues.jboss.org/browse/JBIDE-16431
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: webservices
>    Affects Versions: 4.1.1.Final
>            Reporter: Fred Bricon
>            Assignee: Xavier Coulon
>            Priority: Minor
>             Fix For: 4.1.2.CR1, 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