Bug 1073457

Summary: Auto-completion issue with sudo dnf install
Product: [Fedora] Fedora Reporter: Steven Franzen <sfranzen85>
Component: dnfAssignee: Elad Alfassa <elad>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 20CC: akozumpl, limkokhole, packaging-team-maint, pnemade, redoubts, rholy
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Fixed In Version: dnf-plugins-core-0.0.8-2.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-31 23:57:07 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:    
Bug Blocks: 871892    
Description Flags
Auto-completion with yum and dnf
Auto-completion results none

Description Steven Franzen 2014-03-06 13:24:03 UTC
Created attachment 871446 [details]
Auto-completion with yum and dnf

Description of problem:
When trying to install a package with e.g. "sudo dnf install lib", performing tab completion results in dnf immediately asking for the root (or user) password, as shown in the attachment. After authenticating, completion is no longer possible and dnf starts trying to install whatever name fragment was entered.

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

How reproducible:
At any time the user has to authenticate for sudo.

Steps to Reproduce:
1. Invoke tab completion on a "sudo dnf install" command.

Actual results:
dnf requests authentication and breaks off the completion.

Expected results:
Require root access only for actually installing, not for listing package database contents, like yum.

Additional info:
The same operation performed with yum is also included in the attachment.

Comment 1 Ales Kozumplik 2014-03-06 13:39:36 UTC
Elad can you please take a look and decide how to handle this?

Comment 2 Steven Franzen 2014-03-06 14:52:37 UTC
Created attachment 871500 [details]
Auto-completion results

After reading through some more reports against dnf, I can confirm that this issue does not occur with dnf-plugins-core (0.0.5-2) also installed; in this case the completion matching is performed very quickly. However, yum and dnf report different numbers of possible matches (see attachment).

Comment 3 Ales Kozumplik 2014-03-31 06:35:55 UTC
*** Bug 1082254 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2014-05-28 12:08:43 UTC
dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20 has been submitted as an update for Fedora 20.

Comment 5 Fedora Update System 2014-05-28 23:48:34 UTC
Package dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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.0.8-2.fc20 libsolv-0.6.1-1.git6d968f1.fc20 hawkey-0.4.16-1.fc20 dnf-0.5.2-1.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-05-31 23:57:07 UTC
dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 limkokhole@gmail.com 2015-07-21 08:14:49 UTC
The problem still exist if i set it as alias, i.e. `alias dnf="sudo dnf" on ~/.bashrc.