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

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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 12_01_17
    • Component/s: None
    • Labels:

      Description

      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"
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: