Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Autopsy
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
Autopsy
Commits
2de8646b
Commit
2de8646b
authored
1 year ago
by
Greg DiCristofaro
Browse files
Options
Downloads
Patches
Plain Diff
updates for ignoring placeholder paths
parent
9e4c0b98
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
Core/src/org/sleuthkit/autopsy/casemodule/Case.java
+9
-0
9 additions, 0 deletions
Core/src/org/sleuthkit/autopsy/casemodule/Case.java
with
9 additions
and
0 deletions
Core/src/org/sleuthkit/autopsy/casemodule/Case.java
+
9
−
0
View file @
2de8646b
...
@@ -194,6 +194,8 @@ public class Case {
...
@@ -194,6 +194,8 @@ public class Case {
private
final
SleuthkitEventListener
sleuthkitEventListener
;
private
final
SleuthkitEventListener
sleuthkitEventListener
;
private
CollaborationMonitor
collaborationMonitor
;
private
CollaborationMonitor
collaborationMonitor
;
private
Services
caseServices
;
private
Services
caseServices
;
// matches something like '\\.\PHYSICALDRIVE0'
private
static
final
String
PLACEHOLDER_DS_PATH_REGEX
=
"^\\s*\\\\\\\\\\.\\\\(PHYSICALDRIVE)\\d*\\s*$"
;
private
volatile
boolean
hasDataSource
=
false
;
private
volatile
boolean
hasDataSource
=
false
;
private
volatile
boolean
hasData
=
false
;
private
volatile
boolean
hasData
=
false
;
...
@@ -1305,6 +1307,13 @@ private static void updateGUIForCaseOpened(Case newCurrentCase) {
...
@@ -1305,6 +1307,13 @@ private static void updateGUIForCaseOpened(Case newCurrentCase) {
String
path
=
entry
.
getValue
();
String
path
=
entry
.
getValue
();
boolean
fileExists
=
(
new
File
(
path
).
isFile
()
||
DriveUtils
.
driveExists
(
path
));
boolean
fileExists
=
(
new
File
(
path
).
isFile
()
||
DriveUtils
.
driveExists
(
path
));
if
(!
fileExists
)
{
if
(!
fileExists
)
{
// CT-7336: ignore relocating datasources if file provider is present and placeholder path is used.
if
(
newCurrentCase
.
getMetadata
()
!=
null
&&
!
StringUtils
.
isBlank
(
newCurrentCase
.
getMetadata
().
getContentProviderName
())
&&
(
path
==
null
||
path
.
matches
(
PLACEHOLDER_DS_PATH_REGEX
)))
{
continue
;
}
try
{
try
{
// Using invokeAndWait means that the dialog will
// Using invokeAndWait means that the dialog will
// open on the EDT but this thread will wait for an
// open on the EDT but this thread will wait for an
...
...
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