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: disable uri normalization in ApacheHttpRequest #804
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test?
The Apache HttpClient implementation does a great job and making itself uninspectable once initialized - we would need to test its behavior (or use reflection to look at internals). For these transport adapters, we will need to set up an integration test that somehow ensures the desired behavior. |
Filed #805 for adding integration tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The initial bug report has enough details that this should be reproducible by behavior as you suggest, even if we have to hit an actual URL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More effort than I would have gone to. I would have just pinged the real URL, but this is more robust. :-)
...nt-apache-v2/src/test/java/com/google/api/client/http/apache/v2/ApacheHttpTransportTest.java
Outdated
Show resolved
Hide resolved
...nt-apache-v2/src/test/java/com/google/api/client/http/apache/v2/ApacheHttpTransportTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setNormalizeUri is not well documented in the Apache docs. What are the side effects of this change beyond the double slash issue?
...nt-apache-v2/src/test/java/com/google/api/client/http/apache/v2/ApacheHttpTransportTest.java
Outdated
Show resolved
Hide resolved
….93 (googleapis#804) Co-authored-by: Emily Ball <emilyball@google.com>
Fixes #795