ARTEMIS-3605 Upgrade jetty version to 9.4.44.v20210927

This commit is contained in:
Domenico Francesco Bruscino 2021-12-13 12:11:14 +01:00 committed by clebertsuconic
parent 923d0dc028
commit c502e94ade
2 changed files with 6 additions and 1 deletions

View File

@ -32,6 +32,7 @@ import org.apache.activemq.artemis.components.ExternalComponent;
import org.apache.activemq.artemis.dto.AppDTO;
import org.apache.activemq.artemis.dto.ComponentDTO;
import org.apache.activemq.artemis.dto.WebServerDTO;
import org.eclipse.jetty.security.DefaultAuthenticatorFactory;
import org.eclipse.jetty.server.ConnectionFactory;
import org.eclipse.jetty.server.Connector;
import org.eclipse.jetty.server.HttpConfiguration;
@ -342,6 +343,10 @@ public class WebServerComponent implements ExternalComponent {
webapp.setAttribute("org.eclipse.jetty.webapp.basetempdir", temporaryWarDir.toFile().getAbsolutePath());
// Set the default authenticator factory to avoid NPE due to the following commit:
// https://github.com/eclipse/jetty.project/commit/7e91d34177a880ecbe70009e8f200d02e3a0c5dd
webapp.getSecurityHandler().setAuthenticatorFactory(new DefaultAuthenticatorFactory());
handlers.addHandler(webapp);
return webapp;
}

View File

@ -100,7 +100,7 @@
<fuse.mqtt.client.version>1.16</fuse.mqtt.client.version>
<guava.version>30.1-jre</guava.version>
<jboss.logging.version>3.4.2.Final</jboss.logging.version>
<jetty.version>9.4.43.v20210629</jetty.version>
<jetty.version>9.4.44.v20210927</jetty.version>
<jgroups.version>3.6.13.Final</jgroups.version>
<errorprone.version>2.9.0</errorprone.version>
<maven.enforcer.plugin.version>3.0.0-M3</maven.enforcer.plugin.version>