[SERVER-1200] mongodump fails when a collection name includes '/' Created: 07/Jun/10  Updated: 28/Jun/12  Resolved: 28/Jun/12

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 1.5.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Jehiah Czebotar Assignee: Unassigned
Resolution: Duplicate Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-4413 Mongodump segfaults on certain collec... Closed
Operating System: Linux
Participants:

 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.



 Comments   
Comment by Daniel Pasette (Inactive) [ 28/Jun/12 ]

duplicate of SERVER-4413

Comment by Mark Nadal [ 15/Sep/11 ]

Just encountered this error with 1.8.2. Please handle by automatically converting them to ASCII or HEX and back. Thanks.

Generated at Thu Feb 08 02:56:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.