Bug 1745417

Summary: python-requests break Basic Auth when redirects contains default port
Product: Red Hat Enterprise Linux 7 Reporter: Tomas Žaleniakas <tomas.zaleniakas>
Component: python-requestsAssignee: Python Maintainers <python-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Kepler <jkejda>
Severity: medium Docs Contact:
Priority: urgent    
Version: 7.7CC: cbesson, cstratak, fkrska, hhorak, jkejda, pviktori, torsava
Target Milestone: rcKeywords: Reproducer, TestCaseNeeded, ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-requests-2.6.0-6.el7 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1754830 (view as bug list) Environment:
Last Closed: 2023-12-21 16:47:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1754830    

Description Tomas Žaleniakas 2019-08-26 06:09:07 UTC
Description of problem:
After RHEL bugfix No. 1643829 this bug https://github.com/psf/requests/issues/4850 were introduced into python-requests library


Version-Release number of selected component (if applicable):
python-requests 2.6.0-5


How reproducible:


Steps to Reproduce:
1.Update to latest python-requests
2.Do a request to URL without specifying port with basic auth, which returns redirect to same host just with default port


Actual results:
Getting 401 error


Expected results:
Get 200 for successful requests with basic auth


Additional info:

Comment 2 Tomas Orsava 2019-08-27 11:36:04 UTC
Upstream patch: https://github.com/psf/requests/pull/4851

Comment 5 Tomas Orsava 2019-09-23 14:09:18 UTC
*** Bug 1751175 has been marked as a duplicate of this bug. ***