google-code-export / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
2 stars 1 forks source link

Explode if servlets are mapped to the same literal URI. #304

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Check both web.xml (via ServletContext) as well as other Guice ServletModules 
for collisions of 
literal mappings. Only log a warning in the latter case (check consistency with 
servlet specification?
). 

Log a warning if identical URI patterns (either servlet-style or regex) map to 
different servlets. But 
NOT filters, obviously. 

Original issue reported on code.google.com by dha...@gmail.com on 4 Jan 2009 at 7:09

GoogleCodeExporter commented 9 years ago
Fixed for Guice Servlet dupes. We're adding errors thru the binder (nice).

For web.xml, I don't think it is possible without using deprecated API, so not 
worth doing. Not a huge problem if 
we educate our users.

Original comment by dha...@gmail.com on 7 Jan 2009 at 6:50