You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by bt...@apache.org on 2026/03/10 10:36:37 UTC

(hadoop) branch trunk updated: MAPREDUCE-7535. Setting the JSON provider to the customized one for M… (#8298)

This is an automated email from the ASF dual-hosted git repository.

bteke pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 3e8a468e78b MAPREDUCE-7535. Setting the JSON provider to the customized one for M… (#8298)
3e8a468e78b is described below

commit 3e8a468e78b3b37c8f936a3bb06d6f32bcd6ebc1
Author: Peter Szucs <11...@users.noreply.github.com>
AuthorDate: Tue Mar 10 11:36:30 2026 +0100

    MAPREDUCE-7535. Setting the JSON provider to the customized one for M… (#8298)
---
 .../mapreduce/v2/app/webapp/jsonprovider/JsonProviderFeature.java       | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/webapp/jsonprovider/JsonProviderFeature.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/webapp/jsonprovider/JsonProviderFeature.java
index fdc73cbf876..aa0a8d71ce6 100644
--- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/webapp/jsonprovider/JsonProviderFeature.java
+++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/webapp/jsonprovider/JsonProviderFeature.java
@@ -22,12 +22,14 @@
 import javax.ws.rs.core.FeatureContext;
 
 import org.glassfish.jersey.CommonProperties;
+import org.glassfish.jersey.internal.InternalProperties;
 
 public class JsonProviderFeature implements Feature {
   @Override
   public boolean configure(FeatureContext context) {
     //Auto discovery should be disabled to ensure the custom providers will be used
     context.property(CommonProperties.MOXY_JSON_FEATURE_DISABLE, true);
+    context.property(InternalProperties.JSON_FEATURE, "JsonProviderFeature");
     context.register(IncludeRootJSONProvider.class, 2001);
     context.register(ExcludeRootJSONProvider.class, 2002);
     return true;


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org