HTTP fallback causes 'Invalid Credentials' error to be masqueraded as 'Bad Request' #183
Closed
1 task done
Labels
module_utils: cv_client
cv_client implementation issue
state: accepted
Issue is part of the development roadmap
status: testing
PR under testing
Milestone
Issue Type
Summary
When explicitly specifying an HTTPS port number, automatic fallback to HTTP in
cv_client.py
line 303 causes an 'Invalid Credentials' error to be presented as 'Bad Request' to the user, due to an attempt to perform an HTTP request on an HTTPS port.Note that this is probably the case for more errors, namely all exceptions raised line 328 :
Role or Module Name
Module name:
cv_client
arista.cvp
collection and Python libraries version 1.0.6OS / Environment
Cloudvision version
2018 and 2019
Steps to reproduce
With variables :
Expected results
Actual results
Note the HTTP vs HTTPS on port 443.
The expected result was actually obtained running code from this branch : master...b-abadie:fix-bad-requests
But this is not PR-worthy material. In fact I am not quite sure how to fix, this is why I am only submitting an issue and not a PR.
The text was updated successfully, but these errors were encountered: