Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1351

PageMVCServlet broken in a way that disallows forwarding to pages.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0.5
    • 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.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              chris_miner Chris Miner
              chris_miner Chris Miner
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD