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

fix: handle bad time formats in clock skew interceptor #1082

Merged
merged 2 commits into from
Apr 29, 2024

Conversation

ianbotsf
Copy link
Contributor

Issue #

Resolves awslabs/aws-sdk-kotlin#1293

Description of changes

The ClockSkewInterceptor cannot currently handle receiving out-of-spec HTTP Date header values and throws an exception, even if the response would've been successful. This change wraps the date parsing logic and logs a warning if an error occurs, which no longer interrupts response processing.

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

This comment has been minimized.

Copy link

Affected Artifacts

Artifact Pull Request (bytes) Latest Release (bytes) Delta (bytes) Delta (percentage)
aws-protocol-core-jvm.jar 24,042 22,705 1,337 5.89%

@ianbotsf ianbotsf merged commit 3f22859 into main Apr 29, 2024
18 of 19 checks passed
@ianbotsf ianbotsf deleted the fix-clockskew-date-parsing branch April 30, 2024 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ParseException when publishing batch to SNS
3 participants