Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-17453

warn that db.eval() / eval command is deprecated

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.3, 3.1.1
    • Affects Version/s: None
    • Component/s: JavaScript
    • None
    • Minor Change
    • Platform 1 04/03/15

      Issue Status as of Apr 29, 2015

      ISSUE SUMMARY
      The eval operation that permits clients to execute is deprecated in 3.0 and is currently planned for removal in an upcoming release. This change adds additional warning messages regarding the deprecation to the mongo shell and the eval command.

      USER IMPACT
      This change just adds additional logging, but users depending on eval should start planning for its eventual removal.

      FIX VERSION
      The change is included in the 3.0.3 production release.

      Original description

      Add a warning msg to server and mongo repl log when invoking the eval command, aka $eval or db.eval().

            Assignee:
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Reporter:
            dan@mongodb.com Daniel Pasette (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            25 Start watching this issue

              Created:
              Updated:
              Resolved: