DBClientRS does not propagate applicationName

XMLWordPrintableJSON

    • Fully Compatible
    • v4.2, v4.0, v3.6
    • Security 2019-10-07, Security 2019-10-21
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

              Assignee:
              Mark Benvenuto
              Reporter:
              Mark Benvenuto
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: