[JRUBY_RACK-33] JRuby-Rack always appends "index.html" or ".html" when URL is no extension Created: 23/Jul/10  Updated: 02/Aug/10  Resolved: 02/Aug/10

Status: Resolved
Project: jruby-rack
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0.2

Type: Bug Priority: Major
Reporter: Patrick Cheng Assignee: Nick Sieger
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File JRUBY_RACK-33.patch    


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.

Comment by Patrick Cheng [ 23/Jul/10 ]

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

Comment by Nick Sieger [ 02/Aug/10 ]

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

Generated at Wed Mar 29 19:13:02 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.