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());