[jbosstools-issues] [JBoss JIRA] (JBIDE-12646) web.xml servlet-name validation is not case-sensitive
Xavier Coulon (JIRA)
jira-events at lists.jboss.org
Wed Oct 3 04:26:03 EDT 2012
[ https://issues.jboss.org/browse/JBIDE-12646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723549#comment-12723549 ]
Xavier Coulon commented on JBIDE-12646:
---------------------------------------
Viacheslav,
Sorry for the delay.
I'm still able to reproduce it, so let me give you steps to try on your machine:
1. From Central, create a project using the HTML5 template
2. In the project, add a web deployment descriptor with the following content:
{code}
<servlet-mapping>
<servlet-name>org.jboss.tools.example.html5.rest.JaxrsActivator</servlet-name>
<url-pattern>/rest/*</url-pattern>
</servlet-mapping>
{code}
As you can see, there's a upper/lower case error in the servlet name: it should be Jax*R*sActivator instead of Jax*r*sActivator, but there's no warning there. On the other hand, removing a character in the servlet name triggers a warning.
Let me know if you can reproduce it.
> web.xml servlet-name validation is not case-sensitive
> -----------------------------------------------------
>
> Key: JBIDE-12646
> URL: https://issues.jboss.org/browse/JBIDE-12646
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: jsp/jsf/xml source editing
> Affects Versions: 4.0.0.Alpha1
> Reporter: Xavier Coulon
> Assignee: Viacheslav Kabanovich
> Fix For: 4.0.0.Beta1
>
> Attachments: ServletNameValidation.png
>
>
> [Using the HTML5 sample project generated from Central]
> I'm adding a servlet declaration in the web.xml file but the web.xml editor does not report a warning when the servlet name case is wrong:
> {code}
> <servlet-mapping>
> <servlet-name>org.jboss.tools.example.html5.rest.JaxrsActivator</servlet-name>
> <url-pattern>/hello/*</url-pattern>
> </servlet-mapping>
> {code}
> In the example above, the class name should be JaxRsActivator, not JaxrsActivator.
> On the other hand, it properly reports a warning when a letter is missing in the classname.
--
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