Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-6322

Compass shows a Buffer() warning when started from the command line

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.35.0
    • Affects Version/s: 1.34.1
    • Component/s: CLI
    • None
    • Environment:
    • 2
    • Not Needed
    • Iteration Porpoise

      Problem Statement/Rationale

      When I start Compass from the command line, Compass displays the following warning:

      > /Applications/MongoDB\ Compass.app/Contents/MacOS/MongoDB\ CompassĀ 
      (node:68272) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
      (Use `MongoDB Compass Beta Helper (Renderer) --trace-deprecation ...` to show where the warning was created)

      Expected Results

      Compass does not show any warnings on startup.

      Actual Results

      Compass shows this warning on startup. The application still starts normally, this warning is just shown in the console.

      Additional Notes

      This warning could be seen as a security risk to users unfamiliar with what's going on behind the scenes.

            anna.henningsen@mongodb.com Anna Henningsen
            jeffrey.allen@mongodb.com Jeffrey Allen
            0 Vote for this issue
            1 Start watching this issue