This is an automated email from the ASF dual-hosted git repository.
Lukas-Finster pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 574313ab05 Fixed: Removes a bug where queryParamter get appended twice
to url on retrys due to CertificateException (OFBIZ-13499)
574313ab05 is described below
commit 574313ab0541ba1a6d91b099e1c39a8ada10f6bd
Author: Lukas Finster <[email protected]>
AuthorDate: Wed Aug 19 15:46:30 2026 +0200
Fixed: Removes a bug where queryParamter get appended twice to url on
retrys due to CertificateException (OFBIZ-13499)
---
.../src/main/java/org/apache/ofbiz/base/util/HttpClient.java | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git
a/framework/base/src/main/java/org/apache/ofbiz/base/util/HttpClient.java
b/framework/base/src/main/java/org/apache/ofbiz/base/util/HttpClient.java
index de3654b8ec..7a70a89acb 100644
--- a/framework/base/src/main/java/org/apache/ofbiz/base/util/HttpClient.java
+++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/HttpClient.java
@@ -456,17 +456,18 @@ public class HttpClient {
}
// Append the arguments to the query string if GET.
+ String localUrl = url;
if ("get".equalsIgnoreCase(method) && arguments != null) {
- if (url.contains("?")) {
- url = url + "&" + arguments;
+ if (localUrl.contains("?")) {
+ localUrl = localUrl + "&" + arguments;
} else {
- url = url + "?" + arguments;
+ localUrl = localUrl + "?" + arguments;
}
}
// Create the URL and open the connection.
try {
- requestUrl = UtilURL.fromUrlString(url);
+ requestUrl = UtilURL.fromUrlString(localUrl);
if (overrideTrust) {
con = URLConnector.openUntrustedConnection(requestUrl,
timeout, clientCertAlias, hostVerification);
} else {