Skip to content

fix(ui): distinguish Jolokia values from instance errors - #6001

Merged
SteKoe merged 1 commit into
codecentric:masterfrom
Aminark:fix/jolokia-response-errors
Nov 28, 2026
Merged

SteKoe merged 1 commit into
codecentric:masterfrom
Aminark:fix/jolokia-response-errors

Conversation

@Aminark

@Aminark Aminark commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

An MBean can return an array containing a field named status. The JMX view interpreted those values as per-instance response codes and could mark a successful invocation as failed. For application-wide invocations it also picked the first instance's body for the error message, even when another instance was the one that failed.

Read invocation status from the Jolokia response envelope. For application-wide requests, select the failed instance response and fall back to its HTTP status and instance ID when the proxy has no Jolokia error body.

The regression cases cover an array-valued result containing status: 500, a success followed by a Jolokia error with a stack trace, and an instance returning HTTP 503 without a body.

@Aminark
Aminark requested a review from a team as a code owner November 27, 2026 16:33
@SteKoe
SteKoe merged commit c29d6a2 into codecentric:master Nov 28, 2026
2 checks passed
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