[issue22946] urllib gives incorrect url after open when using HTTPS

2018-01-23 Thread Cheryl Sabella

Cheryl Sabella  added the comment:

@John.McKay, would you be interested in converting your patch to a Github pull 
request on the master branch?

--
nosy: +csabella
versions: +Python 3.7 -Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22946] urllib gives incorrect url after open when using HTTPS

2015-02-12 Thread Demian Brecht

Changes by Demian Brecht demianbre...@gmail.com:


--
nosy:  -demian.brecht

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22946
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22946] urllib gives incorrect url after open when using HTTPS

2014-12-05 Thread Demian Brecht

Demian Brecht added the comment:

+1 to the addition of a test. Also, I know it's only related, but it might be 
nice to also have this fixed in http_error_default: 
https://hg.python.org/cpython/file/021c1df36910/Lib/urllib/request.py#l2003.

--
nosy: +demian.brecht

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22946
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22946] urllib gives incorrect url after open when using HTTPS

2014-12-05 Thread John McKay

John McKay added the comment:

For the test can I assume that we have the openssl binary in the path? The 
other tests just use a static response to emulate the server, but without being 
able to use s_client it would be quite a bit more effort to fake a working HTTP 
server with TLS so that it can be tested properly.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22946
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22946] urllib gives incorrect url after open when using HTTPS

2014-12-05 Thread Benjamin Peterson

Benjamin Peterson added the comment:

We have a testing HTTPS server in Lib/test/ssl_servers.py.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22946
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22946] urllib gives incorrect url after open when using HTTPS

2014-11-26 Thread John McKay

New submission from John McKay:

After getting a sucessfull response, _open_generic_http will overwrite the the 
start of the url to be http: regardless of if it was called from open_http() or 
open_https(). This causes it to appear as if you were redirected to a 
non-secure site if you check the url properly after an open request. This is 
especially problematic after being redirected; it appears you were redirected 
to an insecure version of the site.

Attached is a patch to resolve this. It uses the type, which should be 
correctly set to http or https based on the calling context.

--
components: Library (Lib)
files: urllib.patch
keywords: patch
messages: 231702
nosy: John.McKay
priority: normal
severity: normal
status: open
title: urllib gives incorrect url after open when using HTTPS
type: behavior
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file37283/urllib.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22946
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22946] urllib gives incorrect url after open when using HTTPS

2014-11-26 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Thank you for the patch. It would be nice to have a test, too.

--
nosy: +benjamin.peterson
stage:  - test needed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22946
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com