[COMPASS-6512] MongoDB Compass import corrupts documents Created: 12/Feb/23 Updated: 19/Dec/23 Resolved: 19/Dec/23 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | None |
| Affects Version/s: | 1.35.0 |
| Fix Version/s: | 1.41.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Anton Tarasov | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | first-responder | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
OS: |
||
| Attachments: |
|
| Documentation Changes: | Not Needed |
| Description |
Problem Statement/RationaleI faced a problem with importing the collection in MongoDB Compass. After successfull import the documents within collection are corrupted, almost all fields are ignored, broken nesting and etc. This problem occurs when there is at least field with name "document" in collection documents. If we change the field name "document" to "doc", the import works correctly. Probably MongoDB Compass is using the field name "document" for some internal reason and when an imported document has the same field name, bad things happen. Idk if there are some others "fragile" field names that can lead to the same effect when importing collection with MongoDB Compass. Steps to ReproduceOpen Mongo DB with MongoDB Compass, then:
Expected ResultsI expect to see the full document with all the fields. See picture expectation.jpg Actual ResultsI see corrupted document with broken nesting, almost all fields are ignored. See picture actual_result.jpg Additional Notes
|
| Comments |
| Comment by Rhys Howell [ 19/Dec/23 ] |
|
Hi flatleywalker@gmail.com - thanks for reporting the issue and providing a good description and example. I tried to reproduce this in 1.41.0 and cannot, looks like it has been fixed. In 1.37.0 we did a pretty big overhaul of the import/export experience so it likely landed there. Please let us know if you update to the newest Compass version and still run into the same issue. |