Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1762

monogsh says telemetry enabled despite forceDisableTelemetry set to true

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.5
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 1
    • Iteration Zephyrosaurus
    • Not Needed
    • Developer Tools

      Problem Statement/Rationale

      Even though mongosh does not enable telemetry if `forceDisableTelemetry` is set to true in the config file, when users run enableTelemetry() or config.set("enableTelemetry",true), mongosh tells the users telemetry is enabled (even though it isn't). Users should instead receive an error telling them to first turn off forceDisableTelemetry in order to call either of these functions else the telemetry will remain disabled.

      Steps to Reproduce

      1. Set forceDisableTelemetry to true in mongosh config file
      2. Run enableTelemetry() or config.set("enableTelemetry",true) in mongosh
      3. See the success message

      Expected Results

      mongosh throws an error.

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            gaurab.aryal@mongodb.com Gaurab Aryal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: