Skip to content

Commit 5c7542e

Browse files
authored
Merge pull request #41798 from gsmet/3.12.2-backports-1
[3.12] 3.12.2 backports 1
2 parents 08f02f0 + fa9a9ca commit 5c7542e

File tree

67 files changed

+564
-164
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+564
-164
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ updates:
184184
- dependency-name: biz.paluch.logging:logstash-gelf
185185
- dependency-name: org.bitbucket.b_c:jose4j
186186
- dependency-name: io.fabric8:maven-model-helper
187+
- dependency-name: org.codejive:java-properties
187188
ignore:
188189
# this one cannot be upgraded due to the usage of proxies in new versions
189190
# the proxy implements interfaces in a random order which causes issues

.mvn/extensions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
<extension>
1818
<groupId>io.quarkus.develocity</groupId>
1919
<artifactId>quarkus-project-develocity-extension</artifactId>
20-
<version>1.1.1</version>
20+
<version>1.1.3</version>
2121
</extension>
2222
</extensions>

bom/application/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@
9292
<!-- GraalVM sdk 23.1.2 has a minimum JDK requirement of 17+ at runtime -->
9393
<graal-sdk.version>23.1.2</graal-sdk.version>
9494
<gizmo.version>1.8.0</gizmo.version>
95-
<jackson-bom.version>2.17.1</jackson-bom.version>
95+
<jackson-bom.version>2.17.2</jackson-bom.version>
9696
<commons-logging-jboss-logging.version>1.0.0.Final</commons-logging-jboss-logging.version>
9797
<commons-lang3.version>3.14.0</commons-lang3.version>
9898
<commons-codec.version>1.17.0</commons-codec.version>
9999
<classmate.version>1.7.0</classmate.version>
100100
<!-- See root POM for hibernate-orm.version, hibernate-reactive.version, hibernate-validator.version,
101101
hibernate-search.version, antlr.version, bytebuddy.version, hibernate-commons-annotations.version -->
102-
<narayana.version>7.0.1.Final</narayana.version>
102+
<narayana.version>7.0.2.Final</narayana.version>
103103
<agroal.version>2.4</agroal.version>
104104
<jboss-transaction-spi.version>8.0.0.Final</jboss-transaction-spi.version>
105105
<elasticsearch-opensource-components.version>8.14.0</elasticsearch-opensource-components.version>

core/deployment/src/main/java/io/quarkus/deployment/dev/filesystem/StaticFileManager.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,17 @@ public Iterable<? extends JavaFileObject> getJavaSources(Iterable<? extends File
3131
@Override
3232
public JavaFileObject getJavaFileForInput(Location location, String className, JavaFileObject.Kind kind)
3333
throws IOException {
34+
JavaFileObject file = this.fileManager.getJavaFileForInput(location, className, kind);
3435
// Ignore the module info of the application in dev mode.
35-
if (context.ignoreModuleInfo() && "CLASS_OUTPUT".equalsIgnoreCase(location.getName())
36+
if (file != null && context.ignoreModuleInfo() && "CLASS_OUTPUT".equalsIgnoreCase(location.getName())
3637
&& "module-info".equalsIgnoreCase(className)) {
3738
if (once.compareAndSet(false, true)) {
3839
Logger.getLogger(StaticFileManager.class).info("Ignoring module-info.java in dev mode, " +
3940
"set the `quarkus.live-reload.ignore-module-info` property to `false` in your project descriptor (`pom.xml` or `build.gradle`) to disable this behavior.");
4041
}
4142
return null;
4243
}
43-
return this.fileManager.getJavaFileForInput(location, className, kind);
44+
return file;
4445
}
4546

4647
}

core/deployment/src/main/java/io/quarkus/deployment/recording/BytecodeRecorderImpl.java

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,9 +1235,16 @@ public void prepare(MethodContext context) {
12351235
public void handle(MethodContext context, MethodCreator method,
12361236
DeferredArrayStoreParameter out) {
12371237
//get the collection
1238-
ResultHandle prop = method.invokeVirtualMethod(
1239-
MethodDescriptor.ofMethod(i.getReadMethod()),
1240-
context.loadDeferred(out));
1238+
ResultHandle prop;
1239+
if (i.getReadMethod().isDefault()) {
1240+
prop = method.invokeInterfaceMethod(
1241+
MethodDescriptor.ofMethod(i.getReadMethod()),
1242+
context.loadDeferred(out));
1243+
} else {
1244+
prop = method.invokeVirtualMethod(
1245+
MethodDescriptor.ofMethod(i.getReadMethod()),
1246+
context.loadDeferred(out));
1247+
}
12411248
for (DeferredParameter i : params) {
12421249
//add the parameter
12431250
//TODO: this is not guarded against large collections, probably not an issue in practice

core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageConfigBuildStep.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ void reinitHostNameUtil(BuildProducer<RuntimeReinitializedClassBuildItem> runtim
102102
// so we reinitialize this to re-compute the field (and other related fields) during native application's
103103
// runtime
104104
runtimeReInitClass.produce(new RuntimeReinitializedClassBuildItem("org.wildfly.common.net.HostName"));
105+
runtimeReInitClass.produce(new RuntimeReinitializedClassBuildItem("io.smallrye.common.net.HostName"));
105106
}
106107

107108
private Boolean isSslNativeEnabled(SslNativeConfigBuildItem sslNativeConfig,

docs/src/main/asciidoc/cdi-integration.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ IMPORTANT: It is not possible to conditionally enable/disable additional beans v
7676
----
7777
@BuildStep
7878
AdditionalBeanBuildItem additionalBeans() {
79-
return new AdditionalBeanBuildItem(SmallRyeHealthReporter.class, HealthServlet.class)); <1>
79+
return new AdditionalBeanBuildItem(SmallRyeHealthReporter.class, HealthServlet.class); <1>
8080
}
8181
----
8282
<1> `AdditionalBeanBuildItem.Builder` can be used for more complex use cases.

docs/src/main/asciidoc/security-customization.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ The observers can be either synchronous or asynchronous.
682682
* `io.quarkus.oidc.SecurityEvent`
683683
* `io.quarkus.vertx.http.runtime.security.FormAuthenticationEvent`
684684

685-
[[TIP]]
685+
[TIP]
686686
For more information about security events specific to the Quarkus OpenID Connect extension, please see
687687
the xref:security-oidc-code-flow-authentication.adoc#listen-to-authentication-events[Listening to important authentication events]
688688
section of the OIDC code flow mechanism for protecting web applications guide.

docs/src/main/asciidoc/security-keycloak-authorization.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ To start a Keycloak server, use the following Docker command:
226226
docker run --name keycloak -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin -p 8543:8443 -v "$(pwd)"/config/keycloak-keystore.jks:/etc/keycloak-keystore.jks quay.io/keycloak/keycloak:{keycloak.version} start --hostname-strict=false --https-key-store-file=/etc/keycloak-keystore.jks
227227
----
228228
229-
where `keycloak.version` must be `23.0.0` or later and the `keycloak-keystore.jks` can be found in https://github.com/quarkusio/quarkus-quickstarts/blob/main/security-keycloak-authorization-quickstart/config/keycloak-keystore.jks[quarkus-quickstarts/security-keycloak-authorization-quickstart/config].
229+
where `keycloak.version` must be `25.0.0` or later and the `keycloak-keystore.jks` can be found in https://github.com/quarkusio/quarkus-quickstarts/blob/main/security-keycloak-authorization-quickstart/config/keycloak-keystore.jks[quarkus-quickstarts/security-keycloak-authorization-quickstart/config].
230230
231231
Try to access your Keycloak server at https://localhost:8543[localhost:8543].
232232

docs/src/main/asciidoc/security-oidc-auth0-tutorial.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ quarkus.oidc.auth-server-url=https://dev-3ve0cgn7.us.auth0.com
689689

690690
which is all what is needed for the OIDC `service` application to fetch Auth0 public verification keys and use them to verify Auth0 access tokens in JWT format.
691691

692-
[[NOTE]]
692+
[NOTE]
693693
====
694694
In this tutorial you have already configured the OIDC `hybrid` application which can handle both authorization code and bearer token authentication flows. In production you will run microservices as separate servers but for the sake of simplicity `ApiEchoService` will not have to be started as a second server with its own configuration containing `quarkus.oidc.auth-server-url=https://dev-3ve0cgn7.us.auth0.com` only, and therefore the current configuration which already has the Auth0 dev tenant address configured will be reused.
695695

0 commit comments

Comments
 (0)