Skip to content

Commit

Permalink
Ensure location is not null so aggregation cache is used (Unidata#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdrwenski authored and WeatherGod committed Apr 18, 2024
1 parent 91ba64f commit 3a6faf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tds/src/main/java/thredds/core/DatasetManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<FeatureDatasetCoverage> opt = CoverageDatasetFactory.openNcmlString(ncml);
Optional<FeatureDatasetCoverage> opt =
CoverageDatasetFactory.openNcmlString(ncml, DatasetUrl.findDatasetUrl(reqPath).getTrueurl());
if (!opt.isPresent())
throw new FileNotFoundException("NcML is not a Grid Dataset " + reqPath + " err=" + opt.getErrorMessage());

Expand Down

0 comments on commit 3a6faf9

Please sign in to comment.