gridfs can not upload empty file

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Minor - P4
    • None
    • Affects Version/s: 3.10.1
    • Component/s: GridFS
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      if the file size is 0,the GridFSUploadStreamImpl line 96 while pass and keep the var “len” is 0 and GridFSBucketImpl line 201 need "len" val is -1 to stop the loop, so the loop will never end.

      i think need throw exception or just upload a empty file

              Assignee:
              John Stewart (Inactive)
              Reporter:
              Li Tc
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: