Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-733

map_reduce accepts invalid collection name for out

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      If an invalid collection name like "$cmdBREAK" is used for out in map_reduce, an index could be created for that collection even though the collection won't be created. I've only found this to be a problem in versions of mongodb below 2.0.9. In the versions <= 2.0.9, an index and database will be created even after the current driver says "pymongo.errors.InvalidName: collection names must not contain '$':". Using the example in the comments causes the db $cmdBREAK to appear although it won't show up after "show collections".

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            eric.daniels@mongodb.com Eric Daniels (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: