Details
-
Bug
-
Resolution: Fixed
-
Major
-
3.0 RC3
-
None
Description
/DocSpesaFrom.html is my page
/templates/jsp/docSpesaForm.jsp is the template associated with my page
When I call my page what happens is>
1)cms filter handle requestURI /DocSpesaFrom.html and forward to /templates/jsp/docSpesaForm.jsp
2)again in the cms filter. It should handle(skip in my case) /templates/jsp/docSpesaForm.jsp but Path.getURI(request) return "/DocSpesaFrom.html", we are back to step 1) end here loop starts.
I resolved this problem introducing this few trivial lines in MgnlCmsFilter.doFilter():
// Introduced to allow request forward when dispatching filters
// If Path class find "MGNL_REQUEST_URI_DECODED" attribute, cms filter loop
// If Path class miss it, the attribute gets aligned with current requestURI
if (req.getAttribute("CHECK_FWD") != null)
else
{ log.debug("First time in Filter Cms"); req.setAttribute("CHECK_FWD", new Integer(0)); }Checklists
Attachments
Issue Links
- depends upon
-
MAGNOLIA-1698 Review usage of originalURI/currentURI, forward/include, virtualUriFilter
-
- Closed
-
-
MAGNOLIA-1776 Changing template renderers in order to use include instead of forward
-
- Closed
-
- is depended upon by
-
MAGNOLIA-1185 Provide a generic bypass mechanism for Filters
-
- Closed
-