Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #2030, where JMXReporter may create invalid ObjectNames #2031

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

amrith92
Copy link
Contributor

Fixes #2030.

JMX managed ObjectNames cannot contain properties with values that are unquoted if the aforementioned values contain any of comma, equals, colon or double-quote characters. This fixes the default object naming strategy used by JMX reporter.
Note that construction of the ObjectName does not fail, but JMX clients break on deserialization.

…erties with values that are unquoted if the aforementioned values contain any of comma, equals, colon or double-quote characters. This fixes the default object naming strategy used by JMX reporter.
@amrith92 amrith92 requested review from a team as code owners June 16, 2021 11:11
@joschi joschi added the bug label Jun 16, 2021
@joschi joschi added this to the 4.1.23 milestone Jun 16, 2021
Copy link
Member

@joschi joschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amrith92 Thank you for your contribution!

The changes look good to me. 👍

@joschi joschi merged commit 3ac20d3 into dropwizard:release/4.2.x Jun 16, 2021
joschi pushed a commit that referenced this pull request Jun 16, 2021
JMX managed ObjectNames cannot contain properties with values that are unquoted if the aforementioned values contain any of comma, equals, colon or double-quote characters. This fixes the default object naming strategy used by JMX reporter.

Note that construction of the `ObjectName` does not fail, but JMX clients break on deserialization.

Fixes #2030

(cherry picked from commit 3ac20d3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Certain metric names cause MalformedObjectNameException in JMX clients
2 participants