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

gridfs can not upload empty file

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Gone away
    • Icon: Minor - P4 Minor - P4
    • None
    • 3.10.1
    • GridFS
    • None

    Description

      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

      Attachments

        Activity

          People

            john.stewart@mongodb.com John Stewart (Inactive)
            marlycool@qq.com Li Tc
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: