[
https://issues.apache.org/jira/browse/JCLOUDS-883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14660706#comment-14660706
]
Zack Shoylev commented on JCLOUDS-883:
--------------------------------------
[~khc] I think this might be fixed in 1.9.1; can you look into
https://github.com/jclouds/jclouds/blob/master/apis/openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/features/ObjectApi.java
You will see we have both updateMetadata and updateHeaders, which should fix
this issue, I think.
> Swift portable copy blob cannot replace user metadata
> -----------------------------------------------------
>
> Key: JCLOUDS-883
> URL: https://issues.apache.org/jira/browse/JCLOUDS-883
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-blobstore
> Affects Versions: 2.0.0
> Reporter: Andrew Gaul
> Assignee: Andrew Gaul
> Priority: Minor
> Labels: openstack-swift
> Fix For: 2.0.0
>
>
> Swift only allows appending to user metadata, different from other object
> stores, such that the following integration test fails:
> {noformat}
> Failed tests:
>
> CloudFilesUSBlobIntegrationLiveTest>BaseBlobIntegrationTest.testCopyBlobReplaceMetadata:812->BaseBlobIntegrationTest.checkUserMetadata:606
>
> Expecting:
> <{"key2"="value2", "key3"="value3", "key1"="value1", "key4"="value4"}>
> to be equal to:
> <{"key3"="value3", "key4"="value4"}>
> but was not.
> {noformat}
> Unfortunately the provider API does not appear to provide a way to set the
> combination of content and user metadata to fix this up after the fact.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)