https://bz.apache.org/bugzilla/show_bug.cgi?id=64818
Bug ID: 64818 Summary: Allow duplicate URL mapping to the same Servlet Product: Tomcat 9 Version: unspecified Hardware: PC OS: Linux Status: NEW Severity: minor Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: isa...@apache.org Target Milestone: ----- In BZ-54387 [1] a change was made to reject "Duplicate Mapping": > Duplicate mapping. As per clarification from the Servlet EG, deployment > should fail. Which makes perfect sense when the duplicate mapping points to a different Servlet, but not so much when it points to the same Servlet. I have seen this break deployments even in production, when a dev did not expect this seemingly innocuous duplicate entry to break anything. I would like to propose a minor change where we throw an IllegalArgumentException [2] only if the duplicate entry is mapped to a different Servlet name. If there's no objection then I'd be happy to patch it. [1] https://bz.apache.org/bugzilla/show_bug.cgi?id=54387 [2] https://github.com/apache/tomcat/blob/d106b2b0305e443261704ee44fa0ce8f696d1059/java/org/apache/tomcat/util/descriptor/web/WebXml.java#L346 -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org