Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-92

Collection class is not invoking its "super" methods

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Blocker - P1 Blocker - P1
    • None
    • Affects Version/s: 1.3
    • Component/s: None
    • Labels:
    • Environment:
      macbook pro retina; osx maveriks; 16gb RAM

      node-mongodb-native/lib/mongodb/collection.js

      i've been using 1.3.19 and when I updated to 1.3.20 I noticed that none of my scripts were working.

      on inspecting/stepping through the code, I noticed that the functionality previously in lib/mongodb/collection.js has been abstracted out.

      most of the Collection methods look like this:

      Collection.prototype.findAndModify = function() { return core.findAndModify; };
      

      when — I assume — they should look, something like this:

      Collection.prototype.findAndModify = function() { return core.findAndModify.apply( this, arguments ); };
      

      as the Collection methods simply return a function, nothing is actually happening and as such a program will just hang without throwing any errors.

      i marked this as a blocker as it causes any node program node-mongodb-native to stop working, apologies if this is no considered a blocker.

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            constantology christos alexandros constandinou
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: