[COMPASS-4973] Export JSON and CSV of empty field name should be allowed Created: 26/Jul/21 Updated: 29/Oct/23 Resolved: 08/May/23 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | Import/Export |
| Affects Version/s: | 1.28.1 |
| Fix Version/s: | 1.37.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Felicia Hsieh | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
OS: |
||
| Attachments: |
|
||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||
| Epic Link: | COMPASS-5576 | ||||||||||||||||||||
| Documentation Changes: | Not Needed | ||||||||||||||||||||
| Description |
Problem Statement/RationaleWhat is going wrong? Export of collection with empty field name is not allowed but should be. This is a data consistency issue. Steps to ReproduceHow could an engineer replicate the issue you’re reporting? Create a field name of empty string. Compass allows it. It also follows the BSON spec. Attempt to Export the Full collection to a file (JSON and CSV) Will see error message with both file types. Expected ResultsWhat do you expect to happen? Empty field name allows an export to file (JSON nor CSV) Actual ResultsWhat do you observe is happening? Error msg, "Fieldpath cannot be constructed with empty string" Please see pics Additional NotesAny additional information that may be useful to include. This was noticed in mongodump https://jira.mongodb.org/browse/TOOLS-2931 |