From acab96d5f65a597110412ade916e788ac5e89aca Mon Sep 17 00:00:00 2001 From: Dan Galdi Date: Thu, 4 Apr 2024 10:10:45 -0400 Subject: [PATCH] Adding some logging to jbrowse vdi --- .../service/services/jbrowse/JBrowseUserDatasetsService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Service/src/main/java/org/apidb/apicommon/service/services/jbrowse/JBrowseUserDatasetsService.java b/Service/src/main/java/org/apidb/apicommon/service/services/jbrowse/JBrowseUserDatasetsService.java index 59e7868f0..7a5870134 100644 --- a/Service/src/main/java/org/apidb/apicommon/service/services/jbrowse/JBrowseUserDatasetsService.java +++ b/Service/src/main/java/org/apidb/apicommon/service/services/jbrowse/JBrowseUserDatasetsService.java @@ -75,6 +75,8 @@ public Response getAllUserDatasetFileJBrowse(@QueryParam("data") String data, String path = String.format("%s/build-%s/%s/%s/%s", udDir, buildNumber, getWdkModel().getProjectId(), datasetID, data); + LOG.info("Looking up jbrowse files for dataset {} in directory " + path) + if (path.contains("..") || path.contains("$")) { throw new NotFoundException(formatNotFound("*")); }