mirror of https://github.com/MISP/MISP
fix: [signing] fail gracefully if pgp not configured on event index
- return the index, but set fingerprint as null rather than throwing an exceptionpull/8227/head
parent
615ef1a6e7
commit
891572be9f
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in New Issue