jruby-rack
  1. jruby-rack
  2. JRUBY_RACK-33

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.2
    • Labels:
      None

      Description

      I have a legacy servlet mapped to:

      "/SomeServlet/*"

      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.html"
      or
      "http://server/context/SomeServlet/something/index.html" depending if there is a trailing slash.

        Activity

        Hide
        Patrick Cheng added a comment -

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

        Show
        Patrick Cheng added a comment - I am using ServletContext.getResource() to test if the physical file exists.
        Hide
        Nick Sieger added a comment -

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

        Show
        Nick Sieger added a comment - Thanks for the patch, I committed a modified version in d98314e. This will be in 1.0.2, out soonish.

          People

          • Assignee:
            Nick Sieger
            Reporter:
            Patrick Cheng
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: