[SERVER-43576] DBClientRS does not propagate applicationName Created: 23/Sep/19  Updated: 29/Oct/23  Resolved: 11/Oct/19

Status: Closed
Project: Core Server
Component/s: Internal Client
Affects Version/s: None
Fix Version/s: 4.3.1, 4.2.2, 4.0.14

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto 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
is depended on by SERVER-39114 Missing appName info Open
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2, v4.0, v3.6
Sprint: Security 2019-10-07, Security 2019-10-21
Participants:

 Description   

There are two places it is not propagated:

The application name is not propagated from the URI to the connect():

https://github.com/mongodb/mongo/blob/f66d468830246d4a448c9e87e698691e0abc026b/src/mongo/client/connpool.cpp#L394

cloneURIForServer - it does not propagate the application name from the RS connection to the URI.

https://github.com/mongodb/mongo/blob/f66d468830246d4a448c9e87e698691e0abc026b/src/mongo/client/dbclient_rs.cpp#L298



 Comments   
Comment by Githook User [ 04/Nov/19 ]

Author:

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

Message: SERVER-43576 DBClientRS does not propagate applicationName

(cherry picked from commit 9390ffd0914cf0f5ea6ec9739cd7898af183fa69)
Branch: v4.0
https://github.com/mongodb/mongo/commit/e80b8bea8b98c6db44d6e91cd98ed82ffe9e11a3

Comment by Githook User [ 04/Nov/19 ]

Author:

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

Message: SERVER-43576 DBClientRS does not propagate applicationName

(cherry picked from commit 9390ffd0914cf0f5ea6ec9739cd7898af183fa69)
Branch: v4.2
https://github.com/mongodb/mongo/commit/41c2100402f9ed2981db4d38c30bc0e4420b2d5a

Comment by Githook User [ 11/Oct/19 ]

Author:

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

Message: SERVER-43576 DBClientRS does not propagate applicationName
Branch: master
https://github.com/mongodb/mongo/commit/9390ffd0914cf0f5ea6ec9739cd7898af183fa69

Generated at Thu Feb 08 05:03:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.