You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by "zymap (via GitHub)" <gi...@apache.org> on 2023/05/23 01:53:35 UTC

[GitHub] [bookkeeper] zymap commented on a diff in pull request #3962: [fix] Fix wrong key for getHttpServerTrustStorePassword

zymap commented on code in PR #3962:
URL: https://github.com/apache/bookkeeper/pull/3962#discussion_r1201405682


##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ServerConfiguration.java:
##########
@@ -3698,7 +3700,7 @@ public ServerConfiguration setHttpServerTrustStorePath(String trustStorePath) {
      * @return http server trustStore password
      */
     public String getHttpServerTrustStorePassword() {
-        return getString(HTTP_SERVER_KEY_STORE_PASSWORD);
+        return getString(HTTP_SERVER_TRUST_STORE_PASSWORD);

Review Comment:
   An easier way to keep the compatibility and avoid introducing a new configuration:
   ```
   return getString(HTTP_SERVER_TRUST_STORE_PASSWORD, getString(HTTP_SERVER_KEY_STORE_PASSWORD))
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org