mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 09:17:42 +00:00
Merge pull request #2063 from eugene7646/pasco
Treating Pasco output parsing error as warning
This commit is contained in:
commit
263be3ee0c
@ -377,6 +377,14 @@ class ExtractIE extends Extract {
|
||||
ProcessBuilder processBuilder = new ProcessBuilder(commandLine);
|
||||
processBuilder.redirectOutput(new File(outputFileFullPath));
|
||||
processBuilder.redirectError(new File(errFileFullPath));
|
||||
/*
|
||||
NOTE on Pasco return codes: There is no documentation for Pasco.
|
||||
Looking at the Pasco source code I see that when something goes wrong Pasco
|
||||
returns a negative number as a return code. However, we should still
|
||||
attempt to parse the Pasco output even if that happens. I have seen
|
||||
many situations where Pasco output file contains a lot of useful data
|
||||
and only the last entry is corrupted.
|
||||
*/
|
||||
ExecUtil.execute(processBuilder, new DataSourceIngestModuleProcessTerminator(context));
|
||||
// @@@ Investigate use of history versus cache as type.
|
||||
} catch (IOException ex) {
|
||||
@ -483,7 +491,7 @@ class ExtractIE extends Extract {
|
||||
this.addErrorMessage(
|
||||
NbBundle.getMessage(this.getClass(), "ExtractIE.parsePascoOutput.errMsg.errParsingEntry",
|
||||
this.getName()));
|
||||
logger.log(Level.SEVERE, "Error parsing Pasco results.", e); //NON-NLS
|
||||
logger.log(Level.WARNING, "Error parsing Pasco results.", e); //NON-NLS
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user