This is an automated email from the ASF dual-hosted git repository.
exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new 2c467ee54cd NIFI-16628 - Bump Spring to 7.1.0, Spring Security to
7.2.0, Logback to 1.6.8, and others (#11963)
2c467ee54cd is described below
commit 2c467ee54cd1e314536707c3aa9d94058fbca7f0
Author: Pierre Villard <[email protected]>
AuthorDate: Wed Nov 25 18:46:31 2026 +0100
NIFI-16628 - Bump Spring to 7.1.0, Spring Security to 7.2.0, Logback to
1.6.8, and others (#11963)
- Maven from 3.10.1 to 3.10.2 -
https://maven.apache.org/docs/3.10.2/release-notes.html
- Reactor Netty from 1.3.8 to 1.4.0 -
https://github.com/reactor/reactor-netty/releases/tag/v1.4.0
- Reactor Core from 3.8.8 to 3.9.0 -
https://github.com/reactor/reactor-core/releases/tag/v3.9.0
- Spring Vault from 4.1.1 to 4.1.2 -
https://github.com/spring-projects/spring-vault/releases/tag/4.1.2
- Spring Integration from 7.1.2 to 7.2.0 -
https://github.com/spring-projects/spring-integration/releases/tag/v7.2.0
- Spring Data Redis from 4.1.2 to 4.2.0 -
https://github.com/spring-projects/spring-data-redis/releases/tag/4.2.0
- Spring LDAP Core from 4.1.2 to 4.2.0 -
https://github.com/spring-projects/spring-ldap/releases/tag/4.2.0
- Spring Boot from 4.1.2 to 4.2.0 -
https://github.com/spring-projects/spring-boot/releases/tag/v4.2.0
- Spring from 7.0.10 to 7.1.0 -
https://github.com/spring-projects/spring-framework/releases/tag/v7.1.0
- Spring Security from 7.1.2 to 7.2.0 -
https://github.com/spring-projects/spring-security/releases/tag/7.2.0
- Box SDK from 5.20.0 to 5.21.0 -
https://github.com/box/box-java-sdk/releases/tag/v5.21.0
- MySQL Binlog Debezium Connector from 0.42.0 to 0.42.1 -
https://github.com/debezium/mysql-binlog-connector-java/releases/tag/v0.42.1
- Apache IoTDB from 2.0.11 to 2.0.12 -
https://github.com/apache/iotdb/releases/tag/v2.0.12
- jSLT from 0.1.15 to 0.2.0 -
https://github.com/schibsted/jslt/releases/tag/0.2.0
- MongoDB Driver from 5.14.0 to 5.15.0 -
https://github.com/mongodb/mongo-java-driver/releases/tag/r5.15.0
- Clojure from 1.12.6 to 1.12.7 -
https://clojure.org/news/2026/11/18/clojure-1-12-7
- Slack Bolt from 1.55.0 to 1.56.0 -
https://github.com/slackapi/java-slack-sdk/releases/tag/v1.56.0
- Error Prone Annotations from 2.52.0 to 2.53.0 -
https://github.com/google/error-prone/releases/tag/v2.53.0
- FlywayDB from 13.12.2 to 13.13.0 -
https://github.com/flyway/flyway/releases/tag/flyway-13.13.0
- AWS SDK from 2.59.3 to 2.59.7 -
https://github.com/aws/aws-sdk-java-v2/releases/tag/2.59.7
- Logback from 1.6.7 to 1.6.8 -
https://github.com/qos-ch/logback/releases/tag/v_1.6.8
- HTTPCore 5 from 5.4.4 to 5.5 -
https://github.com/apache/httpcomponents-core/releases/tag/rel%2Fv5.5
Signed-off-by: Pierre Villard <[email protected]>
Signed-off-by: David Handermann <[email protected]>
---
.mvn/wrapper/maven-wrapper.properties | 2 +-
nifi-code-coverage/pom.xml | 2 +-
nifi-commons/nifi-hashicorp-vault/pom.xml | 2 +-
...StandardHashiCorpVaultCommunicationService.java | 7 +--
.../nifi-azure-processors/pom.xml | 4 +-
nifi-extension-bundles/nifi-azure-bundle/pom.xml | 2 +-
nifi-extension-bundles/nifi-box-bundle/pom.xml | 2 +-
.../nifi-cdc-mysql-processors/pom.xml | 2 +-
.../nifi-elasticsearch-client-service/pom.xml | 2 +-
.../nifi-email-processors/pom.xml | 2 +-
nifi-extension-bundles/nifi-iotdb-bundle/pom.xml | 2 +-
.../nifi-jslt-bundle/nifi-jslt-processors/pom.xml | 4 +-
.../nifi/processors/jslt/JSLTTransformJSON.java | 27 +++++------
.../processors/jslt/TestJSLTTransformJSON.java | 16 +++----
nifi-extension-bundles/nifi-jslt-bundle/pom.xml | 2 +-
nifi-extension-bundles/nifi-mongodb-bundle/pom.xml | 2 +-
nifi-extension-bundles/nifi-redis-bundle/pom.xml | 2 +-
.../nifi-scripting-processors/pom.xml | 2 +-
.../nifi-slack-processors/pom.xml | 2 +-
.../nifi-standard-shared-bom/pom.xml | 2 +-
.../configuration/OidcSecurityConfiguration.java | 2 +-
.../StandardTokenRevocationResponseClient.java | 56 +++++++++-------------
.../StandardTokenRevocationResponseClientTest.java | 30 ++++++++++--
.../nifi-registry-framework/pom.xml | 2 +-
nifi-registry/pom.xml | 4 +-
pom.xml | 18 +++----
26 files changed, 101 insertions(+), 99 deletions(-)
diff --git a/.mvn/wrapper/maven-wrapper.properties
b/.mvn/wrapper/maven-wrapper.properties
index b152c5d6157..b9429ed1226 100644
--- a/.mvn/wrapper/maven-wrapper.properties
+++ b/.mvn/wrapper/maven-wrapper.properties
@@ -14,5 +14,5 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.10.1/apache-maven-3.10.1-bin.zip
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.10.2/apache-maven-3.10.2-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.4/maven-wrapper-3.3.4.jar
diff --git a/nifi-code-coverage/pom.xml b/nifi-code-coverage/pom.xml
index 1afc2b3fd06..787c8b3682b 100644
--- a/nifi-code-coverage/pom.xml
+++ b/nifi-code-coverage/pom.xml
@@ -72,7 +72,7 @@
<dependency>
<groupId>io.projectreactor.netty</groupId>
<artifactId>reactor-netty-http</artifactId>
- <version>1.3.8</version>
+ <version>1.4.0</version>
<exclusions>
<!--
Reactor Netty 1.3 includes HTTP/3 support requiring
native QUIC libraries.
diff --git a/nifi-commons/nifi-hashicorp-vault/pom.xml
b/nifi-commons/nifi-hashicorp-vault/pom.xml
index bf6ef30b1be..687d8f1403b 100644
--- a/nifi-commons/nifi-hashicorp-vault/pom.xml
+++ b/nifi-commons/nifi-hashicorp-vault/pom.xml
@@ -21,7 +21,7 @@
</parent>
<artifactId>nifi-hashicorp-vault</artifactId>
<properties>
- <spring.vault.version>4.1.1</spring.vault.version>
+ <spring.vault.version>4.1.2</spring.vault.version>
</properties>
<dependencies>
<dependency>
diff --git
a/nifi-commons/nifi-hashicorp-vault/src/main/java/org/apache/nifi/vault/hashicorp/StandardHashiCorpVaultCommunicationService.java
b/nifi-commons/nifi-hashicorp-vault/src/main/java/org/apache/nifi/vault/hashicorp/StandardHashiCorpVaultCommunicationService.java
index a08e7649122..24b0f755c64 100644
---
a/nifi-commons/nifi-hashicorp-vault/src/main/java/org/apache/nifi/vault/hashicorp/StandardHashiCorpVaultCommunicationService.java
+++
b/nifi-commons/nifi-hashicorp-vault/src/main/java/org/apache/nifi/vault/hashicorp/StandardHashiCorpVaultCommunicationService.java
@@ -27,6 +27,7 @@ import
org.springframework.http.client.JdkClientHttpRequestFactory;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
import org.springframework.vault.authentication.LifecycleAwareSessionManager;
import org.springframework.vault.client.ClientHttpRequestFactoryFactory;
+import org.springframework.vault.client.SimpleVaultEndpointProvider;
import org.springframework.vault.client.VaultClient;
import org.springframework.vault.client.VaultClients;
import org.springframework.vault.client.VaultEndpoint;
@@ -38,7 +39,7 @@ import org.springframework.vault.support.Ciphertext;
import org.springframework.vault.support.ClientOptions;
import org.springframework.vault.support.Plaintext;
import org.springframework.vault.support.VaultResponseSupport;
-import org.springframework.web.client.RestTemplate;
+import org.springframework.web.client.RestClient;
import java.io.Closeable;
import java.io.IOException;
@@ -105,11 +106,11 @@ public class StandardHashiCorpVaultCommunicationService
implements HashiCorpVaul
}
final VaultEndpoint vaultEndpoint = vaultConfiguration.vaultEndpoint();
- final RestTemplate restTemplate =
VaultClients.createRestTemplate(vaultEndpoint, clientHttpRequestFactory);
+ final RestClient restClient =
VaultClients.createRestClient(SimpleVaultEndpointProvider.of(vaultEndpoint),
clientHttpRequestFactory, builder -> { });
vaultConfiguration.setClientHttpRequestFactory(clientHttpRequestFactory);
- final VaultClient.Builder vaultClientBuilder =
VaultClient.builder(restTemplate).endpoint(vaultEndpoint);
+ final VaultClient.Builder vaultClientBuilder =
VaultClient.builder(restClient).endpoint(vaultEndpoint);
final String namespace = vaultConfiguration.getNamespace();
if (namespace != null && !namespace.isEmpty()) {
vaultClientBuilder.defaultNamespace(namespace);
diff --git
a/nifi-extension-bundles/nifi-azure-bundle/nifi-azure-processors/pom.xml
b/nifi-extension-bundles/nifi-azure-bundle/nifi-azure-processors/pom.xml
index c9c2ea25f7f..7d396f00fa1 100644
--- a/nifi-extension-bundles/nifi-azure-bundle/nifi-azure-processors/pom.xml
+++ b/nifi-extension-bundles/nifi-azure-bundle/nifi-azure-processors/pom.xml
@@ -130,7 +130,7 @@
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-core</artifactId>
- <version>3.8.8</version>
+ <version>3.9.0</version>
</dependency>
<dependency>
<groupId>com.azure</groupId>
@@ -210,7 +210,7 @@
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-test</artifactId>
- <version>3.8.8</version>
+ <version>3.9.0</version>
<scope>test</scope>
</dependency>
</dependencies>
diff --git a/nifi-extension-bundles/nifi-azure-bundle/pom.xml
b/nifi-extension-bundles/nifi-azure-bundle/pom.xml
index d00748cec20..6c6ef1ac559 100644
--- a/nifi-extension-bundles/nifi-azure-bundle/pom.xml
+++ b/nifi-extension-bundles/nifi-azure-bundle/pom.xml
@@ -84,7 +84,7 @@
<dependency>
<groupId>io.projectreactor.netty</groupId>
<artifactId>reactor-netty-http</artifactId>
- <version>1.3.8</version>
+ <version>1.4.0</version>
<exclusions>
<!--
Reactor Netty 1.3 includes HTTP/3 support requiring
native QUIC libraries.
diff --git a/nifi-extension-bundles/nifi-box-bundle/pom.xml
b/nifi-extension-bundles/nifi-box-bundle/pom.xml
index c5c52b8e66e..94620c7ce5c 100644
--- a/nifi-extension-bundles/nifi-box-bundle/pom.xml
+++ b/nifi-extension-bundles/nifi-box-bundle/pom.xml
@@ -39,7 +39,7 @@
<dependency>
<groupId>com.box</groupId>
<artifactId>box-java-sdk</artifactId>
- <version>5.20.0</version>
+ <version>5.21.0</version>
</dependency>
</dependencies>
</dependencyManagement>
diff --git
a/nifi-extension-bundles/nifi-cdc/nifi-cdc-mysql-bundle/nifi-cdc-mysql-processors/pom.xml
b/nifi-extension-bundles/nifi-cdc/nifi-cdc-mysql-bundle/nifi-cdc-mysql-processors/pom.xml
index 815645546ab..1a3ebb9b760 100644
---
a/nifi-extension-bundles/nifi-cdc/nifi-cdc-mysql-bundle/nifi-cdc-mysql-processors/pom.xml
+++
b/nifi-extension-bundles/nifi-cdc/nifi-cdc-mysql-bundle/nifi-cdc-mysql-processors/pom.xml
@@ -32,7 +32,7 @@ language governing permissions and limitations under the
License. -->
<dependency>
<groupId>io.debezium</groupId>
<artifactId>mysql-binlog-connector-java</artifactId>
- <version>0.42.0</version>
+ <version>0.42.1</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
diff --git
a/nifi-extension-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-client-service/pom.xml
b/nifi-extension-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-client-service/pom.xml
index 7db7c5d0ae4..a6e7a624a39 100644
---
a/nifi-extension-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-client-service/pom.xml
+++
b/nifi-extension-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-client-service/pom.xml
@@ -151,7 +151,7 @@
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
- <version>3.10.1</version>
+ <version>3.10.2</version>
<scope>test</scope>
</dependency>
</dependencies>
diff --git
a/nifi-extension-bundles/nifi-email-bundle/nifi-email-processors/pom.xml
b/nifi-extension-bundles/nifi-email-bundle/nifi-email-processors/pom.xml
index d6d7ac87134..ccccd1e7de1 100644
--- a/nifi-extension-bundles/nifi-email-bundle/nifi-email-processors/pom.xml
+++ b/nifi-extension-bundles/nifi-email-bundle/nifi-email-processors/pom.xml
@@ -25,7 +25,7 @@
<artifactId>nifi-email-processors</artifactId>
<packaging>jar</packaging>
<properties>
- <spring.integration.version>7.1.2</spring.integration.version>
+ <spring.integration.version>7.2.0</spring.integration.version>
</properties>
<dependencies>
diff --git a/nifi-extension-bundles/nifi-iotdb-bundle/pom.xml
b/nifi-extension-bundles/nifi-iotdb-bundle/pom.xml
index d3e85b567e8..d9a475ca9ef 100644
--- a/nifi-extension-bundles/nifi-iotdb-bundle/pom.xml
+++ b/nifi-extension-bundles/nifi-iotdb-bundle/pom.xml
@@ -30,7 +30,7 @@
</modules>
<properties>
- <iotdb.sdk.version>2.0.11</iotdb.sdk.version>
+ <iotdb.sdk.version>2.0.12</iotdb.sdk.version>
</properties>
</project>
diff --git
a/nifi-extension-bundles/nifi-jslt-bundle/nifi-jslt-processors/pom.xml
b/nifi-extension-bundles/nifi-jslt-bundle/nifi-jslt-processors/pom.xml
index 5abe41bbfd9..372ec710647 100644
--- a/nifi-extension-bundles/nifi-jslt-bundle/nifi-jslt-processors/pom.xml
+++ b/nifi-extension-bundles/nifi-jslt-bundle/nifi-jslt-processors/pom.xml
@@ -36,11 +36,11 @@
<artifactId>jslt</artifactId>
</dependency>
<dependency>
- <groupId>com.fasterxml.jackson.core</groupId>
+ <groupId>tools.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
- <groupId>com.fasterxml.jackson.core</groupId>
+ <groupId>tools.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
diff --git
a/nifi-extension-bundles/nifi-jslt-bundle/nifi-jslt-processors/src/main/java/org/apache/nifi/processors/jslt/JSLTTransformJSON.java
b/nifi-extension-bundles/nifi-jslt-bundle/nifi-jslt-processors/src/main/java/org/apache/nifi/processors/jslt/JSLTTransformJSON.java
index 9916bf64e14..8d7a5ac8a61 100644
---
a/nifi-extension-bundles/nifi-jslt-bundle/nifi-jslt-processors/src/main/java/org/apache/nifi/processors/jslt/JSLTTransformJSON.java
+++
b/nifi-extension-bundles/nifi-jslt-bundle/nifi-jslt-processors/src/main/java/org/apache/nifi/processors/jslt/JSLTTransformJSON.java
@@ -16,14 +16,6 @@
*/
package org.apache.nifi.processors.jslt;
-import com.fasterxml.jackson.core.JsonFactory;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonParseException;
-import com.fasterxml.jackson.core.JsonParser;
-import com.fasterxml.jackson.core.JsonToken;
-import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.fasterxml.jackson.databind.ObjectWriter;
import com.github.benmanes.caffeine.cache.Cache;
import com.github.benmanes.caffeine.cache.Caffeine;
import com.schibsted.spt.data.jslt.Expression;
@@ -58,6 +50,13 @@ import org.apache.nifi.processor.Relationship;
import org.apache.nifi.processor.exception.ProcessException;
import org.apache.nifi.processor.util.StandardValidators;
import org.apache.nifi.util.StopWatch;
+import tools.jackson.core.JsonGenerator;
+import tools.jackson.core.JsonParser;
+import tools.jackson.core.JsonToken;
+import tools.jackson.core.exc.StreamReadException;
+import tools.jackson.databind.JsonNode;
+import tools.jackson.databind.ObjectWriter;
+import tools.jackson.databind.json.JsonMapper;
import java.io.BufferedReader;
import java.io.IOException;
@@ -224,7 +223,7 @@ public class JSLTTransformJSON extends AbstractProcessor {
REL_FAILURE
);
- private static final ObjectMapper JSON_OBJECT_MAPPER = new ObjectMapper();
+ private static final JsonMapper JSON_OBJECT_MAPPER =
JsonMapper.builder().build();
private Cache<String, Expression> transformCache;
@@ -336,15 +335,13 @@ public class JSLTTransformJSON extends AbstractProcessor {
private FlowFile transformFlowFile(final Expression jsltExpression, final
FlowFile original, final ProcessContext context, final ProcessSession session) {
final TransformationStrategy transformationStrategy =
TransformationStrategy.valueOf(context.getProperty(TRANSFORMATION_STRATEGY).getValue());
final boolean prettyPrint =
context.getProperty(PRETTY_PRINT).asBoolean();
- final JsonFactory jsonFactory = new JsonFactory();
FlowFile transformed = session.write(original, (inputStream,
outputStream) -> {
boolean topLevelArray = false;
JsonParser jsonParser;
JsonNode firstJsonNode;
if
(TransformationStrategy.EACH_OBJECT.equals(transformationStrategy)) {
- jsonParser = jsonFactory.createParser(inputStream);
- jsonParser.setCodec(JSON_OBJECT_MAPPER);
+ jsonParser = JSON_OBJECT_MAPPER.createParser(inputStream);
JsonToken token = jsonParser.nextToken();
if (token == JsonToken.START_ARRAY) {
@@ -380,7 +377,7 @@ public class JSLTTransformJSON extends AbstractProcessor {
outputObject = transformedJson;
}
if (outputObject != null) {
- jsonGenerator.writeObject(outputObject);
+ jsonGenerator.writePOJO(outputObject);
}
} while ((nextNode = getNextJsonNode(transformationStrategy,
jsonParser)) != null);
if (topLevelArray) {
@@ -413,7 +410,7 @@ public class JSLTTransformJSON extends AbstractProcessor {
private JsonNode readJson(final InputStream in) throws IOException {
try {
return JSON_OBJECT_MAPPER.readTree(in);
- } catch (final JsonParseException e) {
+ } catch (final StreamReadException e) {
throw new IOException("Could not parse data as JSON", e);
}
}
@@ -488,7 +485,7 @@ public class JSLTTransformJSON extends AbstractProcessor {
if (transformedJson == null || transformedJson.isNull()) {
getLogger().debug("JSLT Transform resulted in no data
on line {}", lines);
} else {
- jsonGenerator.writeObject(transformedJson);
+ jsonGenerator.writePOJO(transformedJson);
}
}
}
diff --git
a/nifi-extension-bundles/nifi-jslt-bundle/nifi-jslt-processors/src/test/java/org/apache/nifi/processors/jslt/TestJSLTTransformJSON.java
b/nifi-extension-bundles/nifi-jslt-bundle/nifi-jslt-processors/src/test/java/org/apache/nifi/processors/jslt/TestJSLTTransformJSON.java
index 4cba1d3e53a..446a8f98060 100644
---
a/nifi-extension-bundles/nifi-jslt-bundle/nifi-jslt-processors/src/test/java/org/apache/nifi/processors/jslt/TestJSLTTransformJSON.java
+++
b/nifi-extension-bundles/nifi-jslt-bundle/nifi-jslt-processors/src/test/java/org/apache/nifi/processors/jslt/TestJSLTTransformJSON.java
@@ -16,8 +16,6 @@
*/
package org.apache.nifi.processors.jslt;
-import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.nifi.util.MockFlowFile;
import org.apache.nifi.util.TestRunner;
import org.apache.nifi.util.TestRunners;
@@ -28,6 +26,8 @@ import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import org.opentest4j.AssertionFailedError;
+import tools.jackson.databind.JsonNode;
+import tools.jackson.databind.json.JsonMapper;
import java.io.IOException;
import java.io.UncheckedIOException;
@@ -49,7 +49,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
public class TestJSLTTransformJSON {
private static final Path RESOURCE_DIR = Paths.get("src/test/resources");
- private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
+ private static final JsonMapper OBJECT_MAPPER =
JsonMapper.builder().build();
@TempDir
private static Path tempDir;
@@ -344,13 +344,9 @@ public class TestJSLTTransformJSON {
}
private void assertContentEquals(final MockFlowFile flowFile, final String
expectedJson) {
- try {
- final JsonNode flowFileNode =
OBJECT_MAPPER.readTree(flowFile.getContent());
- final JsonNode expectedNode = OBJECT_MAPPER.readTree(expectedJson);
- assertEquals(expectedNode, flowFileNode);
- } catch (final IOException e) {
- throw new UncheckedIOException(e);
- }
+ final JsonNode flowFileNode =
OBJECT_MAPPER.readTree(flowFile.getContent());
+ final JsonNode expectedNode = OBJECT_MAPPER.readTree(expectedJson);
+ assertEquals(expectedNode, flowFileNode);
}
private void setTransformEnqueueJson(final String transformFileName, final
String jsonFileName) {
diff --git a/nifi-extension-bundles/nifi-jslt-bundle/pom.xml
b/nifi-extension-bundles/nifi-jslt-bundle/pom.xml
index 53abd37a7b4..dc0654cdb7a 100644
--- a/nifi-extension-bundles/nifi-jslt-bundle/pom.xml
+++ b/nifi-extension-bundles/nifi-jslt-bundle/pom.xml
@@ -35,7 +35,7 @@
<dependency>
<groupId>com.schibsted.spt.data</groupId>
<artifactId>jslt</artifactId>
- <version>0.1.15</version>
+ <version>0.2.0</version>
</dependency>
</dependencies>
</dependencyManagement>
diff --git a/nifi-extension-bundles/nifi-mongodb-bundle/pom.xml
b/nifi-extension-bundles/nifi-mongodb-bundle/pom.xml
index fd9d1d4f758..1d6ab28de2c 100644
--- a/nifi-extension-bundles/nifi-mongodb-bundle/pom.xml
+++ b/nifi-extension-bundles/nifi-mongodb-bundle/pom.xml
@@ -34,6 +34,6 @@
</modules>
<properties>
- <mongo.driver.version>5.14.0</mongo.driver.version>
+ <mongo.driver.version>5.15.0</mongo.driver.version>
</properties>
</project>
diff --git a/nifi-extension-bundles/nifi-redis-bundle/pom.xml
b/nifi-extension-bundles/nifi-redis-bundle/pom.xml
index 31a373e394a..2b2a6de0698 100644
--- a/nifi-extension-bundles/nifi-redis-bundle/pom.xml
+++ b/nifi-extension-bundles/nifi-redis-bundle/pom.xml
@@ -25,7 +25,7 @@
<packaging>pom</packaging>
<properties>
- <spring.data.redis.version>4.1.2</spring.data.redis.version>
+ <spring.data.redis.version>4.2.0</spring.data.redis.version>
<jedis.version>8.0.2</jedis.version>
</properties>
diff --git
a/nifi-extension-bundles/nifi-scripting-bundle/nifi-scripting-processors/pom.xml
b/nifi-extension-bundles/nifi-scripting-bundle/nifi-scripting-processors/pom.xml
index 3fe1b4b3343..d1bce3de7b1 100644
---
a/nifi-extension-bundles/nifi-scripting-bundle/nifi-scripting-processors/pom.xml
+++
b/nifi-extension-bundles/nifi-scripting-bundle/nifi-scripting-processors/pom.xml
@@ -69,7 +69,7 @@
<dependency>
<groupId>org.clojure</groupId>
<artifactId>clojure</artifactId>
- <version>1.12.6</version>
+ <version>1.12.7</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
diff --git
a/nifi-extension-bundles/nifi-slack-bundle/nifi-slack-processors/pom.xml
b/nifi-extension-bundles/nifi-slack-bundle/nifi-slack-processors/pom.xml
index 352959efb83..eac8dc0a8d4 100644
--- a/nifi-extension-bundles/nifi-slack-bundle/nifi-slack-processors/pom.xml
+++ b/nifi-extension-bundles/nifi-slack-bundle/nifi-slack-processors/pom.xml
@@ -30,7 +30,7 @@
<dependency>
<groupId>com.slack.api</groupId>
<artifactId>bolt-socket-mode</artifactId>
- <version>1.55.0</version>
+ <version>1.56.0</version>
</dependency>
<!-- Required by bolt-socket-mode but the library itself doesn't have
the dependency. -->
<dependency>
diff --git
a/nifi-extension-bundles/nifi-standard-shared-bundle/nifi-standard-shared-bom/pom.xml
b/nifi-extension-bundles/nifi-standard-shared-bundle/nifi-standard-shared-bom/pom.xml
index 36f5a8d3e40..06b58172862 100644
---
a/nifi-extension-bundles/nifi-standard-shared-bundle/nifi-standard-shared-bom/pom.xml
+++
b/nifi-extension-bundles/nifi-standard-shared-bundle/nifi-standard-shared-bom/pom.xml
@@ -127,7 +127,7 @@
<dependency>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_annotations</artifactId>
- <version>2.52.0</version>
+ <version>2.53.0</version>
<scope>provided</scope>
</dependency>
<!-- OkHttp -->
diff --git
a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-security/src/main/java/org/apache/nifi/web/security/configuration/OidcSecurityConfiguration.java
b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-security/src/main/java/org/apache/nifi/web/security/configuration/OidcSecurityConfiguration.java
index a8b76386630..d91828e968d 100644
---
a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-security/src/main/java/org/apache/nifi/web/security/configuration/OidcSecurityConfiguration.java
+++
b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-security/src/main/java/org/apache/nifi/web/security/configuration/OidcSecurityConfiguration.java
@@ -353,7 +353,7 @@ public class OidcSecurityConfiguration {
*/
@Bean
public TokenRevocationResponseClient tokenRevocationResponseClient() {
- return new StandardTokenRevocationResponseClient(oidcRestOperations,
clientRegistrationRepository);
+ return new StandardTokenRevocationResponseClient(oidcRestClient,
clientRegistrationRepository);
}
private OidcAuthenticationSuccessHandler getAuthenticationSuccessHandler()
{
diff --git
a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-security/src/main/java/org/apache/nifi/web/security/oidc/revocation/StandardTokenRevocationResponseClient.java
b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-security/src/main/java/org/apache/nifi/web/security/oidc/revocation/StandardTokenRevocationResponseClient.java
index dba663b3b96..989515b1d13 100644
---
a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-security/src/main/java/org/apache/nifi/web/security/oidc/revocation/StandardTokenRevocationResponseClient.java
+++
b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-security/src/main/java/org/apache/nifi/web/security/oidc/revocation/StandardTokenRevocationResponseClient.java
@@ -19,10 +19,8 @@ package org.apache.nifi.web.security.oidc.revocation;
import org.apache.nifi.web.security.oidc.client.web.OidcRegistrationProperty;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatusCode;
import org.springframework.http.MediaType;
-import org.springframework.http.RequestEntity;
import org.springframework.http.ResponseEntity;
import
org.springframework.security.oauth2.client.registration.ClientRegistration;
import
org.springframework.security.oauth2.client.registration.ClientRegistrationRepository;
@@ -30,7 +28,7 @@ import
org.springframework.security.oauth2.core.endpoint.OAuth2ParameterNames;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.util.StringUtils;
-import org.springframework.web.client.RestOperations;
+import org.springframework.web.client.RestClient;
import java.net.URI;
import java.nio.charset.StandardCharsets;
@@ -38,22 +36,22 @@ import java.util.Map;
import java.util.Objects;
/**
- * Standard implementation for handling Token Revocation Requests using Spring
REST Operations
+ * Standard implementation for handling Token Revocation Requests using Spring
REST Client
*/
public class StandardTokenRevocationResponseClient implements
TokenRevocationResponseClient {
static final String REVOCATION_ENDPOINT = "revocation_endpoint";
private static final Logger logger =
LoggerFactory.getLogger(StandardTokenRevocationResponseClient.class);
- private final RestOperations restOperations;
+ private final RestClient restClient;
private final ClientRegistrationRepository clientRegistrationRepository;
public StandardTokenRevocationResponseClient(
- final RestOperations restOperations,
+ final RestClient restClient,
final ClientRegistrationRepository clientRegistrationRepository
) {
- this.restOperations = Objects.requireNonNull(restOperations, "REST
Operations required");
+ this.restClient = Objects.requireNonNull(restClient, "REST Client
required");
this.clientRegistrationRepository =
Objects.requireNonNull(clientRegistrationRepository, "Client Registry
Repository required");
}
@@ -74,12 +72,19 @@ public class StandardTokenRevocationResponseClient
implements TokenRevocationRes
}
private ResponseEntity<?> getResponseEntity(final TokenRevocationRequest
revocationRequest, final ClientRegistration clientRegistration) {
- final RequestEntity<?> requestEntity =
getRequestEntity(revocationRequest, clientRegistration);
- if (requestEntity == null) {
+ final URI revocationEndpoint =
getRevocationEndpoint(clientRegistration);
+ if (revocationEndpoint == null) {
+ logger.info("OIDC Revocation Endpoint not found");
return ResponseEntity.ok(null);
} else {
try {
- final ResponseEntity<?> responseEntity =
restOperations.exchange(requestEntity, String.class);
+ final ResponseEntity<?> responseEntity = restClient.post()
+ .uri(revocationEndpoint)
+ .headers(headers ->
headers.setBasicAuth(clientRegistration.getClientId(),
clientRegistration.getClientSecret(), StandardCharsets.UTF_8))
+ .contentType(MediaType.APPLICATION_FORM_URLENCODED)
+ .body(getParameters(revocationRequest))
+ .retrieve()
+ .toEntity(String.class);
logger.debug("Token Revocation Request processing completed
[HTTP {}]", responseEntity.getStatusCode());
return responseEntity;
} catch (final Exception e) {
@@ -89,32 +94,15 @@ public class StandardTokenRevocationResponseClient
implements TokenRevocationRes
}
}
- private RequestEntity<?> getRequestEntity(final TokenRevocationRequest
revocationRequest, final ClientRegistration clientRegistration) {
- final RequestEntity<?> requestEntity;
- final URI revocationEndpoint =
getRevocationEndpoint(clientRegistration);
- if (revocationEndpoint == null) {
- requestEntity = null;
- logger.info("OIDC Revocation Endpoint not found");
- } else {
- final MultiValueMap<String, String> parameters = new
LinkedMultiValueMap<>();
- parameters.add(OAuth2ParameterNames.TOKEN,
revocationRequest.getToken());
-
- final String tokenTypeHint = revocationRequest.getTokenTypeHint();
- if (StringUtils.hasLength(tokenTypeHint)) {
- parameters.add(OAuth2ParameterNames.TOKEN_TYPE_HINT,
tokenTypeHint);
- }
-
- final HttpHeaders headers = new HttpHeaders(); //NOPMD
- final String clientId = clientRegistration.getClientId();
- final String clientSecret = clientRegistration.getClientSecret();
- headers.setBasicAuth(clientId, clientSecret,
StandardCharsets.UTF_8);
+ private MultiValueMap<String, String> getParameters(final
TokenRevocationRequest revocationRequest) {
+ final MultiValueMap<String, String> parameters = new
LinkedMultiValueMap<>();
+ parameters.add(OAuth2ParameterNames.TOKEN,
revocationRequest.getToken());
- requestEntity = RequestEntity.post(revocationEndpoint)
- .headers(headers)
- .contentType(MediaType.APPLICATION_FORM_URLENCODED)
- .body(parameters);
+ final String tokenTypeHint = revocationRequest.getTokenTypeHint();
+ if (StringUtils.hasLength(tokenTypeHint)) {
+ parameters.add(OAuth2ParameterNames.TOKEN_TYPE_HINT,
tokenTypeHint);
}
- return requestEntity;
+ return parameters;
}
private URI getRevocationEndpoint(final ClientRegistration
clientRegistration) {
diff --git
a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-security/src/test/java/org/apache/nifi/web/security/oidc/revocation/StandardTokenRevocationResponseClientTest.java
b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-security/src/test/java/org/apache/nifi/web/security/oidc/revocation/StandardTokenRevocationResponseClientTest.java
index 2e022d5536c..ee654c10e9b 100644
---
a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-security/src/test/java/org/apache/nifi/web/security/oidc/revocation/StandardTokenRevocationResponseClientTest.java
+++
b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-security/src/test/java/org/apache/nifi/web/security/oidc/revocation/StandardTokenRevocationResponseClientTest.java
@@ -22,12 +22,14 @@ import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
+import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import
org.springframework.security.oauth2.client.registration.ClientRegistration;
import
org.springframework.security.oauth2.client.registration.ClientRegistrationRepository;
import org.springframework.security.oauth2.core.AuthorizationGrantType;
-import org.springframework.web.client.RestOperations;
+import org.springframework.web.client.RestClient;
+import java.net.URI;
import java.util.LinkedHashMap;
import java.util.Map;
@@ -36,6 +38,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.when;
@ExtendWith(MockitoExtension.class)
@@ -57,7 +60,13 @@ class StandardTokenRevocationResponseClientTest {
private static final String TOKEN_TYPE_HINT = "refresh_token";
@Mock
- RestOperations restOperations;
+ RestClient restClient;
+
+ @Mock
+ RestClient.RequestBodyUriSpec requestBodyUriSpec;
+
+ @Mock
+ RestClient.ResponseSpec responseSpec;
@Mock
ClientRegistrationRepository clientRegistrationRepository;
@@ -66,7 +75,7 @@ class StandardTokenRevocationResponseClientTest {
@BeforeEach
void setClient() {
- client = new StandardTokenRevocationResponseClient(restOperations,
clientRegistrationRepository);
+ client = new StandardTokenRevocationResponseClient(restClient,
clientRegistrationRepository);
}
@Test
@@ -89,7 +98,8 @@ class StandardTokenRevocationResponseClientTest {
final ClientRegistration clientRegistration =
getClientRegistration(REVOCATION_ENDPOINT_URI);
when(clientRegistrationRepository.findByRegistrationId(eq(OidcRegistrationProperty.REGISTRATION_ID.getProperty()))).thenReturn(clientRegistration);
- when(restOperations.exchange(any(), eq(String.class))).thenThrow(new
RuntimeException());
+ setRequest();
+ when(responseSpec.toEntity(eq(String.class))).thenThrow(new
RuntimeException());
final TokenRevocationResponse revocationResponse =
client.getRevocationResponse(revocationRequest);
@@ -105,7 +115,8 @@ class StandardTokenRevocationResponseClientTest {
when(clientRegistrationRepository.findByRegistrationId(eq(OidcRegistrationProperty.REGISTRATION_ID.getProperty()))).thenReturn(clientRegistration);
final ResponseEntity<String> responseEntity =
ResponseEntity.ok().build();
- when(restOperations.exchange(any(),
eq(String.class))).thenReturn(responseEntity);
+ setRequest();
+
when(responseSpec.toEntity(eq(String.class))).thenReturn(responseEntity);
final TokenRevocationResponse revocationResponse =
client.getRevocationResponse(revocationRequest);
@@ -113,6 +124,15 @@ class StandardTokenRevocationResponseClientTest {
assertTrue(revocationResponse.isSuccess());
}
+ void setRequest() {
+ doReturn(requestBodyUriSpec).when(restClient).post();
+
doReturn(requestBodyUriSpec).when(requestBodyUriSpec).uri(eq(URI.create(REVOCATION_ENDPOINT_URI)));
+ doReturn(requestBodyUriSpec).when(requestBodyUriSpec).headers(any());
+
doReturn(requestBodyUriSpec).when(requestBodyUriSpec).contentType(eq(MediaType.APPLICATION_FORM_URLENCODED));
+
doReturn(requestBodyUriSpec).when(requestBodyUriSpec).body(any(Object.class));
+ doReturn(responseSpec).when(requestBodyUriSpec).retrieve();
+ }
+
ClientRegistration getClientRegistration(final String revocationEndpoint) {
final Map<String, Object> metadata = new LinkedHashMap<>();
metadata.put(StandardTokenRevocationResponseClient.REVOCATION_ENDPOINT,
revocationEndpoint);
diff --git a/nifi-registry/nifi-registry-core/nifi-registry-framework/pom.xml
b/nifi-registry/nifi-registry-core/nifi-registry-framework/pom.xml
index ef0246d097e..58e36b40b3d 100644
--- a/nifi-registry/nifi-registry-core/nifi-registry-framework/pom.xml
+++ b/nifi-registry/nifi-registry-core/nifi-registry-framework/pom.xml
@@ -244,7 +244,7 @@
<dependency>
<groupId>org.springframework.ldap</groupId>
<artifactId>spring-ldap-core</artifactId>
- <version>4.1.2</version>
+ <version>4.2.0</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
diff --git a/nifi-registry/pom.xml b/nifi-registry/pom.xml
index 4f8a3f630f1..bdc56d8db9a 100644
--- a/nifi-registry/pom.xml
+++ b/nifi-registry/pom.xml
@@ -35,8 +35,8 @@
<module>nifi-registry-docker-maven</module>
</modules>
<properties>
- <spring.boot.version>4.1.2</spring.boot.version>
- <flyway.version>13.12.2</flyway.version>
+ <spring.boot.version>4.2.0</spring.boot.version>
+ <flyway.version>13.13.0</flyway.version>
<flyway.tests.version>10.0.0</flyway.tests.version>
<swagger.ui.version>3.12.0</swagger.ui.version>
<jgit.version>7.8.1.202611041320-r</jgit.version>
diff --git a/pom.xml b/pom.xml
index 334f70f81a4..cef24bca2ba 100644
--- a/pom.xml
+++ b/pom.xml
@@ -124,7 +124,7 @@
<nifi.nar.maven.plugin.version>2.4.0</nifi.nar.maven.plugin.version>
<!-- CSPs SDK -->
- <software.amazon.awssdk.version>2.59.3</software.amazon.awssdk.version>
+ <software.amazon.awssdk.version>2.59.7</software.amazon.awssdk.version>
<software.amazon.encryption.s3.version>4.0.4</software.amazon.encryption.s3.version>
<azure.sdk.bom.version>1.3.10</azure.sdk.bom.version> <!-- when
changing this version, also update msal4j to the version that is required by
azure-identity -->
@@ -172,7 +172,7 @@
<!-- Logging and observability -->
<log4j2.version>2.26.1</log4j2.version>
- <logback.version>1.6.7</logback.version>
+ <logback.version>1.6.8</logback.version>
<org.slf4j.version>2.0.20</org.slf4j.version>
<prometheus.version>0.16.0</prometheus.version>
<simple-syslog-5424.version>0.0.19</simple-syslog-5424.version>
@@ -184,7 +184,7 @@
<org.apache.httpcomponents.httpclient.version>4.5.14</org.apache.httpcomponents.httpclient.version>
<org.apache.httpcomponents.httpclient5.version>5.6.5</org.apache.httpcomponents.httpclient5.version>
<org.apache.httpcomponents.httpcore.version>4.4.16</org.apache.httpcomponents.httpcore.version>
-
<org.apache.httpcomponents.httpcore5.version>5.4.4</org.apache.httpcomponents.httpcore5.version>
+
<org.apache.httpcomponents.httpcore5.version>5.5</org.apache.httpcomponents.httpcore5.version>
<org.apache.sshd.version>2.20.1</org.apache.sshd.version>
<!-- Security -->
@@ -207,8 +207,8 @@
<jersey.bom.version>4.0.3</jersey.bom.version>
<jetty.version>12.1.15</jetty.version>
<servlet-api.version>6.1.0</servlet-api.version>
- <spring.security.version>7.1.2</spring.security.version>
- <spring.version>7.0.10</spring.version>
+ <spring.security.version>7.2.0</spring.security.version>
+ <spring.version>7.1.0</spring.version>
<swagger.annotations.version>3.0.0</swagger.annotations.version>
<!-- Testing and quality -->
@@ -839,7 +839,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
- <version>2.9.0</version>
+ <version>2.10.0</version>
</plugin>
<plugin>
<groupId>org.antlr</groupId>
@@ -865,7 +865,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
- <version>2.25.2</version>
+ <version>2.25.3</version>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
@@ -894,7 +894,7 @@
<plugin>
<groupId>io.swagger.codegen.v3</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
- <version>3.0.85</version>
+ <version>3.0.86</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -964,7 +964,7 @@
</plugins>
</requireSameVersions>
<requireMavenVersion>
- <version>3.10.1</version>
+ <version>3.10.2</version>
</requireMavenVersion>
<requireReleaseDeps>
<message>Dependencies outside of Apache
NiFi must not use SNAPSHOT versions</message>