Last modified date for Swift3 middleware isn't formatted correctly

Bug #838905 reported by Chuck Thier
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
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 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 the corresponding line in BucketController.GET would then read


instead of


Related branches

Chuck Thier (cthier)
Changed in swift:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Chuck Thier (cthier)
milestone: none → 1.4.3
Thierry Carrez (ttx)
Changed in swift:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
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