Bug 2226471

Summary: Autocomplete appends the whole package name when autocompleting kernel-core-6.x
Product: [Fedora] Fedora Reporter: Renich Bon Ciric <renich>
Component: dnf5Assignee: rpm-software-management
Status: CLOSED EOL QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 38CC: jkolarik, nsella, pkratoch, rpm-software-management
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-28 13:35:36 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 Renich Bon Ciric 2023-07-25 20:18:08 UTC
If you try to remove old kernels (6.3.x at the time) and you use auto completion, then dnf5 autocompletes the name incorrectly by appending the whole package name once again. 

Reproducible: Always

Steps to Reproduce:
1. dnf5 list installed kernel*
2. dnf5 remove kernel-core-0<tab>
3. dnf5 remove kernel-core-0:6.3.<tab>
Actual Results:  
I end up with:

dnf remove kernel-core-0:kernel-core-0:6.3.11

Or something similar.

Expected Results:  
I should just get: 

dnf remove kenrel-core-0:6.3.11

for example.

This might apply to other package names. Also, it wouldn't accept: dnf remove kernel-core-0:6.3*.

Comment 1 Jaroslav Mracek 2023-12-04 15:53:51 UTC
The issue is valid and reproducible with dnf5-5.1.7

Comment 2 Aoife Moloney 2024-05-28 13:35:36 UTC
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21.

Fedora Linux 38 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.