index files do not work on 2.20 if allow_path_info is not set
Oliver Paukstadt <[email protected]> Fri, 04 Jan 2013 20:36:05 +0100
| Newsgroups | gmane.comp.web.mason.user |
|---|---|
| Message-ID | <[email protected]> |
Hi while reading through latest Mason::Manual::RequestDispatch and Mason::Interp::_build_match_request_path to understand trailing slash handling I found that my installation was Mason-2.19 and latest was 2.20 with the trailing slash change for directories. So I updated and everything looks broken now. ;-) As far as I can see an access to a directory with trailing slash (except / itself) will never match an index.mc until allow_path_info is set to 1. This is the only way to get the check in _build_match_request_path for index.mc valid, because path_info now is '/' and it is not a dhandler. This is really bad, what was the reason to do it this way? Maybe the simplest fix could be a check similar to "is_dhandler" like is_index to get index files delivered without allow_path_info set. >From my point of view (is_index and path_info eq '') could lead to a redirect adding a slash to path if attribute force_directory_slash is set. Regards, Oliver Paukstadt -- Oliver Paukstadt <[email protected]> ------------------------------------------------------------------------------ Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812