From 61a391c35782877be99948ca964aa44cd5eeceb4 Mon Sep 17 00:00:00 2001 From: agrasth Date: Tue, 17 Nov 2026 10:54:59 +0530 Subject: [PATCH] Fix malformed async query parameter in plugin execution The plugin execute request was built as '?params=...;async&=<0|1>', which the server splits into an invalid empty-named '=<0|1>' chunk. Newer Artifactory versions reject it (HTTP 500 on 7.146.x, HTTP 400 'Malformed request parameters' on 7.173.x). Build it as '&async=<0|1>' instead. --- .../org/jfrog/artifactory/client/impl/PluginHandleImpl.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/src/main/groovy/org/jfrog/artifactory/client/impl/PluginHandleImpl.groovy b/services/src/main/groovy/org/jfrog/artifactory/client/impl/PluginHandleImpl.groovy index 5442e6cc..90b76f08 100644 --- a/services/src/main/groovy/org/jfrog/artifactory/client/impl/PluginHandleImpl.groovy +++ b/services/src/main/groovy/org/jfrog/artifactory/client/impl/PluginHandleImpl.groovy @@ -57,7 +57,7 @@ class PluginHandleImpl implements PluginHandle { } } int asyncValue = async ? 1 : 0; - queryPath.append("async&=").append(asyncValue); + queryPath.append("&async=").append(asyncValue); artifactory.post("${plugins.getPluginsApi()}/execute/$name" + queryPath.toString(), org.apache.http.entity.ContentType.TEXT_PLAIN, null, new HashMap(), String, null ) }