Community
Participate
Working Groups
Build Identifier: Build id: 20090619-0625 Extension alias like "/*.do" are non properly managed if in the pathInfo part of the url is present more than one ".". An uri like ".../mysample.do" works fine but an uri like ".../my.sample.do" does not work. When registering a servlet in a standard j2ee environment a mapping like "*.do" serves correctly both uri. Reproducible: Always Steps to Reproduce: 1.Register a servlet with "/*.do" as alias 2.Invoke an url like "http://localhost:8080/my.sample.do" 3.The servlet is not invoked and an error is generated
Created attachment 164813 [details] This is my version of ProxyServlet with my fix I fix the problem in my environment just changing the "findExtensionAlias(String alias)" method, changing from int dot = lastSegment.indexOf('.'); to int dot = lastSegment.lastIndexOf('.');
Thanks. Look correct and I'll take a look at committing this fix shortly.
Fixed in HEAD.