Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1322

Zero length putBlob could omit Expect: 100-continue

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.2
    • 2.1.0
    • jclouds-blobstore
    • None
    • Tested using Azure

    Description

      Zero length putBlob is making two (duplicate) network calls instead of one.
      This issue can be easily replicated by invoking putBlob operation with the zero-length blob.

      ByteSource payload = ByteSource.empty();
      Blob blob = blobStore.blobBuilder(blobName)
                  .payload(payload)
                  .contentLength(payload.size())
                  .build();
      blobStore.putBlob(containerName, blob);
      

      Attached the charles log screenshot which depicts the issue

      Attachments

        1. Charles1.png
          60 kB
          Chaithanya Ganta

        Activity

          People

            gaul Andrew Gaul
            chaitanya.nitj@gmail.com Chaithanya Ganta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: