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

MgnlContext not initialized if a jsp is called directly (leads to javascript exception 'importClass not defined')

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0 RC1
    • None
    • None
    • None

    Description

      If one opens the admin central one get's sometimes the javascript message:

      not defined importClass() ..

      caused by

      java.lang.NullPointerException
      at info.magnolia.cms.beans.runtime.MgnlContext.getLocale(MgnlContext.java:97)
      at info.magnolia.cms.i18n.MessagesManager.getMessages(MessagesManager.java:270)
      at org.apache.jsp.admintemplates.js.admincentral_jsp._jspService(admincentral_jsp.java:262)

      This happens because the jsp does not initialize the context. Should we create a filter which sets the context if a jsp is called directly?

      Currently it works only because tomcat reuses the thread

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              pbaerfuss Philipp Bärfuss
              pbaerfuss Philipp Bärfuss
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD