Skip to content

Commit

Permalink
[GWC-1198] Upgrade Hazelcast from 5.3.1 to 5.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
sikeoka committed Dec 11, 2023
1 parent 8f005f1 commit 1b35208
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
5 changes: 5 additions & 0 deletions geowebcache/distributed/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
<artifactId>gwc-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-xml</artifactId>
<version>${gt.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import java.util.logging.Logger;
import org.apache.commons.io.filefilter.NameFileFilter;
import org.geotools.util.logging.Logging;
import org.geotools.xml.XMLUtils;
import org.springframework.beans.factory.InitializingBean;

/**
Expand All @@ -54,6 +55,18 @@ public class HazelcastLoader implements InitializingBean {
/** Hazelcast instance to pass to the {@link HazelcastCacheProvider} class */
private HazelcastInstance instance;

// Disable Hazelcast's XXE protection if the XML libraries don't support JAXP 1.5
static {
if (System.getProperty("hazelcast.ignoreXxeProtectionFailures") == null) {
try {
XMLUtils.checkSupportForJAXP15Properties();
} catch (IllegalStateException e) {
LOGGER.warning("Disabling Hazelcast XXE protection because " + e.getMessage());
System.setProperty("hazelcast.ignoreXxeProtectionFailures", "true");
}
}
}

@Override
public void afterPropertiesSet() throws Exception {
if (instance == null) {
Expand Down
2 changes: 1 addition & 1 deletion geowebcache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<test.maxHeapSize>64M</test.maxHeapSize>
<maven.test.jvmargs></maven.test.jvmargs>
<imageio-ext.version>1.4.7</imageio-ext.version>
<hazelcast.version>5.3.1</hazelcast.version>
<hazelcast.version>5.3.6</hazelcast.version>
<joda-time.version>2.8.1</joda-time.version>
<spotless.action>apply</spotless.action>
<spotless.apply.skip>false</spotless.apply.skip>
Expand Down

0 comments on commit 1b35208

Please sign in to comment.