You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by rz...@apache.org on 2024/11/17 19:47:17 UTC

(tomee) branch cxf-4.1.x-jsonp-fixes created (now 8fa4018078)

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

rzo1 pushed a change to branch cxf-4.1.x-jsonp-fixes
in repository https://gitbox.apache.org/repos/asf/tomee.git


      at 8fa4018078 Disable default JSON-P/JSON-B provider registration in CXF, cf. https://github.com/apache/cxf/commit/b6d1e6978bdea139d6d093656f92979b7d6cb204

This branch includes the following new commits:

     new 8fa4018078 Disable default JSON-P/JSON-B provider registration in CXF, cf. https://github.com/apache/cxf/commit/b6d1e6978bdea139d6d093656f92979b7d6cb204

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(tomee) 01/01: Disable default JSON-P/JSON-B provider registration in CXF, cf. https://github.com/apache/cxf/commit/b6d1e6978bdea139d6d093656f92979b7d6cb204

Posted by rz...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rzo1 pushed a commit to branch cxf-4.1.x-jsonp-fixes
in repository https://gitbox.apache.org/repos/asf/tomee.git

commit 8fa4018078522d549778705c9236dda1024d04ed
Author: Richard Zowalla <rz...@apache.org>
AuthorDate: Sun Nov 17 20:44:05 2024 +0100

    Disable default JSON-P/JSON-B provider registration in CXF, cf. https://github.com/apache/cxf/commit/b6d1e6978bdea139d6d093656f92979b7d6cb204
---
 .../src/main/java/org/apache/openejb/server/cxf/rs/CxfRSService.java     | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/CxfRSService.java b/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/CxfRSService.java
index c139b626e8..9d5994d1ce 100644
--- a/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/CxfRSService.java
+++ b/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/CxfRSService.java
@@ -213,6 +213,7 @@ public class CxfRSService extends RESTService {
     private void initCxfProviders(final Bus bus) {
         if (noProvidersExplicitlyAdded(bus)) {
             bus.setProperty("skip.default.json.provider.registration", "true"); // client jaxrs, we want johnzon not jettison
+            bus.setProperty("skip.jakarta.json.providers.registration", "true");  // Make sure default JAXRS 3.1 JSON-P/JSON-B providers are not loaded
 
             final Collection<Object> defaults = new ArrayList<>();
             List<String> jsonProviders;