Handle embedded "<" in SDNC responses 77/21377/1
authorJim Hahn <jrh3@att.com>
Mon, 30 Oct 2017 19:58:19 +0000 (15:58 -0400)
committerJim Hahn <jrh3@att.com>
Mon, 30 Oct 2017 19:58:19 +0000 (15:58 -0400)
commit7754fb8e889bae843d7382b7dee4b2e21a4ef56c
tree4ce34db3917ecd5a503547d5f32fddff4258db1f
parent364e214921ec080cbc991a0863fe7bfdf8825ea3
Handle embedded "<" in SDNC responses

Modified the code to use an actual XML parser when decoding the SDNC
response-data element, instead of using the simple-minded
replace("&amp;", "&") approach.  The latter did not function correctly
when XML elements contained other xml-encoded data.

Change-Id: Ied6b8b19f307f728b8da1a2b410b9e239ec62ab6
Issue-Id: SO-115
Signed-off-by: Jim Hahn <jrh3@att.com>
bpmn/MSOCommonBPMN/src/main/groovy/org/openecomp/mso/bpmn/common/scripts/SDNCAdapterUtils.groovy
bpmn/MSOCommonBPMN/src/test/groovy/org/openecomp/mso/bpmn/common/scripts/SDNCAdapterUtilsTest.groovy [new file with mode: 0644]