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

Collection.find applying collation to command without checks

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 3.1.9
    • Native

    Description

      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. 

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: