Skip to content

Fix HeaderUnmarshaller to compare headers ignoring cases #1105

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

Merged
merged 2 commits into from
Mar 15, 2019

Conversation

zoewangg
Copy link
Contributor

@zoewangg zoewangg commented Mar 1, 2019

Description

Fix xml HeaderUnmarshaller#MAP to compare headers ignoring cases. Checked Json HeaderUnmarshaller and it doesn't have MAP type.

Motivation and Context

Fixes #1091

Testing

Added unit tests and integ tests

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

@codecov-io
Copy link

codecov-io commented Mar 1, 2019

Codecov Report

Merging #1105 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1105      +/-   ##
============================================
- Coverage     58.63%   58.62%   -0.02%     
- Complexity     4528     4531       +3     
============================================
  Files           738      738              
  Lines         22749    22751       +2     
  Branches       1699     1699              
============================================
- Hits          13339    13337       -2     
- Misses         8720     8722       +2     
- Partials        690      692       +2
Impacted Files Coverage Δ Complexity Δ
...java/software/amazon/awssdk/utils/StringUtils.java 53.65% <100%> (+1.15%) 23 <2> (+2) ⬆️
...o/netty/internal/utils/BetterFixedChannelPool.java 56.9% <0%> (-2.21%) 14% <0%> (ø)
...on/awssdk/services/kinesis/KinesisRetryPolicy.java 85.71% <0%> (ø) 3% <0%> (+1%) ⬆️

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 5dce825...2a34885. Read the comment docs.

Copy link
Contributor

@spfink spfink left a comment

Choose a reason for hiding this comment

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

Is there a protocol test we can add for this?

s3.headObject(b -> b.bucket(BUCKET_NAME).key(KEY).overrideConfiguration(r -> r.putHeader("x-amz-metadata-test",
"test")));

//assertThat(response.metadata())
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this test is actually unnecessary and I forgot to remove it.

@zoewangg zoewangg force-pushed the zoewang-fixHeaderUnmarshalling branch from 3e05610 to 3738c81 Compare March 15, 2019 18:35
@zoewangg zoewangg force-pushed the zoewang-fixHeaderUnmarshalling branch from 3738c81 to 4d4176f Compare March 15, 2019 19:51
@zoewangg
Copy link
Contributor Author

Added protocol tests.

@zoewangg zoewangg merged commit 3d03932 into master Mar 15, 2019
@zoewangg zoewangg deleted the zoewang-fixHeaderUnmarshalling branch March 15, 2019 20:35
aws-sdk-java-automation added a commit that referenced this pull request Dec 16, 2020
…9576efaa1

Pull request: release <- staging/051b064e-d2bd-4420-bf1f-9509576efaa1
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.

Regression: S3 User Meta Data uses case sensitive comparision
3 participants