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
+2 -2
View File
@@ -117,7 +117,7 @@ class SampleJythonFileIngestModule(FileIngestModule):
return IngestModule.ProcessResult.OK
# Use blackboard class to index blackboard artifacts for keyword search
blackboard = Case.getCurrentCase().getServices().getBlackboard()
blackboard = Case.getCurrentCase().getSleuthkitCase().getBlackboard()
# For an example, we will flag files with .txt in the name and make a blackboard artifact.
if file.getName().lower().endswith(".txt"):
@@ -135,7 +135,7 @@ class SampleJythonFileIngestModule(FileIngestModule):
try:
# post the artifact for listeners of artifact events
blackboard.postArtifact(art)
blackboard.postArtifact(art, SampleJythonFileIngestModuleFactory.moduleName)
except Blackboard.BlackboardException as e:
self.log(Level.SEVERE, "Error indexing artifact " + art.getDisplayName())