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

Collection.find applying collation to command without checks

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.9
    • Component/s: native
    • Labels:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: