Bug 1210275 - DNF doesn't support http authentication
DNF doesn't support http authentication
Product: Fedora
Classification: Fedora
Component: dnf (Show other bugs)
All Linux
unspecified Severity unspecified
: ---
: ---
Assigned To: Michael Mráka
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2015-04-09 06:28 EDT by Kim B. Heino
Modified: 2015-05-08 03:27 EDT (History)
8 users (show)

See Also:
Fixed In Version: dnf-plugins-core-0.1.7-1.fc22
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-05-08 03:27:22 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Add user/pass support for repositories (540 bytes, patch)
2015-04-09 06:28 EDT, Kim B. Heino
no flags Details | Diff

  None (edit)
Description Kim B. Heino 2015-04-09 06:28:31 EDT
Created attachment 1012640 [details]
Add user/pass support for repositories

Description of problem:

With YUM you can use HTTP basic authentication (username and password keywords) in repositories:


This is not supported by DNF. 

Version-Release number of selected component (if applicable):


How reproducible:

Enable HTTP basic authentication on web server and try to download metadata or package with dnf.

Steps to Reproduce:

Actual results:

HTTP error 401.

Expected results:

Download success.

Additional info:

Attached single line patch fixes this problem.
Comment 1 Michael Mráka 2015-04-14 08:10:55 EDT
Fixed in upstream by
Comment 2 Fedora Update System 2015-05-02 09:49:46 EDT
dnf-plugins-core-0.1.7-1.fc22,hawkey-0.5.5-1.fc22,dnf-1.0.0-1.fc22 has been submitted as an update for Fedora 22.
Comment 3 Fedora Update System 2015-05-03 13:24:41 EDT
Package dnf-plugins-core-0.1.7-1.fc22, hawkey-0.5.5-1.fc22, dnf-1.0.0-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-plugins-core-0.1.7-1.fc22 hawkey-0.5.5-1.fc22 dnf-1.0.0-1.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Comment 4 Fedora Update System 2015-05-08 03:27:22 EDT
dnf-plugins-core-0.1.7-1.fc22, hawkey-0.5.5-1.fc22, dnf-1.0.0-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.