Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1200

mongodump fails when a collection name includes '/'

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.5.1
    • Component/s: Tools
    • None
    • Linux

      When you create a collection with a '/' in the collection name, mongodump will fail when exporting files

      To reproduce create a database 'test' with a collection 'a/b'

      With pymongo, this can be done by doing `getattr(db, 'a/b').save(

      {...}

      )

      run mongodump; it will fail with this error:
      > test.a/b to dump/test/a/b.bson
      > assertion: userassert:couldn't open file stream invalid: errno:2 No such file or directory

      the check for collection names should be stricter on access, or mongodump should handle them appropriately.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jehiah Jehiah Czebotar
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: