From 59326cde39a244766ef18af562dac4f01e5b99a9 Mon Sep 17 00:00:00 2001 From: gaellafond Date: Fri, 11 Aug 2023 11:59:13 +0800 Subject: [PATCH] AtlasMapper 2.4.6 - Fixed layerInfo requests, to work with older version of java. --- pom.xml | 2 +- src/main/webapp/public/layersInfo.jsp | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index bf3e7b6..6aa9f93 100644 --- a/pom.xml +++ b/pom.xml @@ -25,7 +25,7 @@ au.gov.aims atlasmapper war - 2.4.5 + 2.4.6 AtlasMapper server and clients This application compiled as a single War, that can be deployed in Tomcat, without any other dependency.\n\ It contains:\n\ diff --git a/src/main/webapp/public/layersInfo.jsp b/src/main/webapp/public/layersInfo.jsp index 69a19cf..0ec569d 100644 --- a/src/main/webapp/public/layersInfo.jsp +++ b/src/main/webapp/public/layersInfo.jsp @@ -58,8 +58,15 @@ if (Utils.isNotBlank(iso19115_19139url)) { ThreadLogger logger = new ThreadLogger(); URLSaveState mapState; - try (URLCache urlCache = new URLCache(configManager)) { + + URLCache urlCache = null; + try { + urlCache = new URLCache(configManager); mapState = configManager.getMapStateForDataset(logger, urlCache, clientConfig, iso19115_19139url, false); + } finally { + if (urlCache != null) { + urlCache.close(); + } } if (mapState == null) {