[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15504491#comment-15504491
 ] 

Arshad Mohammad commented on ZOOKEEPER-2521:
--------------------------------------------

as [~abrahamfine] already said, It is quite possible that a password may start 
with white space or end with white space.
Also, space truncating should be done in the cases where we are sure about the 
values like paths, true, false, integer values etc.
I think in this case truncating the space is not required at all.

> space should be truncated while reading password for keystore/truststore 
> which is required to configure while SSL enabled
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2521
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2521
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.5.1
>            Reporter: Rakesh Kumar Singh
>            Assignee: Edward Ribeiro
>            Priority: Minor
>         Attachments: ZOOKEEPER-2521.patch
>
>
> space should be truncated while reading password for keystore/truststore 
> which is required to configure while SSL enabled.
> As of now if we configure the password with any heading/trailing space, the 
> zookeeper server will fail to start.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to