-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 1.28.1
-
Component/s: Import/Export
-
None
-
Environment:OS:
node.js / npm versions:
Additional info:
-
Not Needed
Problem Statement/Rationale
What is going wrong?
Export of collection with empty field name is not allowed but should be. This is a data consistency issue.
Steps to Reproduce
How 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 Results
What do you expect to happen?
Empty field name allows an export to file (JSON nor CSV)
Actual Results
What do you observe is happening?
Error msg, "Fieldpath cannot be constructed with empty string"
Please see pics
Additional Notes
Any additional information that may be useful to include.
This was noticed in mongodump https://jira.mongodb.org/browse/TOOLS-2931
- depends on
-
COMPASS-6424 importJSON() import function and tests
- Closed
-
COMPASS-6425 importCSV() import function and tests
- Closed
-
COMPASS-6427 exportJSON() export function and tests
- Closed
-
COMPASS-6428 exportCSV() export function and tests
- Closed