Skip to content

Commit

Permalink
AtlasMapper 2.4.6
Browse files Browse the repository at this point in the history
- Fixed layerInfo requests, to work with older version of java.
  • Loading branch information
gaellafond committed Aug 11, 2023
1 parent 7db25c3 commit 59326cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<groupId>au.gov.aims</groupId>
<artifactId>atlasmapper</artifactId>
<packaging>war</packaging>
<version>2.4.5</version>
<version>2.4.6</version>
<name>AtlasMapper server and clients</name>
<description>This application compiled as a single War, that can be deployed in Tomcat, without any other dependency.\n\
It contains:\n\
Expand Down
9 changes: 8 additions & 1 deletion src/main/webapp/public/layersInfo.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 59326cd

Please sign in to comment.