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

mongofiles accepts whitespace as content type

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: 2.8.0-rc1
    • Fix Version/s: None
    • Component/s: mongofiles
    • Labels:
      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            adinoyi.omuya Adinoyi Omuya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: