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 91422caaff NIFI-15438 Add JAXB Introspector to ObjectMapper in 
NiFiRegistryExtensionRegistry (#10741)
91422caaff is described below

commit 91422caaff35f6e640430d6d4e2a35995334cf3f
Author: Bryan Bende <[email protected]>
AuthorDate: Wed Jan 7 21:56:45 2026 -0500

    NIFI-15438 Add JAXB Introspector to ObjectMapper in 
NiFiRegistryExtensionRegistry (#10741)
    
    Signed-off-by: David Handermann <[email protected]>
---
 .../nifi-framework/nifi-framework-components/pom.xml                | 4 ++++
 .../nifi/registry/extension/NiFiRegistryExtensionRegistry.java      | 6 +++++-
 .../nifi-resources/src/main/resources/conf/nifi.properties          | 2 +-
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git 
a/nifi-framework-bundle/nifi-framework/nifi-framework-components/pom.xml 
b/nifi-framework-bundle/nifi-framework/nifi-framework-components/pom.xml
index 3a37af9956..7283715ec8 100644
--- a/nifi-framework-bundle/nifi-framework/nifi-framework-components/pom.xml
+++ b/nifi-framework-bundle/nifi-framework/nifi-framework-components/pom.xml
@@ -55,6 +55,10 @@
             <groupId>com.fasterxml.jackson.core</groupId>
             <artifactId>jackson-databind</artifactId>
         </dependency>
+        <dependency>
+            <groupId>com.fasterxml.jackson.module</groupId>
+            <artifactId>jackson-module-jakarta-xmlbind-annotations</artifactId>
+        </dependency>
         <dependency>
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-lang3</artifactId>
diff --git 
a/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/registry/extension/NiFiRegistryExtensionRegistry.java
 
b/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/registry/extension/NiFiRegistryExtensionRegistry.java
index f786d31c2f..39e864a453 100644
--- 
a/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/registry/extension/NiFiRegistryExtensionRegistry.java
+++ 
b/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/registry/extension/NiFiRegistryExtensionRegistry.java
@@ -18,6 +18,8 @@ package org.apache.nifi.registry.extension;
 
 import com.fasterxml.jackson.databind.DeserializationFeature;
 import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.type.TypeFactory;
+import 
com.fasterxml.jackson.module.jakarta.xmlbind.JakartaXmlBindAnnotationIntrospector;
 import org.apache.nifi.authorization.user.NiFiUser;
 import org.apache.nifi.registry.extension.bundle.BundleVersionMetadata;
 import org.apache.nifi.security.proxied.entity.StandardProxiedEntityEncoder;
@@ -46,7 +48,9 @@ public class NiFiRegistryExtensionRegistry extends 
AbstractExtensionRegistry<NiF
 
     private static final String PROXIED_ENTITIES_CHAIN_HEADER = 
"X-ProxiedEntitiesChain";
 
-    private static final ObjectMapper objectMapper = new 
ObjectMapper().disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
+    private static final ObjectMapper objectMapper = new ObjectMapper()
+        .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
+        .setAnnotationIntrospector(new 
JakartaXmlBindAnnotationIntrospector(TypeFactory.defaultInstance()));
 
     private HttpClient httpClient;
 
diff --git 
a/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/conf/nifi.properties
 
b/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/conf/nifi.properties
index c958410839..1c5b89b6f7 100644
--- 
a/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/conf/nifi.properties
+++ 
b/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/conf/nifi.properties
@@ -370,4 +370,4 @@ 
nifi.performance.tracking.percentage=${nifi.performance.tracking.percentage}
 #
 # Example NiFi Registry NAR Provider:
 #   
nifi.nar.library.provider.nifi-registry.implementation=org.apache.nifi.registry.extension.NiFiRegistryExternalResourceProvider
-#   nifi.nar.library.provider.nifi-registry.url=http://localhost:18080
+#   
nifi.nar.library.provider.nifi-registry.url=http://localhost:18080/nifi-registry-api

Reply via email to