jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCLOUDS-339) jclouds throws spurious exception when creating zero-length blobs with Atmos
Date Wed, 09 Oct 2013 05:15:42 GMT

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

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

Commit 04c9c6afd251de971248997d99506b981cead728 in branch refs/heads/master from [~gaul]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-jclouds.git;h=04c9c6a ]

JCLOUDS-339. Handle zero-length objects in Atmos

Atmos does not return a location header when writing zero-length
objects, which normally throws an HttpResponseException: no uri in
headers or content.


> jclouds throws spurious exception when creating zero-length blobs with Atmos
> ----------------------------------------------------------------------------
>
>                 Key: JCLOUDS-339
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-339
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-blobstore
>    Affects Versions: 1.6.2
>            Reporter: Andrew Gaul
>            Assignee: Andrew Gaul
>
> Atmos does not return a location when creating zero-length blobs and jclouds fails when
looking for a non-existent location header.  Tested against Atmos Online:
> {{noformat}}
> -  >> POST https://api.atmosonline.com/rest/namespace/xxxxxxxxxxxxxxxxxxxxx/remote-file
HTTP/1.1
> -  >> Expect: 100-continue
> -  >> Accept: */*
> -  >> x-emc-wschecksum: MD5/0/D41D8CD98F00B204E9800998ECF8427E
> -  >> x-emc-uid: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> -  >> Date: Tue, 08 Oct 2013 21:38:51 GMT
> -  >> x-emc-signature: xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> -  >> Content-Type: application/unknown
> -  >> Content-Length: 0
> -  >> Content-MD5: 1B2M2Y8AsgTpgAmY7PhCfg==
> -  << HTTP/1.1 201 null
> -  << Date: Tue, 08 Oct 2013 21:38:51 GMT
> -  << Connection: close
> -  << Server: Apache
> Exception in thread "main" org.jclouds.http.HttpResponseException: no uri in headers
or content
>         at org.jclouds.http.functions.ParseURIFromListOrLocationHeaderIf20x.apply(ParseURIFromListOrLocationHeaderIf20x.java:76)
>         at org.jclouds.http.functions.ParseURIFromListOrLocationHeaderIf20x.apply(ParseURIFromListOrLocationHeaderIf20x.java:42)
>         at org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.invoke(InvokeSyncToAsyncHttpMethod.java:131)
>         at org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.apply(InvokeSyncToAsyncHttpMethod.java:97)
>         at org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.apply(InvokeSyncToAsyncHttpMethod.java:58)
>         at org.jclouds.rest.internal.DelegatesToInvocationFunction.handle(DelegatesToInvocationFunction.java:157)
>         at org.jclouds.rest.internal.DelegatesToInvocationFunction.invoke(DelegatesToInvocationFunction.java:124)
>         at com.sun.proxy.$Proxy52.createFile(Unknown Source)
>         at org.jclouds.atmos.util.AtmosUtils.putBlob(AtmosUtils.java:78)
>         at org.jclouds.atmos.blobstore.AtmosBlobStore.putBlob(AtmosBlobStore.java:217)
>         at org.jclouds.atmos.blobstore.AtmosBlobStore.putBlob(AtmosBlobStore.java:228)
> {{noformat}}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message