Skip to content

Commit ef74c1f

Browse files
author
William Schaefer
committed
3522 change case path used by Multi-User case panel to be real path instead of all caps
1 parent 4c11cb8 commit ef74c1f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Core/src/org/sleuthkit/autopsy/casemodule/CaseBrowser.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
import org.openide.nodes.Node;
3030
import java.awt.EventQueue;
3131
import java.io.File;
32+
import java.io.IOException;
33+
import java.nio.file.LinkOption;
3234
import java.nio.file.Path;
3335
import java.nio.file.Paths;
3436
import java.util.ArrayList;
@@ -222,10 +224,10 @@ private List<CaseMetadata> getCases() throws CoordinationService.CoordinationSer
222224
String name = file.getName().toLowerCase();
223225
if (autFilePath == null && name.endsWith(".aut")) {
224226
try {
225-
caseList.add(new CaseMetadata(Paths.get(file.getAbsolutePath())));
226-
} catch (CaseMetadata.CaseMetadataException ex) {
227+
caseList.add(new CaseMetadata(Paths.get(file.getAbsolutePath()).toRealPath(LinkOption.NOFOLLOW_LINKS)));
228+
} catch (CaseMetadata.CaseMetadataException | IOException ex) {
227229
LOGGER.log(Level.SEVERE, String.format("Error reading case metadata file '%s'.", autFilePath), ex);
228-
}
230+
}
229231
break;
230232
}
231233
}

0 commit comments

Comments
 (0)