Skip to content

Fix wrong key for getHttpServerTrustStorePassword#3643

Closed
wenbingshen wants to merge 1 commit intoapache:masterfrom
wenbingshen:wenbing/fix_httpServerTrustStorePassword
Closed

Fix wrong key for getHttpServerTrustStorePassword#3643
wenbingshen wants to merge 1 commit intoapache:masterfrom
wenbingshen:wenbing/fix_httpServerTrustStorePassword

Conversation

@wenbingshen
Copy link
Member

Motivation

Fix #3639

As the title.

*/
public String getHttpServerTrustStorePassword() {
return getString(HTTP_SERVER_KEY_STORE_PASSWORD);
return getString(HTTP_SERVER_TRUST_STORE_PASSWORD);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we handle retrocompatibility here? the risk is that the user upgrades and the webserver doesn't work anymore

at least, we should add highlight in the release notes

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. I think we need add highlight in the release notes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add fallback to the old property. Also a comment in the code pointing to this pull would be valuable

Copy link
Contributor

@hangc0276 hangc0276 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should handle the retro compatibility

@hangc0276
Copy link
Contributor

@merlimat @eolivelli @dlg99 @zymap Please help take a look, thanks.

*/
public String getHttpServerTrustStorePassword() {
return getString(HTTP_SERVER_KEY_STORE_PASSWORD);
return getString(HTTP_SERVER_TRUST_STORE_PASSWORD);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add fallback to the old property. Also a comment in the code pointing to this pull would be valuable

@wenbingshen
Copy link
Member Author

Maybe we can mark this config as deprecated and add a new config to restore what it actually does and doc it in the docs and release notes.

@hezhangjian
Copy link
Member

@wenbingshen any updates?

@hezhangjian
Copy link
Member

closed by #4301

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ServerConfiguration returns incorrect property for httpServerTrustStorePassword

5 participants