-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
0.7.0 upgrade - nullPointerException when performing request with missing or invalid basic auth credentials #342
Comments
I see the same behaviour in my restful get call. Seems to happen when the http authorization header is absent in 0.7.0. Reverting to 0.6.2 or adding the auth header solves the issue. |
@here .Same issue for me.After upgrade getting the following error
Downgrading to '0.6.2' works for me too. |
Cheers Peter, when i get on my machine I will pull that branch down and test |
@YOU54F and everybody else. it is not a branch. I'm confused with the title it says can someone please create a simple minimal example that I can run to replicate this problem please. it can use some public / fake end-point if it works. does that make sense ? |
Sorry that is my fault, the issue occurs with any method. Please see below examples @ptrthomas - thanks again my friend
|
@YOU54F thanks, able to replicate ! looking into it. quick one - if you switch to |
I can confirm that it works with Top man as always chap! |
@YOU54F great, thanks ! |
this is a bug in Apache ! https://issues.apache.org/jira/browse/HTTPCLIENT-1888 fixed in dev. for those who need a workaround but don't want to use <dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.5</version>
<scope>test</scope>
</dependency> |
Brilliant thank you so much @ptrthomas, I have retested with Do you want me to close down the issue now? |
@YOU54F no we can keep this open until the 0.7.1 release. thanks ! |
released 0.8.0 |
The following scenario passes on 0.6.2 but fails on 0.7.0
I get the response
If I revert back to 0.6.2 it works again!
The text was updated successfully, but these errors were encountered: