Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1614 Refactor magnolia Context class hierarchy
  3. MAGNOLIA-1799

unset context in all threads, add MgnlContext.doInSystemContext() method

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Major Major
    • 3.5 RC1
    • 3.1 M3
    • None
    • None

      In some threads we do MgnlContext.setInstance(MgnlContext.getSystemContext()). But then we don't unset the context. If the threads are then used for request the ContextFilter fails to set a web context.

      This is the case for the servlet context listeners and observation event listeners

      A MgnlContext.doInSystemContext(runnable) would be nice.

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

              Created:
              Updated:
              Resolved: