Skip to content

Don't allow httpclient to normalize URIs #1919 - #1966

Closed
akhaku wants to merge 1 commit into
aws:masterfrom
akhaku:dontNormalize
Closed

akhaku wants to merge 1 commit into
aws:masterfrom
akhaku:dontNormalize

Conversation

@akhaku

@akhaku akhaku commented Apr 7, 2019

Copy link
Copy Markdown

#1919

Set option in HttpClient RequestConfig to not normalize URIs. This was the default behavior before httpclient 4.5.7.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@varunnvs92

Copy link
Copy Markdown
Contributor

Thanks for the PR. We are aware of the Apache behavior change. We opened a ticket with Apache to change disable normalization by default. If Apache agrees to make the change, we don't need any change in the SDK and customers should be able to upgrade to newer Apache versions. Once a decision is taken in the ticket, We will make the appropriate changes in the SDK. Thank you for your patience.

@akhaku

akhaku commented Apr 23, 2019

Copy link
Copy Markdown
Author

Thanks! It doesn't look like that ticket is really moving along :( I share your concern about breaking people at runtime, tweaked the PR to not fail at runtime for people with older httpclients.

@varunnvs92

Copy link
Copy Markdown
Contributor

Thank you for updating the PR. The Apache ticket is closed. We will make changes in the SDK. Due to how the SDK code is sourced, I need to make this change internally before I can merge the PR or it will get overridden at next release. This is top priority item for us and will make a release this week with the necessary changes.

@akhaku

akhaku commented Apr 23, 2019

Copy link
Copy Markdown
Author

Works for me - feel free to merge or decline as needed! Thank you very much.

@varunnvs92

Copy link
Copy Markdown
Contributor

Found a bug with Apache with 4.5.8 which is a blocker to make this change.
https://issues.apache.org/jira/browse/HTTPCLIENT-1986

@Stephan202

Copy link
Copy Markdown

HTTPCLIENT-1986 was fixed in Apache HTTP Client 4.5.9, released June 7. IIUC that unblocks this PR 🎉.

@varunnvs92

Copy link
Copy Markdown
Contributor

@Stephan202 Thanks for notifying us. Based on backlog prioritization, we have scheduled the work for next week.

@akhaku

akhaku commented Jul 2, 2019

Copy link
Copy Markdown
Author

Rebased and bumped the required httpclient version to 4.5.9, which has the pathing fix Varun talked about.

@michael-o

Copy link
Copy Markdown

Committer here. This is not a bug in HttpClient, but solely in the S3 server stack which AWS must fix. You are just fixing the symptom. Read the upstream ticket.

@debora-ito

Copy link
Copy Markdown
Member

Hey @akhaku thank you for the contribution!

In version 1.11.596 we released a solution for the httpclient problem, so I'll go ahead and close this PR.

@debora-ito debora-ito closed this Jul 24, 2019
@akhaku
akhaku deleted the dontNormalize branch July 24, 2019 20:53
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.

5 participants