[
https://issues.apache.org/jira/browse/ZOOKEEPER-3613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mohammad Arshad resolved ZOOKEEPER-3613.
----------------------------------------
Fix Version/s: 3.7.0
3.5.7
3.6.0
Resolution: Fixed
Issue resolved by pull request 1190
[https://github.com/apache/zookeeper/pull/1190]
> ZKConfig fails to return proper value on getBoolean() when user accidentally
> includes spaces at the end of the value
> --------------------------------------------------------------------------------------------------------------------
>
> Key: ZOOKEEPER-3613
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3613
> Project: ZooKeeper
> Issue Type: Bug
> Components: server
> Affects Versions: 3.5.5
> Reporter: Scott Guminy
> Assignee: Sujith Simon
> Priority: Minor
> Labels: pull-request-available
> Fix For: 3.6.0, 3.5.7, 3.7.0
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> I was using ZooKeeper client in WebSphere Liberty and attempting to configure
> SSL/TLS for client connections.
> To do so, I must add the system property {{zookeeper.client.secure=true}}.
> In WebSphere Liberty, java system properties are placed in a file called
> bootstrap.properties - each property on a separate line. I accidentally
> added a space at the end of the line. When {{ZKConfig.getBoolean()}}
> attempted to convert this string to a {{boolean}}, it returned {{false}} due
> to the space at the end.
> {{ZKConfig.getBoolean()}} should trim the string before attempting to convert
> to a boolean.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)