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

gridfs can not upload empty file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Gone away
    • Affects Version/s: 3.10.1
    • Fix Version/s: None
    • Component/s: GridFS
    • Labels:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: