mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Remove references to hash db in Add Image Wizard (broken in latest Sleuthkit) to make way for Ingest Service
This commit is contained in:
parent
6818d6c96e
commit
6ab994f605
@ -36,7 +36,6 @@ import org.openide.util.HelpCtx;
|
||||
import org.openide.util.Lookup;
|
||||
import org.sleuthkit.autopsy.coreutils.AutopsyPropFile;
|
||||
import org.sleuthkit.autopsy.coreutils.Log;
|
||||
import org.sleuthkit.autopsy.hashdatabase.HashDbSettings;
|
||||
|
||||
/**
|
||||
* The "Add Image" wizard panel1 handling the logic of selecting image file(s)
|
||||
@ -178,13 +177,6 @@ class AddImageWizardPanel1 implements WizardDescriptor.Panel<WizardDescriptor>,
|
||||
// Load hash database settings, enable or disable the checkbox
|
||||
this.NSRLPath = null;
|
||||
this.knownBadPath = null;
|
||||
try {
|
||||
HashDbSettings hashDbs = HashDbSettings.getHashDbSettings();
|
||||
this.NSRLPath = hashDbs.getNSRLDatabasePath();
|
||||
this.knownBadPath = hashDbs.getKnownBadDatabasePath();
|
||||
} catch (IOException ex) {
|
||||
Log.get(AddImageWizardPanel1.class).log(Level.WARNING, "Couldn't get hash database settings.", ex);
|
||||
}
|
||||
JCheckBox lookupFilesCheckbox = component.getLookupFilesCheckbox();
|
||||
lookupFilesCheckbox.setSelected(false);
|
||||
lookupFilesCheckbox.setEnabled(this.NSRLPath != null || this.knownBadPath != null);
|
||||
|
@ -40,7 +40,6 @@ import org.openide.util.HelpCtx;
|
||||
import org.openide.util.Lookup;
|
||||
import org.sleuthkit.autopsy.coreutils.AutopsyPropFile;
|
||||
import org.sleuthkit.autopsy.coreutils.Log;
|
||||
import org.sleuthkit.autopsy.hashdatabase.HashDbSettings;
|
||||
import org.sleuthkit.datamodel.SleuthkitCase;
|
||||
import org.sleuthkit.datamodel.SleuthkitJNI.CaseDbHandle.AddImageProcess;
|
||||
import org.sleuthkit.datamodel.TskException;
|
||||
@ -201,17 +200,6 @@ class AddImageWizardPanel2 implements WizardDescriptor.Panel<WizardDescriptor> {
|
||||
imgAdded = false;
|
||||
imgPaths = (String[]) settings.getProperty(AddImageAction.IMGPATHS_PROP);
|
||||
timeZone = settings.getProperty(AddImageAction.TIMEZONE_PROP).toString();
|
||||
lookupFilesCheckboxChecked = (Boolean) settings.getProperty(AddImageAction.LOOKUPFILES_PROP);
|
||||
if(lookupFilesCheckboxChecked){
|
||||
try {
|
||||
HashDbSettings hashDbSettings;
|
||||
hashDbSettings = HashDbSettings.getHashDbSettings();
|
||||
NSRLPath = hashDbSettings.getNSRLDatabasePath();
|
||||
knownBadPath = hashDbSettings.getKnownBadDatabasePath();
|
||||
} catch (IOException ex) {
|
||||
Log.get(AddImageWizardPanel2.class).log(Level.WARNING, "Couldn't get hash db settings", ex);
|
||||
}
|
||||
}
|
||||
|
||||
component.changeProgressBarTextAndColor("", 0, Color.black);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user