Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3280

gridfs can not upload empty file

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.10.1
    • Component/s: GridFS
    • 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@mongodb.com John Stewart (Inactive)
            Reporter:
            marlycool@qq.com Li Tc
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: