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
Modify SDK to not fail on invalid Expires header #5056
Conversation
…ing in Runnable::run
…g warnings. Also modified the Expires field to be a timestamp
I don't see the mentioned unit test in the added code? Also, should we add unit-test the |
I think we should include a codegen test for the added trait |
...c/main/java/software/amazon/awssdk/protocols/xml/internal/unmarshall/HeaderUnmarshaller.java
Outdated
Show resolved
Hide resolved
services/s3/src/main/resources/codegen-resources/customization.config
Outdated
Show resolved
Hide resolved
Im working on the wiremock tests. I think the wiremock should cover the code path
Im working on the wiremock tests, should publish that along with the next revision. |
...c/main/java/software/amazon/awssdk/protocols/xml/internal/unmarshall/HeaderUnmarshaller.java
Outdated
Show resolved
Hide resolved
...ices/s3/src/test/java/software/amazon/awssdk/services/s3/ExpiresHeaderDataTypeErrorTest.java
Show resolved
Hide resolved
...ices/s3/src/test/java/software/amazon/awssdk/services/s3/ExpiresHeaderDataTypeErrorTest.java
Outdated
Show resolved
Hide resolved
...c/main/java/software/amazon/awssdk/protocols/xml/internal/unmarshall/HeaderUnmarshaller.java
Outdated
Show resolved
Hide resolved
...ices/s3/src/test/java/software/amazon/awssdk/services/s3/ExpiresHeaderDataTypeErrorTest.java
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
Implementing a SEP to modify behavior while parsing S3 Expires header.
Motivation and Context
Modifications
Testing
Defined a custom unit test and validated by running it once. Source code
Runs successfully.
The Expires header on this bucket is an invalid format
2034-01-01T00:00:00Z
Test validates
Screenshots (if appropriate)
Types of changes