From ffe1cecd7d70997e336219b757ca0c7c8680dcb9 Mon Sep 17 00:00:00 2001 From: Maxim Smirnov Date: Mon, 22 Jun 2020 17:09:19 +0300 Subject: [PATCH] HCX-91 Remove query and path from HTTPRestProcessor after processing --- CHANGELOG.md | 1 + .../camunda/latera/bss/http/HTTPRestProcessor.groovy | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4595f6d4..35874dd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ v1.4.6 [unreleased] ------------------- ### Bugfixes - [#63](https://github.com/latera/camunda-ext/pull/63) Cast BigInteger and BigDecimal to String +- [#75](https://github.com/latera/camunda-ext/pull/75) Remove query and path from HTTPRestProcessor after processing v1.4.5 [2020-05-28] ------------------- diff --git a/src/org/camunda/latera/bss/http/HTTPRestProcessor.groovy b/src/org/camunda/latera/bss/http/HTTPRestProcessor.groovy index 78828aa1..7bfc701d 100644 --- a/src/org/camunda/latera/bss/http/HTTPRestProcessor.groovy +++ b/src/org/camunda/latera/bss/http/HTTPRestProcessor.groovy @@ -113,7 +113,9 @@ class HTTPRestProcessor { } } - def sendRequest(Map params, CharSequence method = 'get') { + def sendRequest(Map paramsInput, CharSequence method = 'get') { + Map params = paramsInput.clone() + Boolean supressRequestBody = false Boolean supressResponseBody = false if (params.supressRequestBodyLog != null) { @@ -155,12 +157,14 @@ class HTTPRestProcessor { if (params.path) { request.uri.path = absolutePath(params.path.toString()) - params.remove('path') } if (params.query) { request.uri.query = params.query - params.remove('query') } + + params.remove('query') + params.remove('path') + params.each { k,v -> request."${k}" = v }