Upgrade to Undertow 2.2.24.Final

Closes gh-35541
This commit is contained in:
Andy Wilkinson 2023-05-17 21:25:52 +01:00
parent 47f1fc57d9
commit 7f9fd042fb
3 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2023 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -85,6 +85,7 @@ public class UndertowWebServerFactoryCustomizer
map.from(this::getOrDeduceUseForwardHeaders).to(factory::setUseForwardHeaders); map.from(this::getOrDeduceUseForwardHeaders).to(factory::setUseForwardHeaders);
} }
@SuppressWarnings("deprecation")
private void mapUndertowProperties(ConfigurableUndertowWebServerFactory factory, ServerOptions serverOptions) { private void mapUndertowProperties(ConfigurableUndertowWebServerFactory factory, ServerOptions serverOptions) {
PropertyMapper map = PropertyMapper.get().alwaysApplyingWhenNonNull(); PropertyMapper map = PropertyMapper.get().alwaysApplyingWhenNonNull();
Undertow properties = this.serverProperties.getUndertow(); Undertow properties = this.serverProperties.getUndertow();

View File

@ -150,6 +150,7 @@ class UndertowWebServerFactoryCustomizerTests {
} }
@Test @Test
@SuppressWarnings("deprecation")
void allowEncodedSlashes() { void allowEncodedSlashes() {
bind("server.undertow.allow-encoded-slash=true"); bind("server.undertow.allow-encoded-slash=true");
assertThat(boundServerOption(UndertowOptions.ALLOW_ENCODED_SLASH)).isTrue(); assertThat(boundServerOption(UndertowOptions.ALLOW_ENCODED_SLASH)).isTrue();

View File

@ -1882,7 +1882,7 @@ bom {
] ]
} }
} }
library("Undertow", "2.2.20.Final") { library("Undertow", "2.2.24.Final") {
group("io.undertow") { group("io.undertow") {
modules = [ modules = [
"undertow-core", "undertow-core",