SSJS in system.js seems to get cached

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.3.2
    • Affects Version/s: None
    • Component/s: JavaScript
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      using a build from this morning.

      > db.system.js.find()
      > db.system.js.save({"_id": "foo", "value": function { return x + 1; }})
      > db.system.js.find()
      { "id" : "foo", "value" : function cf3f

      { return x + 1; }

      }
      > db.eval("function()

      { foo.apply(this, arguments)}

      ", 1)
      null
      > db.eval("function()

      { return foo.apply(this, arguments)}", 1)
      2
      > db.system.js.remove()
      > db.eval("function() { return foo.apply(this, arguments)}

      ", 1)
      2
      > db.system.js.find()
      > db.eval("function()

      { return foo.apply(this, arguments)}

      ", 1)
      2

              Assignee:
              Eliot Horowitz (Inactive)
              Reporter:
              Michael Dirolf (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: