You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default managed object naming strategy used by JMX reporter does not handle metric names with quotable characters appropriately, causing various JMX clients like jmxtrans to fail RMI object deserialization with MalformedObjectNameException. Here's a reproducer code snippet:
The object on is created without raising exceptions, however parsing its serialized form (which is what happens in clients like jmxtrans) causes MalformedObjectNameException to be thrown.
It is not clear to me whether the JDK should be checking for validly quoted values for object name properties, or whether the onus is on clients of the javax.management APIs to appropriately shape the values.
Any metric name containing the following characters result in this behaviour: " , = :
The text was updated successfully, but these errors were encountered:
amrith92
added a commit
to amrith92/metrics
that referenced
this issue
Jun 16, 2021
…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.
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
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)
The default managed object naming strategy used by JMX reporter does not handle metric names with quotable characters appropriately, causing various JMX clients like jmxtrans to fail RMI object deserialization with
MalformedObjectNameException
. Here's a reproducer code snippet:The object
on
is created without raising exceptions, however parsing its serialized form (which is what happens in clients like jmxtrans) causesMalformedObjectNameException
to be thrown.It is not clear to me whether the JDK should be checking for validly quoted values for object name properties, or whether the onus is on clients of the javax.management APIs to appropriately shape the values.
Any metric name containing the following characters result in this behaviour:
" , = :
The text was updated successfully, but these errors were encountered: