1
0
mirror of https://github.com/elisspace/autopsy.git synced 2026-08-30 08:01:57 +00:00

bug fixes

This commit is contained in:
Greg DiCristofaro
2021-07-20 13:09:53 -04:00
parent 8279df1a3b
commit c32ab89922
6 changed files with 13 additions and 9 deletions

View File

@@ -115,7 +115,7 @@ class SampleJythonDataSourceIngestModule(DataSourceIngestModule):
progressBar.switchToIndeterminate()
# Use blackboard class to index blackboard artifacts for keyword search
blackboard = Case.getCurrentCase().getServices().getBlackboard()
blackboard = Case.getCurrentCase().getSleuthkitCase().getBlackboard()
# For our example, we will use FileManager to get all
# files with the word "test"
@@ -147,7 +147,7 @@ class SampleJythonDataSourceIngestModule(DataSourceIngestModule):
try:
# post the artifact for listeners of artifact events.
blackboard.postArtifact(art)
blackboard.postArtifact(art, SampleJythonDataSourceIngestModuleFactory.moduleName)
except Blackboard.BlackboardException as e:
self.log(Level.SEVERE, "Error indexing artifact " + art.getDisplayName())