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

map_reduce accepts invalid collection name for out

    XMLWordPrintable

    Details

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

      Description

      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".

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: