fix: [stix 1&2 export] Using the restSearch API instead of the old download one

pull/4075/head
chrisr3d 2019-02-01 10:25:09 +01:00
parent 98321937a9
commit d6af2a7d04
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 4 additions and 4 deletions

View File

@ -4024,12 +4024,12 @@ class EventsController extends AppController
'checkbox_set' => '/events/csv/download/' . $id . '/1/0/0/0/1'
),
'stix_xml' => array(
'url' => '/events/stix/download/' . $id . '.xml',
'url' => '/events/restSearch/stix/eventid:' . $id,
'text' => 'STIX XML (metadata + all attributes)',
'requiresPublished' => true,
'checkbox' => true,
'checkbox_text' => 'Encode Attachments',
'checkbox_set' => '/events/stix/download/' . $id . '/true.xml'
'checkbox_set' => '/events/restSearch/stix/eventid:' . $id . '/includeAttachments:1'
),
'stix_json' => array(
'url' => '/events/stix/download/' . $id . '.json',
@ -4040,12 +4040,12 @@ class EventsController extends AppController
'checkbox_set' => '/events/stix/download/' . $id . '/true.json'
),
'stix2_json' => array(
'url' => '/events/stix2/download/' . $id . '.json',
'url' => '/events/restSearch/stix2/eventid:' . $id,
'text' => 'STIX2 (requires the STIX 2 library)',
'requiresPublished' => false,
'checkbox' => true,
'checkbox_text' => 'Encode Attachments',
'checkbox_set' => '/events/stix2/download/' . $id . '/1.json'
'checkbox_set' => '/events/restSearch/stix2/eventid:' . $id . '/includeAttachments:1'
),
'rpz' => array(
'url' => '/attributes/rpz/download/false/' . $id,