Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-3613

ZKConfig fails to return proper value on getBoolean() when user accidentally includes spaces at the end of the value

    XMLWordPrintableJSON

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sujithsimon22 Sujith Simon
                Reporter:
                scott.guminy@syncsort.com Scott Guminy
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m