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

mongodump fails when a collection name includes '/'

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 1.5.1
    • Tools
    • None
    • Linux

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: