Skip to content

Set proper proxy_is_verified value after connecting to proxy #3266

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 5 commits into from Jan 9, 2024
Merged

Set proper proxy_is_verified value after connecting to proxy #3266

merged 5 commits into from Jan 9, 2024

Conversation

ghost
Copy link

@ghost ghost commented Jan 6, 2024

closes #3130

(squashed the ~15 commits down to 1, should be still easily reviewable)

Copy link
Member

@illia-v illia-v left a comment

Choose a reason for hiding this comment

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

When I set the bounty to #3130, I estimated the amount for fixing both is_verified and proxy_is_verified bugs (i.e., making the #3149 (review) tests work.) You're right though that #3130 describes only the proxy_is_verified problem, so fixing it has to be enough to close the issue.

I can see that you did try to approach this in a way to have both is_verified and proxy_is_verified fixed as the result e54f972. Could you please estimate how difficult is getting the right is_verified value for the "HTTPS proxy + HTTP destination" case?

- use assert helper function

- add further tests to simplify assertions

  Tests still test for the initially (by illia-v) suggested values within

  #3149 (review)

- add missing proxy_is_verified assignment

  this fixes test_is_verified_https_proxy_to_http_target

  from #3149 (by tushar5526)

- add missing proxy_is_verified assignment

  fixes test_is_verified_http_proxy_to_http_target

- fix test_is_verified_https_proxy_to_https_target assert

- add missing proxy_is_verified assignment

  fixes test_is_verified_http_proxy_to_https_target

- add changelog and TODOs, lint
Copy link
Member

@sethmlarson sethmlarson left a comment

Choose a reason for hiding this comment

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

This is looking better! I had a few minor comments and then I'll let @illia-v review and decide when to merge.

@sethmlarson sethmlarson requested a review from illia-v January 9, 2024 04:33
@sethmlarson sethmlarson changed the title 3130 proxy is verified Set proper proxy_is_verified value after connecting to proxy Jan 9, 2024
@illia-v illia-v merged commit 3ca46ea into urllib3:main Jan 9, 2024
@illia-v
Copy link
Member

illia-v commented Jan 9, 2024

@abebeos thank you for working on this!

@sethmlarson
Copy link
Member

Btw @abebeos, if you are interested you can submit a $300 expense to our Open Collective to claim the bounty on #3130.

ecerulm pushed a commit to ecerulm/urllib3 that referenced this pull request Jan 10, 2024
…b3#3266)

Co-authored-by: Tushar <30565750+tushar5526@users.noreply.github.com>
Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
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.

Incorrect behaviour of proxy_is_verified
2 participants