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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.35.0
    • 1.34.1
    • CLI
    • None
    • macOS
    • 2
    • Not Needed
    • Iteration Porpoise

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: