Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
Description
The page mvc servlet looks for a page name in the forwarding request info. Judging from the way the freemarker and jsp servlets are written, probably it shouldn't do this. Attached find a patch that permits forwarding to magnolia 'pages'.
Steps to repoduce
1. set up a template with a path to a page (for example /.magnolia/pages/OfferEditorialCard)
2. try to access a path using this template
You get an error in the log. oddly no exception. but you can set a break point
ERROR info.magnolia.module.admininterface.PageMVCServlet PageMVCServlet.java(getHandler:71) 28.06.2007 16:10:22 no page found: []
then you can see the exception trace. see attachment. After looking at the source code for the freemarker and jsp servlets it seems the page name should come from the include path and not the forward path. see patch. one could debate that only the last term should be taken as the path. I think it is a find standard that page names in magnolia have no '/' in them.