[jboss-jira] [JBoss JIRA] (WFLY-7659) Undertow allows to deploy duplicated URLs on Servlets

Guillermo González de Agüero (JIRA) issues at jboss.org
Wed Nov 23 13:58:00 EST 2016


Guillermo González de Agüero created WFLY-7659:
--------------------------------------------------

             Summary: Undertow allows to deploy duplicated URLs on Servlets
                 Key: WFLY-7659
                 URL: https://issues.jboss.org/browse/WFLY-7659
             Project: WildFly
          Issue Type: Bug
          Components: Web (Undertow)
    Affects Versions: 10.1.0.Final
            Reporter: Guillermo González de Agüero
            Assignee: Stuart Douglas
         Attachments: duplicated-servlet-1.0-SNAPSHOT.war, src.zip

A deployment with two Servlets, each one with the same mapping: "/test2". The deployment finishes correctly. When accessing the path, just one Servlet answers, without errors.

A deployment with two Servlets, with the following paths:
* /test1
* test1

The deployment succeeds, but a 500 error is shown when trying to access any page (not just /test1).

Servlet Spec 3.1 says in point 12.2:
{quote}
If the effective web.xml (after merging information from fragments and annotations) contains any url-patterns that are mapped to multiple servlets then the deployment must fail.
{quote}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jboss-jira mailing list