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 clobbering of marshalled Accept header #1174

Merged
merged 4 commits into from
Mar 29, 2019
Merged

Conversation

dagnir
Copy link
Contributor

@dagnir dagnir commented Mar 28, 2019

Description

Motivation and Context

Bug fix.

Testing

Unit tests to test interceptor and added integration test using GetExport.

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING document
  • Local run of mvn install succeeds
  • My code follows the code style of this project
  • My change requires a change to the Javadoc documentation
  • I have updated the Javadoc documentation accordingly
  • I have read the README document
  • I have added tests to cover my changes
  • All new and existing tests passed
  • A short description of the change has been added to the CHANGELOG
  • My change is to implement 1.11 parity feature and I have updated LaunchChangelog

License

  • I confirm that this pull request can be released under the Apache 2 license

// format of the document returned by the service, such as GetExport
// https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-export-api.html.
// See the same fix in V1:
// https://github.com/aws/aws-sdk-java/blob/cd2275c07df8656033bfa9baa665354bfb17a6bf/aws-java-sdk-api-gateway/src/main/java/com/amazonaws/services/apigateway/internal/AcceptJsonRequestHandler.java#L29
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another reason for this change is that customer can provide the header via overrideConfiguration and we should honor it :)

@@ -0,0 +1,53 @@
package software.amazon.awssdk.services.apigateway.internal;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for creating the test class! Missing copyright header.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@dagnir dagnir force-pushed the api-export-format branch from 4c7d697 to 9a06fcf Compare March 28, 2019 21:40
@codecov-io
Copy link

codecov-io commented Mar 28, 2019

Codecov Report

Merging #1174 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1174      +/-   ##
============================================
+ Coverage     58.97%   58.98%   +0.01%     
- Complexity     4592     4595       +3     
============================================
  Files           743      744       +1     
  Lines         23012    23020       +8     
  Branches       1720     1721       +1     
============================================
+ Hits          13571    13579       +8     
  Misses         8754     8754              
  Partials        687      687
Impacted Files Coverage Δ Complexity Δ
...ces/apigateway/internal/AcceptJsonInterceptor.java 100% <100%> (ø) 3 <2> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2cbb637...057dc8b. Read the comment docs.

@dagnir dagnir merged commit 3e6bfdf into aws:master Mar 29, 2019
aws-sdk-java-automation added a commit that referenced this pull request Jan 29, 2021
…4d917114d

Pull request: release <- staging/7a715510-b892-4064-bba4-2c84d917114d
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.

3 participants