mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
is supported function for other occurrences tab of content viewer had a bug (needs to exit if abstract file cannot be derived from the node)
This commit is contained in:
parent
359900250d
commit
d8bd086ad7
@ -481,6 +481,7 @@ public class DataContentViewerOtherCases extends javax.swing.JPanel implements D
|
|||||||
ArtifactKey instKey = new ArtifactKey(dataSource.getDeviceID(), filePath);
|
ArtifactKey instKey = new ArtifactKey(dataSource.getDeviceID(), filePath);
|
||||||
if (!artifactInstances.containsKey(instKey)) {
|
if (!artifactInstances.containsKey(instKey)) {
|
||||||
TskData.FileKnown knownStatus = fileMatch.getKnown();
|
TskData.FileKnown knownStatus = fileMatch.getKnown();
|
||||||
|
|
||||||
CorrelationAttributeInstance inst = new CorrelationAttributeInstance(caze, dataSource, filePath, "", knownStatus);
|
CorrelationAttributeInstance inst = new CorrelationAttributeInstance(caze, dataSource, filePath, "", knownStatus);
|
||||||
artifactInstances.put(instKey, inst);
|
artifactInstances.put(instKey, inst);
|
||||||
}
|
}
|
||||||
@ -503,8 +504,13 @@ public class DataContentViewerOtherCases extends javax.swing.JPanel implements D
|
|||||||
@Override
|
@Override
|
||||||
public boolean isSupported(Node node) {
|
public boolean isSupported(Node node) {
|
||||||
this.file = this.getAbstractFileFromNode(node);
|
this.file = this.getAbstractFileFromNode(node);
|
||||||
// Is supported if this node has correlatable content (File, BlackboardArtifact) or other common files across datasources.
|
// Is supported if this node
|
||||||
return !getCorrelationAttributesFromNode(node).isEmpty() && this.file.getSize() > 0; // TODO should we check for 0 size md5 instead
|
// has correlatable content (File, BlackboardArtifact) OR
|
||||||
|
// other common files across datasources.
|
||||||
|
return
|
||||||
|
this.file != null &&
|
||||||
|
this.file.getSize() > 0 &&
|
||||||
|
!getCorrelationAttributesFromNode(node).isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user