Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-3674

Mongoid 3.1.6: Upgrading to Mongo 2.4.10 causes positional operator error.

    • Type: Icon: Task Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None

      My code works on 2.4.6. However when using version 2.4.10 I get the following errors when calling save on an embedded document.

           Moped::Errors::OperationFailure:
             The operation: #<Moped::Protocol::Command
               @length=77
               @request_id=49920
               @response_to=0
               @op_code=2004
               @flags=[]
               @full_collection_name="test.$cmd"
               @skip=0
               @limit=-1
               @selector={:getlasterror=>1, :safe=>true}
               @fields=nil>
             failed with error 16837: "The positional operator did not find the match needed from the query. Unexpanded update: comments.0.comments.$.votes"
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            jhoffner Jake Hoffner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: