Uploaded image for project: 'Location Based Access Control'
  1. Location Based Access Control
  2. LBAC-10

Failed to get the location property from the Daemon thread user

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1.0
    • Labels:
    • Complexity:
      Low

      Description

      Location based access control fetches the session location from the UserContext of the logged in user. 

      There are some listeners(i.e : PatientViewedEventListener) which are running in the background as the Daemon threads. So when a method (i.e : getPatientByUuid()) calls from that Daemon thread, it uses a daemon user to access the authenticated properties

      Talk Discussion: https://talk.openmrs.org/t/could-not-fetch-the-usercontext-for-a-getpatientbyuuid-call-from-emrapi-module/18917

       

      Dev Notes. 

      Location based control module should provide an exception for the daemon thread user since that user doesn't have any location property itself and it is common for all system.

        Attachments

          Activity

            People

            Assignee:
            suthagar23 Suthagar Kailayapathy
            Reporter:
            suthagar23 Suthagar Kailayapathy
            Designated Committer:
            Suthagar Kailayapathy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: