Skip to content

Commit

Permalink
Ref #332: grab results after sample was not submitted due to deactiva…
Browse files Browse the repository at this point in the history
…ted reanalyzation
  • Loading branch information
3c7 committed Aug 14, 2018
1 parent d2847c3 commit c192c81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
3 changes: 2 additions & 1 deletion analyzers/VMRay/vmray.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def run(self):
if self.disable_reanalyze:
if len(submit_report['data']['errors']) > 0:
if submit_report['result'] == 'ok':
self.report({'submitreport': {'link': submit_report['data']['samples'][0]['sample_webif_url']}})
# Sample is already there, get the report
self.report({'scanreport': self.vmrc.get_sample(samplehash=submit_report['data']['samples'][0]['sample_sha256hash'])})
else:
self.error('Error while submitting sample to VMRay: {}.'
.format([error_msg for error_msg in submit_report['data']['errors']]))
Expand Down
9 changes: 0 additions & 9 deletions thehive-templates/VMRay_3_0/long.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,6 @@
</div>
</div>

<div class="panel panel-info" ng-if="success && content.submitreport">
<div class="panel-heading">
VMRay Report
</div>
<div class="panel-body">
<p>Sample was already submitted before and reanalization seems to be disabled. Find the sample <a href="{{content.submitreport.link}}">here</a>.</p>
</div>
</div>

<div class="panel panel-danger" ng-if="!success">
<div class="panel-heading">
VMRay Report returned with an error
Expand Down

0 comments on commit c192c81

Please sign in to comment.