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

Out of date Lucene index causes pt search failure if pt deleted

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Ready for Work
    • Priority: Should
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Complexity:
      Low
    • Development:

      Description

      If a patient is deleted and Lucene isn't reindexed, patientSearchWidget will crash, leaving a spinning wheel on the screen and an error in the dev console.

      This happens because the API returns a result for that deleted person (presumably with the data from Lucene), but when it doesn't find database entries for that person it simply puts in `null`. An error is thrown when the frontend attempts to reference a property of that null object.

      Instead, the server should exclude the search result and log an informative WARNING (including patient ID and a suggestion to reindex Lucene).

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              bistenes Brandon Istenes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: