Bug 923384

Summary: DNF uses yum web signature
Product: [Fedora] Fedora Reporter: Stephen John Smoogen <smooge>
Component: dnfAssignee: Ales Kozumplik <akozumpl>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: akozumpl, jzeleny
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: dnf-0.3.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-02 08:41:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 923665    
Bug Blocks:    

Description Stephen John Smoogen 2013-03-19 17:51:30 UTC
Description of problem:

Currently the HTTP signature for dnf is the same as yum's. This makes it not possible to see how the tool is being used in the environment or to debug issues that the client might have versus yum/smart/zif.

Comment 1 Ales Kozumplik 2013-03-20 09:52:03 UTC
For Fedora 18 this is fixed by commit 15a3eae, fix will be in dnf-0.2.23:

Comment 2 Ales Kozumplik 2013-03-20 10:00:22 UTC
The Fedora 19 code in DNF is moving to librepo for metadata and package downloads (majority of the DNF traffic). Opened bug 923665 for librepo to allow us set a custom user agent.

Comment 3 Ales Kozumplik 2013-04-02 08:41:01 UTC
Fixed by 36f1d76 on master. From 0.3.2 on, dnf will always use a user agent string starting with "dnf/".

Unit test is missing, see bug 947346.

Tested when syncing the metadata for google-talkplugin repo:

[root@caws ~]# ngrep -d p21p1 -W byline port 80
interface: p21p1 (
filter: (ip or ip6) and ( port 80 )
T -> [AP]
GET /linux/talkplugin/rpm/stable/x86_64/repodata/repomd.xml HTTP/1.1.
User-Agent: dnf/0.3.1.
Host: dl.google.com.
Accept: */*.