Bug 1705258

Summary: RGW: expiration_date returned from lifecycle is in wrong format. [Consulting]
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: tbrekke
Component: RGWAssignee: Matt Benjamin (redhat) <mbenjamin>
Status: CLOSED ERRATA QA Contact: RUDRA PRATAP <rpratap>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.2CC: cbodley, ceph-eng-bugs, ceph-qe-bugs, kbader, mbenjamin, rpratap, sweil, tchandra, tserlin
Target Milestone: rc   
Target Release: 3.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-12.2.12-33.el7cp Ubuntu: ceph_12.2.12-30redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-21 15:10:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description tbrekke 2019-05-01 20:14:17 UTC
Description of problem:

In 3.2 we now return the expiration_date as dictacted by aws spec, but the format appears to be wrong.

Error from aws-sdk-java 1.11

"java.lang.IllegalArgumentException: Invalid format: "Fri May 31 14:09:34 2019" is malformed at " May 31 14:09:34 2019""


The amazon spec dictates:

`x-amz-expiration: expiry-date="Fri, 23 Dec 2012 00:00:00 GMT", rule-id="1"`

we get back from ceph:

`x-amz-expiration: expiry-date="Fri May 31 19:46:09 2019", rule-id="1"`

There is a comma missing after the Day of the week.

Version-Release number of selected component (if applicable):

ceph version 12.2.8-89.el7cp (2f66ab2fa63b2879913db6d6cf314572a83fd1f0) luminous (stable)

How reproducible:

Every time


Steps to Reproduce:
1. Install 3.2z1
2. Set lifecycle policy
3. See response

Actual results:

Date format is `Fri May 31 19:46:09 2019`

Expected results:

Date format to be `Fri, May 31 19:46:09 2019`

Additional info:

Comment 1 tbrekke 2019-05-01 20:26:03 UTC
Expected results should actually be a RFC 822-compliant date format

Example: Wed, 01 May 2019 13:00:00 GMT

Comment 5 RUDRA PRATAP 2019-08-09 05:48:52 UTC
RHCS V3.3 , ceph version 12.2.12-40.el7cp

'HTTPHeaders': {'date': 'Fri, 09 Aug 2019 05:42:06 GMT'....}

retruns the correct date response..

Rudra

Comment 7 errata-xmlrpc 2019-08-21 15:10:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2019:2538