Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove fractional seconds from http-date #1847

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

mtdowling
Copy link
Member

Description of changes:

The description of http-date previously stated that implementations MUST support fractional seconds. However, fractional seconds are not permitted by the imf-fixdate grammar. The original intent of this wording in the specification was that clients can gracefully handle parsing these timestamps with fractional precision, but not send fractional precision to avoid client/server incompatibilities. However, this caused confusion in implementations, and when clients send http-date timestamps with optional fractional precision, some servers, including S3, cannot parse the timestamp.

To avoid these issues altogether, this commit removes any kind of specification and protocol test for handling optional fractional seconds with http-date timestamps.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The description of http-date previously stated that implementations
MUST support fractional seconds. However, fractional seconds are not
permitted by the imf-fixdate grammar. The original intent of this
wording in the specification was that clients can gracefully handle
parsing these timestamps with fractional precision, but not send
fractional precision to avoid client/server incompatibilities.
However, this caused confusion in implementations, and when clients
send http-date timestamps with optional fractional precision, some
servers, including S3, cannot parse the timestamp.

To avoid these issues altogether, this commit removes any kind of
specification and protocol test for handling optional fractional
seconds with `http-date` timestamps.
@mtdowling mtdowling requested a review from a team as a code owner July 6, 2023 21:27
@mtdowling mtdowling merged commit 7ddf0a2 into main Jul 7, 2023
11 checks passed
@mtdowling mtdowling deleted the remove-fractional-seconds-from-imf-fixdate branch September 11, 2023 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants