Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4973

Export JSON and CSV of empty field name should be allowed

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.37.0
    • 1.28.1
    • Import/Export
    • None
    • OS:
      node.js / npm versions:
      Additional info:

    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

      Attachments

        Activity

          People

            Unassigned Unassigned
            felicia.hsieh@mongodb.com Felicia Hsieh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: