[issue42878] urllib.request.HTTPPasswordMgr.is_suburi does not care about order

2021-07-07 Thread Guido van Rossum


Change by Guido van Rossum :


--
nosy:  -gvanrossum

___
Python tracker 

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



[issue42878] urllib.request.HTTPPasswordMgr.is_suburi does not care about order

2021-07-06 Thread Yair Frid


Yair Frid  added the comment:

This issue was discovered when i was writing unit tests for #42766, since 
#42766 was fixed when i discovered it, i realized i might want a new issue, i 
don't mind moving this to be a comment, but there *are* 2 distinct test cases 
that fail:

a test case that would fail here:
is_suburi('/foo/bar', '/bar/foo') == True
which is different than;
is_suburi('/foo/bar', '/foobar') == True

--

___
Python tracker 

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



[issue42878] urllib.request.HTTPPasswordMgr.is_suburi does not care about order

2021-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Yair, is this really a separate bug from that reported in #42766?  In other 
words, are there separate and distinct failing test cases?  If not, this should 
be closed as a duplicate.

--
nosy: +orsenthil, terry.reedy

___
Python tracker 

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



[issue42878] urllib.request.HTTPPasswordMgr.is_suburi does not care about order

2021-01-10 Thread Guido van Rossum


Guido van Rossum  added the comment:

Cheryl, do you have time to review this?

--
nosy: +cheryl.sabella, gvanrossum

___
Python tracker 

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



[issue42878] urllib.request.HTTPPasswordMgr.is_suburi does not care about order

2021-01-09 Thread Yair Frid


New submission from Yair Frid :

In docs, it mentions that the function returns true if the base is a 'suburi' 
of test, but in reality, if is_suburi(base, test) then is_suburi(test, base) 
which is wrong in most cases (other than where base ~= test, meaning they are 
the same location)
I am unsure which versions of python are affected, but i suspect most of them 
(although we probably shouldn't backport this fix?)

--
components: Library (Lib)
messages: 384741
nosy: Fongeme
priority: normal
pull_requests: 23009
severity: normal
status: open
title: urllib.request.HTTPPasswordMgr.is_suburi does not care about order

___
Python tracker 

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