Issue Details (XML | Word | Printable)

Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Nick Sieger
Reporter: Patrick Cheng
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

JRuby-Rack always appends "index.html" or ".html" when URL is no extension

Created: 23/Jul/10 04:34 AM   Updated: 02/Aug/10 06:52 PM   Resolved: 02/Aug/10 06:52 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0.2

Time Tracking:
Not Specified

File Attachments: 1. Text File JRUBY_RACK-33.patch (3 kB) 23/Jul/10 04:36 AM - Patrick Cheng


 Description  « Hide

I have a legacy servlet mapped to:


so "http://server/context/SomeServlet/something" will be handled by my servlet.

With the JRuby-Rack filter installed, the request object becomes
"http://server/context/SomeServlet/something/index.html" depending if there is a trailing slash.

Patrick Cheng added a comment - 23/Jul/10 04:36 AM

I am using ServletContext.getResource() to test if the physical file exists.

Nick Sieger added a comment - 02/Aug/10 06:52 PM

Thanks for the patch, I committed a modified version in d98314e. This will be in 1.0.2, out soonish.