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

Collection.find applying collation to command without checks

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.1.9
    • Affects Version/s: None
    • Component/s: Native

      It looks like the collection.find method is looping over user-given options (including collation, if given) and applying them to the command without further checking. This means that collation will be set on the command before it even gets to the decorateWithCollation call, which furthermore implies that collation can be incorrectly passed through to the final command / decorateWithCollation is essentially not doing anything.

      I noticed this when I commented out the decorateWithCollation call and no tests broke. 

            Assignee:
            katherine.walker@mongodb.com Katherine Walker (Inactive)
            Reporter:
            rebecca.weinberger Rebecca Weinberger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: