From c1489941d036bfd122312dc46fb1bf077c27c9fd Mon Sep 17 00:00:00 2001 From: Danish Jamal <31315800+danishjamal104@users.noreply.github.com> Date: Mon, 4 Sep 2023 18:26:35 +0530 Subject: [PATCH] Fixes PHEE-420: Extra newline while verifying signature (#43) * Fixed the bug * Updated version to rc.2 --- build.gradle | 2 +- .../java/org/mifos/connector/common/interceptor/JWSUtil.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 4b47351..52ac9f3 100644 --- a/build.gradle +++ b/build.gradle @@ -167,7 +167,7 @@ configure(this) { } group = 'org.mifos' -version = '1.6.1-rc.1' +version = '1.6.1-rc.2' sourceCompatibility = JavaVersion.VERSION_17 def artifactId = 'ph-ee-connector-common' def versionNumber = version diff --git a/src/main/java/org/mifos/connector/common/interceptor/JWSUtil.java b/src/main/java/org/mifos/connector/common/interceptor/JWSUtil.java index ec68358..5a9ef4b 100644 --- a/src/main/java/org/mifos/connector/common/interceptor/JWSUtil.java +++ b/src/main/java/org/mifos/connector/common/interceptor/JWSUtil.java @@ -209,7 +209,7 @@ public static String parseFormData(InputStream inputStream, String boundary) thr } } } - return partContent.toString(); + return partContent.toString().trim(); } // returns true if the request is of multipart type