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

Incorrect usage of execFile function in multiple locations

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.1
    • Affects Version/s: 2.5.0
    • Component/s: Shell, Storage
    • Labels:
      None
    • ALL

      The execFile function is declared as taking bool, bool and int params:

      Scope::execFile(const string& filename, bool printResult, bool reportError,
      int timeoutMs)

      but in the following places called with three boolean arguments:
      shell/dbshell.cpp:932: scope->execFile( files[i] , false , true, false)
      scripting/engine_spidermonkey.cpp:1805: s->execFile( filename, false, true, false)
      scripting/engine_v8.cpp:607: scope->execFile(filename, false, true, false)

            Assignee:
            andreas.nilsson Andreas Nilsson
            Reporter:
            andreas.nilsson Andreas Nilsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: