Merge branch 'develop' of https://github.com/sleuthkit/autopsy into 2462-UnableToDeleteCases

This commit is contained in:
William Schaefer 2017-03-30 10:29:18 -04:00
commit f6cb425445
2 changed files with 5 additions and 4 deletions

View File

@ -370,7 +370,7 @@ public final class SearchRunner {
private List<Keyword> keywords; //keywords to search private List<Keyword> keywords; //keywords to search
private List<String> keywordListNames; // lists currently being searched private List<String> keywordListNames; // lists currently being searched
private List<KeywordList> keywordLists; private List<KeywordList> keywordLists;
private Map<String, KeywordList> keywordToList; //keyword to list name mapping private Map<Keyword, KeywordList> keywordToList; //keyword to list name mapping
private AggregateProgressHandle progressGroup; private AggregateProgressHandle progressGroup;
private final Logger logger = Logger.getLogger(SearchRunner.Searcher.class.getName()); private final Logger logger = Logger.getLogger(SearchRunner.Searcher.class.getName());
private boolean finalRun = false; private boolean finalRun = false;
@ -431,8 +431,7 @@ public final class SearchRunner {
return null; return null;
} }
final String queryStr = keyword.getSearchTerm(); final KeywordList keywordList = keywordToList.get(keyword);
final KeywordList keywordList = keywordToList.get(queryStr);
//new subProgress will be active after the initial query //new subProgress will be active after the initial query
//when we know number of hits to start() with //when we know number of hits to start() with
@ -545,7 +544,7 @@ public final class SearchRunner {
keywordLists.add(list); keywordLists.add(list);
for (Keyword k : list.getKeywords()) { for (Keyword k : list.getKeywords()) {
keywords.add(k); keywords.add(k);
keywordToList.put(k.getSearchTerm(), list); keywordToList.put(k, list);
} }
} }
} }

View File

@ -25,6 +25,7 @@ import junit.framework.Test;
import junit.framework.TestCase; import junit.framework.TestCase;
import org.netbeans.jemmy.Timeouts; import org.netbeans.jemmy.Timeouts;
import org.netbeans.junit.NbModuleSuite; import org.netbeans.junit.NbModuleSuite;
import org.sleuthkit.autopsy.core.UserPreferences;
/** /**
* This test expects the following system properties to be set: img_path: The * This test expects the following system properties to be set: img_path: The
@ -98,6 +99,7 @@ public class RegressionTest extends TestCase {
public void setUp() { public void setUp() {
logger.info("######## " + AutopsyTestCases.getEscapedPath(System.getProperty("img_path")) + " #######"); logger.info("######## " + AutopsyTestCases.getEscapedPath(System.getProperty("img_path")) + " #######");
Timeouts.setDefault("ComponentOperator.WaitComponentTimeout", 1000000); Timeouts.setDefault("ComponentOperator.WaitComponentTimeout", 1000000);
UserPreferences.setNumberOfFileIngestThreads(1); //Let nightly test using 1 ingest thread to avoid ordering results in report of insertion to tsk tables
} }
/** /**