[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:
Backports
Depends
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:

 --port arg Specify port number - 27020 by default

Actual:

 --port arg Specify port number - 27017 by default



 Comments   
Comment by Githook User [ 24/Jun/19 ]

Author:

{'name': 'Mark Benvenuto', 'username': 'markbenvenuto', 'email': 'mark.benvenuto@mongodb.com'}

Message: SERVER-40928 mongocryptd --help output list incorrect default port

(cherry picked from commit 4ed6a26c13f3edb8187134be15252c87d42c3560)
Branch: v4.2
https://github.com/mongodb/mongo/commit/f2380c0f4545e0df3baee19d74c5057ffaff076b

Comment by Githook User [ 24/Jun/19 ]

Author:

{'name': 'Mark Benvenuto', 'username': 'markbenvenuto', 'email': 'mark.benvenuto@mongodb.com'}

Message: SERVER-40928 mongocryptd --help output list incorrect default port

(cherry picked from commit 7a698c8bdc6236607c1a58f226ecdc5ff5cf053e)
Branch: v4.2
https://github.com/10gen/mongo-enterprise-modules/commit/a4f9c5a014382e61efc03870cf77450c27f25c38

Comment by Githook User [ 10/Jun/19 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-40928 mongocryptd --help output list incorrect default port
Branch: master
https://github.com/mongodb/mongo/commit/4ed6a26c13f3edb8187134be15252c87d42c3560

Comment by Githook User [ 10/Jun/19 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-40928 mongocryptd --help output list incorrect default port
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/7a698c8bdc6236607c1a58f226ecdc5ff5cf053e

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.

Generated at Thu Feb 08 04:56:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.