summaryrefslogtreecommitdiffstats
path: root/controlloop/common/feature-controlloop-management/src/main/feature
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2020-05-14 12:15:07 -0400
committerJim Hahn <jrh3@att.com>2020-05-14 12:18:11 -0400
commit01e76180743d49a61803299cca959f2a1d03247b (patch)
treeb6a8e15d534f6b9595686aa508c865bcd102ade4 /controlloop/common/feature-controlloop-management/src/main/feature
parent2cbc4178e4242349782a6dab66a9cec74cf8703a (diff)
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 <jrh3@att.com>
Diffstat (limited to 'controlloop/common/feature-controlloop-management/src/main/feature')
-rw-r--r--controlloop/common/feature-controlloop-management/src/main/feature/config/SO-http-client.properties1
1 files changed, 1 insertions, 0 deletions
diff --git a/controlloop/common/feature-controlloop-management/src/main/feature/config/SO-http-client.properties b/controlloop/common/feature-controlloop-management/src/main/feature/config/SO-http-client.properties
index 3b71fd474..a331ca1a9 100644
--- a/controlloop/common/feature-controlloop-management/src/main/feature/config/SO-http-client.properties
+++ b/controlloop/common/feature-controlloop-management/src/main/feature/config/SO-http-client.properties
@@ -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