[SERVER-40928] mongocryptd --help output list incorrect default port Created: 01/May/19 Updated: 29/Oct/23 Resolved: 10/Jun/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 4.1.10 |
| Fix Version/s: | 4.1.14, 4.2.0-rc2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jeffrey Yemin | Assignee: | Mark Benvenuto |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v4.2
|
||||||||
| Sprint: | Security 2019-05-20, Security 2019-06-03, Security 2019-06-17 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 0 | ||||||||
| Description |
|
Expected:
Actual:
|
| Comments |
| Comment by Githook User [ 24/Jun/19 ] |
|
Author: {'name': 'Mark Benvenuto', 'username': 'markbenvenuto', 'email': 'mark.benvenuto@mongodb.com'}Message: (cherry picked from commit 4ed6a26c13f3edb8187134be15252c87d42c3560) |
| Comment by Githook User [ 24/Jun/19 ] |
|
Author: {'name': 'Mark Benvenuto', 'username': 'markbenvenuto', 'email': 'mark.benvenuto@mongodb.com'}Message: (cherry picked from commit 7a698c8bdc6236607c1a58f226ecdc5ff5cf053e) |
| Comment by Githook User [ 10/Jun/19 ] |
|
Author: {'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}Message: |
| Comment by Githook User [ 10/Jun/19 ] |
|
Author: {'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}Message: |
| Comment by Mark Benvenuto [ 31/May/19 ] |
|
The fix is to make ServerGlobalParams::getPortSettingHelpText read a variable that can be set by an earlier static initializer. We could make a new initializer for each of the processes that sets the process default port. |
| Comment by Mark Benvenuto [ 08/May/19 ] |
|
The --help behavior of mongocryptd is consistent with mongos. Unfortunately, this is rather difficult to fix since the help text is hardcoded and shared between all binaries. |