Patrick Hunt updated ZOOKEEPER-302:

    Attachment: ZOOKEEPER-302.patch

modified tom's patch a bit:

1) only quote if the addr is an ipv6 addr
2) I don't think getclientport needs to be quoted (ie values) -- otw thinks 
like the time/date stamp would also fail (removed this from my patch)
3) removed the printstacktrace calls in mbeanregistry - replaced with proper 
error handling/logging.

> Quote values in JMX ObjectNames 
> --------------------------------
>                 Key: ZOOKEEPER-302
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-302
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.0
>            Reporter: Tom White
>         Attachments: ZOOKEEPER-302.patch, zookeeper-302.patch
> Some characters are not allowed in ObjectName values and need quoting, see 
> http://java.sun.com/javase/6/docs/api/javax/management/ObjectName.html.
> This came up with IPv6 addresses which contain a colon character.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

Reply via email to