Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-412

mongofiles accepts whitespace as content type

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Trivial - P5
    • Resolution: Fixed
    • 2.8.0-rc1
    • None
    • mongofiles
    • None

    Description

      mongofiles --type "  " put file

      creates

      {
        "_id": ObjectId("5474acbd45afae4ae5000001"),
        "chunkSize": 261120,
        "uploadDate": ISODate("2014-11-25T16:22:21.860Z"),
        "length": 1208,
        "md5": "77a8393546d7822d3b9af101f5e8ec7c",
        "filename": "file",
        "contentType": "  "
      }


      Not sure it makes sense to accept whitespace as a valid argument to --type.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adinoyi.omuya@mongodb.com Adinoyi Omuya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: