Collection.find applying collation to command without checks

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Rebecca Weinberger (Inactive)
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: