Merge pull request #6277 from kellykelly3/6808-replace-all-exif-with-pa

6808 replace all exif with pa
This commit is contained in:
Richard Cordovano
2020-09-16 19:08:03 -04:00
committed by GitHub
4 changed files with 6 additions and 7 deletions
@@ -1,6 +1,6 @@
CTL_OpenDiscoveryAction=Discovery
# {0} - dataSourceName
DataSourceModuleWrapper.exifModule.text=Exif Parser module was not run on data source: {0}\n
DataSourceModuleWrapper.exifModule.text=Picture Analyzer module was not run on data source: {0}\n
# {0} - dataSourceName
DataSourceModuleWrapper.fileTypeModule.text=File Type Identification module was not run on data source: {0}\n
# {0} - dataSourceName
@@ -49,7 +49,7 @@ class DataSourceModulesWrapper {
"# {0} - dataSourceName",
"DataSourceModuleWrapper.fileTypeModule.text=File Type Identification module was not run on data source: {0}\n",
"# {0} - dataSourceName",
"DataSourceModuleWrapper.exifModule.text=Exif Parser module was not run on data source: {0}\n"
"DataSourceModuleWrapper.exifModule.text=Picture Analyzer module was not run on data source: {0}\n"
})
/**
* Get the message which indicates which modules were not run on this data
@@ -1,3 +1,2 @@
ExifProcessor.indexError.message=Failed to post EXIF Metadata artifact(s).
ExifProcessor.module_name=Exif Parser
ExifProcessor.userContent.description=EXIF metadata exists for this file.
ExifProcessor.userContent.description=EXIF metadata data exists for this file.
@@ -44,6 +44,7 @@ import org.sleuthkit.autopsy.ingest.IngestJobContext;
import org.sleuthkit.datamodel.AbstractFile;
import org.sleuthkit.autopsy.coreutils.Logger;
import org.sleuthkit.autopsy.coreutils.MessageNotifyUtil;
import org.sleuthkit.autopsy.modules.pictureanalyzer.PictureAnalyzerIngestModuleFactory;
import org.sleuthkit.datamodel.Blackboard;
import org.sleuthkit.datamodel.BlackboardArtifact;
import static org.sleuthkit.datamodel.BlackboardArtifact.ARTIFACT_TYPE.TSK_METADATA_EXIF;
@@ -70,11 +71,10 @@ public class EXIFProcessor implements PictureProcessor {
@Override
@NbBundle.Messages({
"ExifProcessor.indexError.message=Failed to post EXIF Metadata artifact(s).",
"ExifProcessor.userContent.description=EXIF metadata exists for this file.",
"ExifProcessor.module_name=Exif Parser"
"ExifProcessor.userContent.description=EXIF metadata data exists for this file."
})
public void process(IngestJobContext context, AbstractFile file) {
final String MODULE_NAME = Bundle.ExifProcessor_module_name();
final String MODULE_NAME = PictureAnalyzerIngestModuleFactory.getModuleName();
try (BufferedInputStream bin = new BufferedInputStream(new ReadContentInputStream(file));) {