Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sleuthkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Sleuthkit
Commits
466ce462
Commit
466ce462
authored
4 years ago
by
U-BASIS\dsmyda
Browse files
Options
Downloads
Patches
Plain Diff
Updated blackboard attribute to populate the parent data source ID if it's not specified
parent
cc35e816
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bindings/java/src/org/sleuthkit/datamodel/BlackboardAttribute.java
+5
-1
5 additions, 1 deletion
...java/src/org/sleuthkit/datamodel/BlackboardAttribute.java
with
5 additions
and
1 deletion
bindings/java/src/org/sleuthkit/datamodel/BlackboardAttribute.java
+
5
−
1
View file @
466ce462
...
@@ -65,7 +65,7 @@ public class BlackboardAttribute {
...
@@ -65,7 +65,7 @@ public class BlackboardAttribute {
// The parent data source is defined as being
// The parent data source is defined as being
// the data source of the parent artifact.
// the data source of the parent artifact.
private
l
ong
parentDataSourceID
;
private
L
ong
parentDataSourceID
;
/**
/**
* Constructs a standard attribute with an integer value. The attribute
* Constructs a standard attribute with an integer value. The attribute
...
@@ -542,6 +542,10 @@ public String getDisplayString() {
...
@@ -542,6 +542,10 @@ public String getDisplayString() {
case
DATETIME:
{
case
DATETIME:
{
try
{
try
{
if
(
parentDataSourceID
==
null
)
{
BlackboardArtifact
parent
=
getParentArtifact
();
parentDataSourceID
=
parent
.
getDataSourceObjectID
();
}
final
Content
dataSource
=
sleuthkitCase
.
getContentById
(
parentDataSourceID
);
final
Content
dataSource
=
sleuthkitCase
.
getContentById
(
parentDataSourceID
);
if
((
dataSource
!=
null
)
&&
(
dataSource
instanceof
Image
))
{
if
((
dataSource
!=
null
)
&&
(
dataSource
instanceof
Image
))
{
// return the date/time string in the timezone associated with the datasource,
// return the date/time string in the timezone associated with the datasource,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment