Uploaded image for project: 'Scheduler'
  1. Scheduler
  2. MGNLSCH-30

Execution of CommandJob can leave uncleaned MgnlContext

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.5.3
    • 1.5
    • None

      info.magnolia.module.scheduler.CommandJob.execute(JobExecutionContext) is doing MgnlContext.setInstance(new SimpleContext(Components.getComponent(SystemContext.class))). Then also do the reset of MgnlContext. But the reset may not happen when we call "return;" in the method. MgnlContext.setInstance and MgnlContext cleanup should be wrapped in try-finally.

        Acceptance criteria

              mdivilek Milan Divilek
              mdivilek Milan Divilek
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD