Skip to content

RTECO-2754-Fix malformed async query parameter in plugin execution - #457

Open
agrasth wants to merge 1 commit into
masterfrom
fix-plugin-execute-async-param
Open

agrasth wants to merge 1 commit into
masterfrom
fix-plugin-execute-async-param

Conversation

@agrasth

@agrasth agrasth commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Problem

PluginHandleImpl.doExecute builds the request as ?params=k=v;async&=<0|1>. The server splits this on & into params=k=v;async and an empty-named chunk =<0|1>. Older Artifactory versions silently ignored the bad chunk; newer ones reject it:

  • 7.146.x: HTTP 500 Invalid chunk starting at byte [24] and ending at byte [26] with a value of [=0] ignored
  • 7.173.x: HTTP 400 Malformed request parameters

Fix

Build the parameter as &async=<0|1>, giving ?params=k=v;&async=0 (and ?params=&async=0 when there are no params).

Behavior note

Because the old async flag never reached the server as a real parameter, aSync() effectively ran synchronously on tolerant servers. With this fix aSync() actually requests async execution. No API signatures change.

Testing

Reproduced the 500 with 2.21.2 on Artifactory 7.146.45 and confirmed the fix on 7.146.45 and 7.173.17 (reported by the customer's engineer). No unit test added: the URL is built inline and existing plugin tests need a live server.

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.
@agrasth agrasth changed the title Fix malformed async query parameter in plugin execution RTECO-2754-Fix malformed async query parameter in plugin execution Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants