Cyberduck Mountain Duck CLI

#11609 closed defect (thirdparty)

NoSuchKey copying objects with versionId attribute

Reported by: Trianglehead Owned by: dkocher
Priority: normal Milestone:
Component: openstack Version: 7.8.2
Severity: normal Keywords:
Cc: Architecture:
Platform:

Description (last modified by dkocher)

Using the same settings as in: #11548 Simple try to rename a file via CyberDuck and you will get an error as in the attached screenshot.

Error Msg

Attachments (1)

Screenshot 2021-03-08 162423.jpg (28.9 KB) - added by Trianglehead on Mar 8, 2021 at 11:25:31 PM.
Error Msg

Download all attachments as: .zip

Change History (5)

Changed on Mar 8, 2021 at 11:25:31 PM by Trianglehead

Error Msg

comment:1 Changed on Mar 9, 2021 at 7:24:43 AM by dkocher

  • Component changed from core to openstack
  • Description modified (diff)
  • Owner set to dkocher

comment:2 Changed on Mar 9, 2021 at 7:25:22 AM by dkocher

  • Description modified (diff)

comment:3 Changed on Mar 27, 2021 at 9:58:20 AM by dkocher

Would it be possible to get a temporary account for testing as I am unable to activate the service successfully here. Please write to support@cyberduck.io.

comment:4 Changed on Mar 29, 2021 at 10:11:19 AM by dkocher

  • Resolution set to thirdparty
  • Status changed from new to closed
  • Summary changed from Cannot rename files when using OCI Object Storage to NoSuchKey copying objects with versionId attribute

The service reports a <VersionId>null</VersionId> for the objects in the response and thus this is included in the request to copy files. I conclude this is expected behaviour and a bug in OCI.

  • Below the HTTP transcript from listing the objects in a bucket which include the version id.
GET /cyberducktest/?encoding-type=url&max-keys=1000&versions&prefix=&delimiter=%2F HTTP/1.1
Date: Mon, 29 Mar 2021 10:05:12 GMT
x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Host: yzhk5oemdvbe.compat.objectstorage.us-phoenix-1.oraclecloud.com
x-amz-date: 20210329T100512Z
Connection: Keep-Alive
User-Agent: Cyberduck/7.8.5.34448 (Mac OS X/11.2.3) (x86_64)

HTTP/1.1 200 OK
x-amz-request-id: phx-1:aIQpg92tXVP2HSUQpjfzzNhnj3wMCBNuY77knzVlS2wGFEie9FY8gUT7mpFvIX0Q
x-amz-bucket-region: us-phoenix-1
Content-Type: application/xml; charset=utf-8
Content-Length: 1186
date: Mon, 29 Mar 2021 10:05:12 GMT
opc-request-id: phx-1:aIQpg92tXVP2HSUQpjfzzNhnj3wMCBNuY77knzVlS2wGFEie9FY8gUT7mpFvIX0Q
x-api-id: s3-compatible

<?xml version="1.0" encoding="UTF-8"?><ListVersionsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>cyberducktest</Name><Prefix/><MaxKeys>1000</MaxKeys><Delimiter>%2F</Delimiter><IsTruncated>false</IsTruncated><Version><Key>easterEvent.jpg</Key><VersionId>null</VersionId><IsLatest>true</IsLatest><LastModified>2021-03-27T21:39:50.000Z</LastModified><ETag>"ee6ea575bcfa3fde42da00c44eb8b5aa"</ETag><Size>57678</Size><StorageClass>STANDARD</StorageClass><Owner><ID>ocid1.user.oc1..aaaaaaaaudffs5mcesbevkcelc2b3ifybzwqiwv7u5he3gwi6t7c7yc2g6sq</ID><DisplayName>ocid1.user.oc1..aaaaaaaaudffs5mcesbevkcelc2b3ifybzwqiwv7u5he3gwi6t7c7yc2g6sq</DisplayName></Owner></Version><Version><Key>easterEvent.png</Key><VersionId>null</VersionId><IsLatest>true</IsLatest><LastModified>2021-03-27T21:38:51.000Z</LastModified><ETag>"5758ac788ec8132e1f04da412bf19304"</ETag><Size>449261</Size><StorageClass>STANDARD</StorageClass><Owner><ID>ocid1.user.oc1..aaaaaaaaudffs5mcesbevkcelc2b3ifybzwqiwv7u5he3gwi6t7c7yc2g6sq</ID><DisplayName>ocid1.user.oc1..aaaaaaaaudffs5mcesbevkcelc2b3ifybzwqiwv7u5he3gwi6t7c7yc2g6sq</DisplayName></Owner></Version><EncodingType>url</EncodingType></ListVersionsResult>

  • Below the PUT request to copy a file
PUT /cyberducktest/easterEvent%20%2829.03.21%2C%2012%3A08%29.jpg HTTP/1.1
Date: Mon, 29 Mar 2021 10:08:09 GMT
x-amz-copy-source: /cyberducktest/easterEvent.jpg?versionId=null
x-amz-metadata-directive: COPY
x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Host: yzhk5oemdvbe.compat.objectstorage.us-phoenix-1.oraclecloud.com
x-amz-date: 20210329T100809Z
Content-Length: 0
Connection: Keep-Alive
User-Agent: Cyberduck/7.8.5.34448 (Mac OS X/11.2.3) (x86_64)

HTTP/1.1 404 Not Found
x-amz-request-id: phx-1:DMNWeFMIdjH6A61WhZVFo2uedNeVgk-K8HyjO5rOkKxbAXx3r563dWxXzgmcdJUZ
Content-Type: application/xml; charset=utf-8
Content-Length: 181
date: Mon, 29 Mar 2021 10:08:09 GMT
opc-request-id: phx-1:DMNWeFMIdjH6A61WhZVFo2uedNeVgk-K8HyjO5rOkKxbAXx3r563dWxXzgmcdJUZ
x-api-id: s3-compatible

<?xml version="1.0" encoding="UTF-8"?><Error><Message>The object 'easterEvent.jpg?versionId=null' was not found in the bucket 'cyberducktest'</Message><Code>NoSuchKey</Code></Error>

Note that the objects have an actual value of null for the version id. If the version id is *not* present for the objects the request header would not be included in the copy request.

Note: See TracTickets for help on using tickets.