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

Invoke runSafely for all external implscope methods

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.9, 4.0.4, 4.1.4
    • Affects Version/s: None
    • Component/s: JavaScript
    • None
    • Fully Compatible
    • v4.0, v3.6
    • Platforms 2018-09-24
    • 16

      Implscope provides a runSafely helper which wraps method calls and ensures that interruptions override other errors (amongst other features)

      We should extend that to all methods that are callable.

      _createFunction in particular is callable publically, which allows "method could not be called" to leak past interruption when parsing javascript for $where

            Assignee:
            mira.carey@mongodb.com Mira Carey
            Reporter:
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: