Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1852577

Summary: "dnf history list" displays an erratic output
Product: [Fedora] Fedora Reporter: ruben.lledo.calatayud
Component: dnfAssignee: nsella
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: btanastasov, dmach, george.seaton, jmracek, jrohel, kparal, mblaha, mhatina, nsella, packaging-team-maint, pkratoch, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-4.6.1-1.fc33 dnf-4.6.1-1.fc34 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-05 19:16:47 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:
Attachments:
Description Flags
Expected result
none
Wrong output none

Description ruben.lledo.calatayud 2020-06-30 18:09:09 UTC
Created attachment 1699376 [details]
Expected result

Description of problem:
"dnf history list" displays an erractic output when piped through any other command, for example, "more" or "head":

$ dnf history list | head
$ dnf history list | more

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

How reproducible:

Steps to Reproduce:
Type in a shell:
$ dnf history list | head
$ dnf history list | more

Actual results:
(see attached screenshot)

Expected results:
(see attached screenshot)


Additional info:

Comment 1 ruben.lledo.calatayud 2020-06-30 18:10:14 UTC
Created attachment 1699377 [details]
Wrong output

Comment 3 nsella 2020-10-26 18:01:02 UTC
*** Bug 1862007 has been marked as a duplicate of this bug. ***

Comment 4 nsella 2020-10-27 09:34:58 UTC
*** Bug 1888216 has been marked as a duplicate of this bug. ***

Comment 5 George 2020-12-10 23:32:30 UTC
This is also an issue in RHEL8.
Any need to raise a separate bug report?

Comment 6 Daniel Mach 2020-12-11 09:59:34 UTC
Yes please, it's a different distro, having a separate bug report from a user would be great.
(we try not to file the bugs by ourselves because it hides the requester and breaks the feedback loop)

Comment 8 Fedora Update System 2021-03-02 16:42:10 UTC
FEDORA-2021-4bef57b401 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-4bef57b401

Comment 9 Fedora Update System 2021-03-02 16:42:10 UTC
FEDORA-2021-4d7356a470 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-4d7356a470

Comment 10 Fedora Update System 2021-03-02 16:42:11 UTC
FEDORA-2021-530abc3f9a has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2021-530abc3f9a

Comment 11 Fedora Update System 2021-03-03 15:46:25 UTC
FEDORA-2021-4bef57b401 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-4bef57b401`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-4bef57b401

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2021-03-03 23:04:38 UTC
FEDORA-2021-530abc3f9a has been pushed to the Fedora 32 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-530abc3f9a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-530abc3f9a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2021-03-03 23:52:22 UTC
FEDORA-2021-4d7356a470 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-4d7356a470`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-4d7356a470

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Fedora Update System 2021-03-05 19:16:47 UTC
FEDORA-2021-4d7356a470 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2021-03-23 00:15:26 UTC
FEDORA-2021-4bef57b401 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2021-03-23 01:10:55 UTC
FEDORA-2021-530abc3f9a has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 17 Kamil Páral 2021-03-24 08:20:12 UTC
I can confirm that `sudo dnf history | less` (or head) no longer breaks the output.
dnf-4.6.1-1.fc33.noarch

Comment 18 ruben.lledo.calatayud 2021-03-24 19:56:24 UTC
Hello.

Fixed. Thank you very much.

Regards.