mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-19 11:07:43 +00:00
Verify ALLOC meta flag is set on AbstractFile in ingest module prior to insert
This commit is contained in:
parent
531434660c
commit
d540acbdaa
@ -49,8 +49,8 @@ import org.sleuthkit.autopsy.centralrepository.datamodel.EamOrganization;
|
|||||||
import org.sleuthkit.datamodel.TskDataException;
|
import org.sleuthkit.datamodel.TskDataException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ingest module for inserting entries into the Central Repository
|
* Ingest module for inserting entries into the Central Repository database on
|
||||||
* database on ingest of a data source
|
* ingest of a data source
|
||||||
*/
|
*/
|
||||||
@Messages({"IngestModule.prevcases.text=Previous Cases"})
|
@Messages({"IngestModule.prevcases.text=Previous Cases"})
|
||||||
class IngestModule implements FileIngestModule {
|
class IngestModule implements FileIngestModule {
|
||||||
@ -83,7 +83,8 @@ class IngestModule implements FileIngestModule {
|
|||||||
|| (af.getType() == TskData.TSK_DB_FILES_TYPE_ENUM.UNUSED_BLOCKS)
|
|| (af.getType() == TskData.TSK_DB_FILES_TYPE_ENUM.UNUSED_BLOCKS)
|
||||||
|| (af.getType() == TskData.TSK_DB_FILES_TYPE_ENUM.SLACK)
|
|| (af.getType() == TskData.TSK_DB_FILES_TYPE_ENUM.SLACK)
|
||||||
|| (af.getKnown() == TskData.FileKnown.KNOWN)
|
|| (af.getKnown() == TskData.FileKnown.KNOWN)
|
||||||
|| (af.isDir() == true)) {
|
|| (af.isDir() == true)
|
||||||
|
|| (!af.isMetaFlagSet(TskData.TSK_FS_META_FLAG_ENUM.ALLOC))) {
|
||||||
return ProcessResult.OK;
|
return ProcessResult.OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -158,7 +159,7 @@ class IngestModule implements FileIngestModule {
|
|||||||
*/
|
*/
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
EamDb dbManager = EamDb.getInstance();
|
EamDb dbManager = EamDb.getInstance();
|
||||||
try {
|
try {
|
||||||
dbManager.bulkInsertArtifacts();
|
dbManager.bulkInsertArtifacts();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user