Bug 2368020

Summary: Please backport aioresponses 0.7.8 to stable releases
Product: [Fedora] Fedora Reporter: Stephen Gallagher <sgallagh>
Component: python-aioresponsesAssignee: Georg Sauthoff <fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-aioresponses-0.7.8-1.fc42 python-aioresponses-0.7.8-1.fc41 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-06-06 01:44:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stephen Gallagher 2025-05-22 16:25:58 UTC
Currently, Fedora 41 has aioresponses 0.7.6; Fedora 42 has aioresponses 0.7.7; and Fedora 43 has aioresponses 0.7.8.

The upstream release of aioresponses 0.7.8 contains https://github.com/pnuckowski/aioresponses/pull/258 which is a critical bugfix for any use of aiohttp that is using the 'base_url' feature of aiohttp.ClientSession (which has been available since aiohttp 3.8, circa 2021).

Reproducible: Always

Steps to Reproduce:
1. Create a test program that uses aioresponses to simulate a response for "http://example.com/somepath"
2. Create an aiohttp ClientSession using the `base_url="http://example.com"` kwarg.
3. Attempt to perform an aiohttp request to "http://example.com/somepath".
Actual Results:
aiohttp.client_exceptions.ClientConnectionError: Connection refused: POST /v1/completions

Expected Results:
The mocked response should be received.

Comment 1 Fedora Update System 2025-05-28 22:30:23 UTC
FEDORA-2025-358eb8823a (python-aioresponses-0.7.8-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-358eb8823a

Comment 2 Fedora Update System 2025-05-28 22:39:23 UTC
FEDORA-2025-3ee1bf817c (python-aioresponses-0.7.8-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-3ee1bf817c

Comment 3 Fedora Update System 2025-05-29 01:18:54 UTC
FEDORA-2025-358eb8823a has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-358eb8823a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-358eb8823a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2025-05-29 01:50:04 UTC
FEDORA-2025-3ee1bf817c has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-3ee1bf817c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-3ee1bf817c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2025-06-06 01:44:02 UTC
FEDORA-2025-358eb8823a (python-aioresponses-0.7.8-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2025-06-06 02:07:16 UTC
FEDORA-2025-3ee1bf817c (python-aioresponses-0.7.8-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.