SORMAS-Foundation / SORMAS-Project

SORMAS (Surveillance, Outbreak Response Management and Analysis System) is an early warning and management system to fight the spread of infectious diseases.
https://sormas.org
GNU General Public License v3.0
292 stars 142 forks source link

Handle External Journal Person Update when there is no current user #8601

Closed BarnaBartha closed 2 years ago

BarnaBartha commented 2 years ago

Bug Description

Handle External Journal Person Update when there is no current user. When an entity update/delete from the cron service propagates to the update of external journal person, pseudonymization throws an error because there is no current user.

Do not use pseudonymization for handleExternalJournalPersonUpdateSync

richardbartha commented 2 years ago

Ticket validated on hotfix-1.70.1 branch local environment with version 1.70.1-snapshot(https://github.com/hzi-braunschweig/SORMAS-Project/commit/53c162ed94caaa21e707c2859b552693dd83c279) Peer tested with @BarnaBartha the nullPointerException issue is not reproducible after fix (no pseduomization for externalJurnalPerson). NOTE: This was not tested on an instance with a complete integration with Climedo!