[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:
node.js / npm versions:
Additional info:


Attachments: PNG File Screen Shot 2021-07-26 at 11.32.10 AM.png     PNG File Screen Shot 2021-07-26 at 11.32.24 AM.png     PNG File Screen Shot 2021-07-26 at 11.32.56 AM.png    
Issue Links:
Depends
depends on COMPASS-6424 importJSON() import function and tests Closed
depends on COMPASS-6425 importCSV() import function and tests Closed
depends on COMPASS-6427 exportJSON() export function and tests Closed
depends on COMPASS-6428 exportCSV() export function and tests Closed
Epic Link: COMPASS-5576
Documentation Changes: Not Needed

 Description   

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


Generated at Wed Feb 07 22:38:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.