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

Invoke runSafely for all external implscope methods

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.9, 4.0.4, 4.1.4
    • Component/s: JavaScript
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.0, v3.6
    • Sprint:
      Platforms 2018-09-24
    • Linked BF Score:
      16

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: