[
https://issues.apache.org/jira/browse/ZOOKEEPER-2264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14732500#comment-14732500
]
Hudson commented on ZOOKEEPER-2264:
-----------------------------------
SUCCESS: Integrated in ZooKeeper-trunk #2795 (See
[https://builds.apache.org/job/ZooKeeper-trunk/2795/])
ZOOKEEPER-2264: Wrong error message when secureClientPortAddress is configured
but secureClientPort is not configured (Arshad Mohammad via rakeshr) (rakeshr:
http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1701505)
* /zookeeper/trunk/CHANGES.txt
*
/zookeeper/trunk/src/java/main/org/apache/zookeeper/server/quorum/QuorumPeerConfig.java
*
/zookeeper/trunk/src/java/test/org/apache/zookeeper/server/quorum/TestQuorumPeerConfig.java
> Wrong error message when secureClientPortAddress is configured but
> secureClientPort is not configured
> ------------------------------------------------------------------------------------------------------
>
> Key: ZOOKEEPER-2264
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2264
> Project: ZooKeeper
> Issue Type: Bug
> Components: server
> Reporter: Arshad Mohammad
> Assignee: Arshad Mohammad
> Priority: Minor
> Fix For: 3.5.2, 3.6.0
>
> Attachments: ZOOKEEPER-2264-01.patch
>
>
> # Wrong error message when secureClientPortAddress is configured but
> secureClientPort is not configured.
> zookeeper throws IllegalArgumentException with error message
> {{clientPortAddress is set but clientPort is not set}} but should be
> {{secureClientPortAddress is set but secureClientPort is not set}}
> # There is another problem with the same code.
> value is assigned to local variable but null check is done on instance
> variable so we will never get error message for this scenario.
> {code}if (this.secureClientPortAddress != null) {{code}
> should be replaced with
> {code}if (secureClientPortAddress != null) {{code}
> # Above problem is there for clientPort scenario also. So we should replace
> {code}if (this.clientPortAddress != null) {{code}
> with
> {code}if (clientPortAddress != null) {{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)