Skip to content

bpo-30462: urllib: NO_PROXY env. variable can contain domain with asterisk #1795

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

Closed
wants to merge 2 commits into from

Conversation

jirihnidek
Copy link

  • The method proxy_bypass_environment() is possible to bypass
    host, when NO_PROXY or no_proxy variable include domain
    specified with asterisk at the begining. e.g.: *.python.org.
  • http://bugs.python.org/issue30462

@the-knights-who-say-ni
Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

Thanks again to your contribution and we look forward to looking at it!

@mention-bot
Copy link

@jirihnidek, thanks for your PR! By analyzing the history of the files in this pull request, we identified @orsenthil, @birkenfeld and @ronaldoussoren to be potential reviewers.

@jirihnidek
Copy link
Author

jirihnidek commented May 24, 2017

I signed CLA before I created this PR.

@serhiy-storchaka
Copy link
Member

I don't see how this PR is related to bpo-12345.

@jirihnidek jirihnidek changed the title bpo-12345: urllib: NO_PROXY env. variable can contain domain with asterisk bpo-30462: urllib: NO_PROXY env. variable can contain domain with asterisk May 25, 2017
@jirihnidek
Copy link
Author

@serhiy-storchaka sorry, I copy pasted the the name of issue from template :-(. I update the name and of course the right link to issue: http://bugs.python.org/issue30462 was already there.

jirihnidek added a commit to candlepin/subscription-manager that referenced this pull request May 25, 2017
* Bug fix: https://bugzilla.redhat.com/show_bug.cgi?id=1443164
* Method proxy_bypass_environment() from urllib does not
  support no_proxy with items containing asterisk
  (e.g.: *.redhat.com). Thus values in this environment variable
  is preprocessed and leading asterisks are stripped.
* There was opened PR for urllib to address this problem
  in proper way: python/cpython#1795
* Fixed functional tests for python-rshm
* Added two more functional tests.
* Added several functional unit tests for no_proxy environment
  value containing asterisk.
* Small tweaks of code style (too long lines).
jirihnidek added a commit to candlepin/subscription-manager that referenced this pull request May 26, 2017
* Bug fix: https://bugzilla.redhat.com/show_bug.cgi?id=1443164
* Method proxy_bypass_environment() from urllib does not
  support no_proxy with items containing asterisk
  (e.g.: *.redhat.com). Thus values in this environment variable
  is preprocessed and leading asterisks are stripped.
* There was opened PR for urllib to address this problem
  in proper way: python/cpython#1795
* Fixed functional tests for python-rshm
* Added two more functional tests.
* Added several functional unit tests for no_proxy environment
  value containing asterisk.
* Refactored local variables to remove possible interference
  with module rhsm.connection.
* Small tweaks of code style (too long lines).
jirihnidek added a commit to candlepin/subscription-manager that referenced this pull request May 26, 2017
* Bug fix: https://bugzilla.redhat.com/show_bug.cgi?id=1443164
* Method proxy_bypass_environment() from urllib does not
  support no_proxy with items containing asterisk
  (e.g.: *.redhat.com). Thus values in this environment variable
  is preprocessed and leading asterisks are stripped.
* There was opened PR for urllib to address this problem
  in proper way: python/cpython#1795
* Fixed functional tests for python-rshm
* Added two more functional tests.
* Added several functional unit tests for no_proxy environment
  value containing asterisk.
* Refactored local variables to remove possible interference
  with module rhsm.connection.
* Try to clear following environment variables before each
  unit test is performed in ConnectionTests test case:
  - no_proxy
  - NO_PROXY
  - HTTPS_PROXY
* Small tweaks of code style (too long lines).
@Mariatta
Copy link
Member

@jirihnidek can you add your GitHub username to your account in bugs.python.org?

Thanks.

@jirihnidek
Copy link
Author

@Mariatta I just added my username to bugs.python.org.

…erisk

* The method proxy_bypass_environment() is possible to bypass
  host, when NO_PROXY or no_proxy variable include domain
  specified with asterisk at the begining. e.g.: *.python.org.
* Added and extended unit tests to conver new functionality.
Copy link
Member

@zhangyangyu zhangyangyu left a comment

Choose a reason for hiding this comment

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

This PR needs updated according to the comments in the issue.

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@csabella
Copy link
Contributor

@jirihnidek, please make the changes requested by @zhangyangyu in the code review. Thanks!

@jirihnidek
Copy link
Author

@csabella I will do. :-)

@csabella
Copy link
Contributor

@jirihnidek, please address the comments and resolve the merge conflicts. If it's something you're not interested in anymore, feel free to close the PR. Thanks!

@csabella
Copy link
Contributor

I'm going to close this PR as inactive. If the original author is interested in pursuing this, then this can be reopened or someone else can create a new PR to replace it. If a new PR is created, please give credit to the original author. Thanks!

@csabella csabella closed this May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants