Last modified date for Swift3 middleware isn't formatted correctly

Bug #838905 reported by Chuck Thier on 2011-09-01
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Medium
Chuck Thier

Bug Description

"s3cmd ls" fails against swift's S3 interface with
  An unexpected error has occurred.
  Please report the following lines to:
   <email address hidden>

Problem: ValueError: time data '2011-08-30T13:37:32.852790' does not match format '%Y-%m-%dT%H:%M:%S.000Z'

Indeed, BucketController.GET in swift3.py preparing the ListBucketResult response returns the LastModified tag with the date in native format, not the expected xxxxxZ format.

I suggest to simply add a Z to the date, in swift3.py the corresponding line in BucketController.GET would then read

"".join(['<Contents><Key>%s</Key><LastModified>%sZ</LastModif'\

instead of

"".join(['<Contents><Key>%s</Key><LastModified>%s</LastModif'\

Related branches

Chuck Thier (cthier) on 2011-09-01
Changed in swift:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Chuck Thier (cthier)
milestone: none → 1.4.3
Thierry Carrez (ttx) on 2011-09-06
Changed in swift:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2011-09-12
Changed in swift:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions