polyswarm / autopsy-module

Module for Autopsy to enable forensic analysts to submit files into PolySwarm marketplace for analysis.
MIT License
6 stars 1 forks source link

Check if file was already swarmed before submitting again. #16

Closed mrtizmoatwork closed 5 years ago

mrtizmoatwork commented 6 years ago

If a user submits a file to be Swarmed, but the file was previously submitted in the same case, don't submit it again. Display a pop-up window telling the user that they already submitted that file.

This will prevent them from seeing the sqlite db constraint violation exception on multi-submit.

This will prevent them from seeing duplicate attributes added to files in the PolySwarm Results results.

Rizato commented 6 years ago

We should also have a way to force rerun to work with https://github.com/polyswarm/consumer/issues/7.

mrtizmoatwork commented 6 years ago

82da58d adds check for existing pending submission and does not submit if one exists. This is the first step. The next steps are:

  1. instead of a complete block on the re-submission, prompt the user and allow them to force it.
  2. check the file for exisitng artifact/attribute so we don't end up with duplicate attributes