Some commands fail if there exists a toplevel "Result" class

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.1.2
    • Affects Version/s: 2.1.0
    • Component/s: Private API
    • None
    • Environment:
      OS X 10.10.3
      JRuby 9.0.1.0
      Rails 4.2.3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In Mongo::Operation::Executable::execute, it uses defined?(self.class::Result) to see if there's a custom Result class for the command, but this could lead to problem if the command does not have a Result class and there exists a user defined Result class in the top namespace.

            Assignee:
            Emily Stolfo (Inactive)
            Reporter:
            Ran Chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: