fix: [signing] fail gracefully if pgp not configured on event index

- return the index, but set fingerprint as null rather than throwing an exception
pull/8227/head
iglocska 2022-03-18 10:11:29 +01:00
parent 615ef1a6e7
commit 891572be9f
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 5 additions and 1 deletions

View File

@ -837,7 +837,11 @@ class EventsController extends AppController
$events = $absolute_total === 0 ? [] : $this->Event->find('all', $rules);
}
$isCsvResponse = $this->response->type() === 'text/csv';
$instanceFingerprint = $this->Event->CryptographicKey->ingestInstanceKey();
try {
$instanceFingerprint = $this->Event->CryptographicKey->ingestInstanceKey();
} catch (Exception $e) {
$instanceFingerprint = null;
}
if (!$minimal) {
// Collect all tag IDs that are events
$tagIds = [];