Do not encode null fields in SO request 98/107698/1
authorJim Hahn <jrh3@att.com>
Thu, 14 May 2020 16:15:07 +0000 (12:15 -0400)
committerJim Hahn <jrh3@att.com>
Thu, 14 May 2020 16:18:11 +0000 (12:18 -0400)
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 <jrh3@att.com>
controlloop/common/controller-frankfurt/src/test/resources/config/frankfurt-http-client.properties
controlloop/common/feature-controlloop-management/src/main/feature/config/SO-http-client.properties

index 1e3e88c..3558195 100644 (file)
@@ -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
index 3b71fd4..a331ca1 100644 (file)
@@ -25,3 +25,4 @@ http.client.services.SO.port=${envd:SO_PORT}
 http.client.services.SO.userName=${envd:SO_USERNAME}
 http.client.services.SO.password=${envd:SO_PASSWORD}
 http.client.services.SO.contextUriPath=${envd:SO_CONTEXT_URI}
+http.client.services.SO.serialization.provider=org.onap.policy.common.gson.GsonMessageBodyHandler