You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/08/22 04:06:00 UTC

[jira] [Commented] (JCLOUDS-1322) Zero length putBlob could omit Expect: 100-continue

    [ https://issues.apache.org/jira/browse/JCLOUDS-1322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16136236#comment-16136236 ] 

ASF subversion and git services commented on JCLOUDS-1322:
----------------------------------------------------------

Commit e331a000d17d36043165cf79c505a7c0a7370f05 in jclouds's branch refs/heads/master from [~chaitanya.nitj@gmail.com]
[ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=e331a00 ]

JCLOUDS-1322: Remove Expect header for requests with empty body

Signed-off-by: Chaithanya Ganta <ga...@adobe.com>


> Zero length putBlob could omit Expect: 100-continue
> ---------------------------------------------------
>
>                 Key: JCLOUDS-1322
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1322
>             Project: jclouds
>          Issue Type: Improvement
>          Components: jclouds-blobstore
>    Affects Versions: 2.0.2
>         Environment: Tested using Azure
>            Reporter: Chaithanya Ganta
>            Priority: Minor
>         Attachments: Charles1.png
>
>
> 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.
> {code:java}
> ByteSource payload = ByteSource.empty();
> Blob blob = blobStore.blobBuilder(blobName)
>             .payload(payload)
>             .contentLength(payload.size())
>             .build();
> blobStore.putBlob(containerName, blob);
> {code}
> Attached the charles log screenshot which depicts the issue



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)