Object copy XML LastModified tag inconsistent with S3

Bug #1496170 reported by Darryl Tam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Swift3
Fix Committed
Undecided
Darryl Tam

Bug Description

When performing a successful object copy, the LastModified tag in the XML response contains the last modified timestamp of the source object instead of the last modified timestamp of the newly copied object. S3 also appears to add ".000Z" to the end of each LastModified timestamp.

Sample S3 response:

<CopyObjectResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><LastModified>2015-09-15T23:22:12.000Z</LastModified><ETag>&quot;60b725f10c9536c70d912365dfe8191b3&quot;</ETag></CopyObjectResult>

Darryl Tam (dtam)
summary: - Object copy returns incorrect LastModified timestamp in XML response
+ Object copy XML response inconsistent with S3 behaviour
description: updated
Darryl Tam (dtam)
Changed in swift3:
assignee: nobody → Darryl Tam (dtam)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to swift3 (master)

Fix proposed to branch: master
Review: https://review.openstack.org/223880

Changed in swift3:
status: New → In Progress
Darryl Tam (dtam)
description: updated
summary: - Object copy XML response inconsistent with S3 behaviour
+ Object copy XML LastModified tag inconsistent with S3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to swift3 (master)

Reviewed: https://review.openstack.org/223880
Committed: https://git.openstack.org/cgit/openstack/swift3/commit/?id=d7bbb730bd7b14f136134c3585992d5276401c98
Submitter: Jenkins
Branch: master

commit d7bbb730bd7b14f136134c3585992d5276401c98
Author: Darryl Tam <email address hidden>
Date: Tue Sep 15 17:10:34 2015 -0700

    Ensure object copy response timestamp tags consistent with S3

    The LastModified tag now properly reflects the timestamp of the newly
    copied object, rather than the original object.

    LastModified timestamps are now accurate to the millisecond to be
    consistent with S3 responses.

    Request.check_copy_source no longer returns timestamp as it's no longer
    necessary.

    Change-Id: Iffe70cb49701142a09c75b7cc33aaaea4e846144
    Closes-Bug: #1496170

Changed in swift3:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.