Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-3998

Refactor InitializationFilter so that first-time startup of OpenMRS behaves identically to normal startup

    XMLWordPrintable

    Details

      Description

      The first time you start OpenMRS, it goes through a setup wizard and then starts OpenMRS.

      In this scenario (the code is in org.openmrs.web.filter.initialization.InitializationFilter) module activators have their methods (e.g. contextRefreshed() and started()) called from a thread that has "Anonymous" privileges, so any API calls the activators make will throw an exception.

      You can find the correct version of this code in org.openmrs.web.Listener (it uses WebDaemon).

      Another ticket, TRUNK-3997, is about doing a quick-fix for this problem.

      The goal of this ticket is to refactor things so that we don't have similar code duplicated between InitializationFilter and Listener, and we can count on OpenMRS reliably starting up the same way the first time as subsequent times.

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              dkayiwa Daniel Kayiwa
              Reporter:
              darius Darius Jazayeri
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 days
                  2d
                  Remaining:
                  Remaining Estimate - 2 days
                  2d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified