Bug 2025562

Summary: koji-1.27.0-2.fc36 fails to download builds by task ID: double /packages/packages/ in URL
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: kojiAssignee: Mike McLean <mikem>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jkeating, kevin, mikem, mizdebsk, mprchlik, puiterwijk
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: koji-1.27.0-3.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-23 12:33:21 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:

Description Petr Pisar 2021-11-22 13:54:00 UTC
Fedora CI fails to download packages from Koji <https://gitlab.com/testing-farm/general/-/issues/36>. I can reproduce it locally:

$ rpm -q koji
koji-1.27.0-2.fc36.noarch
[test@fedora-36 tmp]$ koji download-build --debuginfo --task-id --arch noarch --arch x86_64 --arch src 79153156
Downloading: gscan2pdf-2.12.4-1.fc36.src.rpm
2021-11-22 14:51:42,760 [ERROR] koji: HTTPError: 404 Client Error: Not Found for url: https://kojipkgs.fedoraproject.org/packages/packages/gscan2pdf/2.12.4/1.fc36/src/gscan2pdf-2.12.4-1.fc36.src.rpm

This works with koji 1.26.1:

$ rpm -q koji
koji-1.26.1-1.fc34.noarch
petr@dhcp-0-146:/tmp $ koji download-build --debuginfo --task-id --arch noarch --arch x86_64 --arch src 79153156
Downloading: gscan2pdf-2.12.4-1.fc36.src.rpm
[====================================] 100% 515.40 KiB / 515.40 KiB
Downloading: gscan2pdf-2.12.4-1.fc36.noarch.rpm
[====================================] 100% 475.83 KiB / 475.83 KiB
Downloading: gscan2pdf-tests-2.12.4-1.fc36.noarch.rpm
[====================================] 100% 138.95 KiB / 138.95 KiB

Comment 1 Mikolaj Izdebski 2021-11-23 11:07:58 UTC
Proposed fix: https://src.fedoraproject.org/rpms/koji/pull-request/12

Comment 2 Fedora Update System 2021-11-23 12:30:53 UTC
FEDORA-2021-b25427552c has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2021-b25427552c

Comment 3 Fedora Update System 2021-11-23 12:33:21 UTC
FEDORA-2021-b25427552c has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.