From 01e76180743d49a61803299cca959f2a1d03247b Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Thu, 14 May 2020 12:15:07 -0400 Subject: Do not encode null fields in SO request Currently, the default serialization provider for HTTP clients is jackson, which encodes null fields in requests. Unfortunately, SO does not like the null fields. Fixed this by modifying the SO config parameters to use the GSON serialization provider. Issue-ID: POLICY-2568 Change-Id: I6c2e7c985f23e09940d89409c2a84303bfd54b8a Signed-off-by: Jim Hahn --- .../src/test/resources/config/frankfurt-http-client.properties | 1 + 1 file changed, 1 insertion(+) (limited to 'controlloop/common/controller-frankfurt/src') diff --git a/controlloop/common/controller-frankfurt/src/test/resources/config/frankfurt-http-client.properties b/controlloop/common/controller-frankfurt/src/test/resources/config/frankfurt-http-client.properties index 1e3e88cec..3558195d4 100644 --- a/controlloop/common/controller-frankfurt/src/test/resources/config/frankfurt-http-client.properties +++ b/controlloop/common/controller-frankfurt/src/test/resources/config/frankfurt-http-client.properties @@ -43,6 +43,7 @@ http.client.services.SO.managed=true http.client.services.SO.host=localhost http.client.services.SO.port=6667 http.client.services.SO.contextUriPath= +http.client.services.SO.serialization.provider=org.onap.policy.common.gson.GsonMessageBodyHandler http.client.services.VFC.managed=true http.client.services.VFC.host=localhost -- cgit 1.2.3-korg