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

UserContext should store locationId instead of the Location object

    XMLWordPrintable

Details

    Description

      Storing hibernate objects in the http session is discouraged because of issues like lazy loading exceptions that may come up. For this particular case, Lazily loading Location.childLocations led into problems as per the discussion at: https://groups.google.com/a/openmrs.org/forum/#!topic/dev/OjzXttNgckM

      So this ticket is about storing the locationId integer instead of the Location object in the UserContext, which is stored in the http session by OpenmrsFilter.

      Gliffy Diagrams

        Attachments

          Activity

            People

              k.joseph Kaweesi Joseph
              dkayiwa Daniel Kayiwa
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h