From 3a6faf9e3c082d6462a5308fbdb9c6584ea71fc2 Mon Sep 17 00:00:00 2001 From: Tara Drwenski Date: Wed, 13 Mar 2024 12:35:56 -0600 Subject: [PATCH] Ensure location is not null so aggregation cache is used (#475) --- tds/src/main/java/thredds/core/DatasetManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tds/src/main/java/thredds/core/DatasetManager.java b/tds/src/main/java/thredds/core/DatasetManager.java index a22d2c160b..aaaeca3911 100644 --- a/tds/src/main/java/thredds/core/DatasetManager.java +++ b/tds/src/main/java/thredds/core/DatasetManager.java @@ -399,7 +399,8 @@ public CoverageCollection openCoverageDataset(HttpServletRequest req, HttpServle // since the urlPath doesn't need to point to a file if there is ncml String ncml = datasetTracker.findNcml(reqPath); if (ncml != null) { - Optional opt = CoverageDatasetFactory.openNcmlString(ncml); + Optional opt = + CoverageDatasetFactory.openNcmlString(ncml, DatasetUrl.findDatasetUrl(reqPath).getTrueurl()); if (!opt.isPresent()) throw new FileNotFoundException("NcML is not a Grid Dataset " + reqPath + " err=" + opt.getErrorMessage());