Bug 1335441

Summary: listing of bugs unaligned if it contains bug IDs of non-uniform width
Product: [Fedora] Fedora Reporter: Kamil Dudka <kdudka>
Component: pybugzAssignee: Pavel Raiskup <praiskup>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 25CC: praiskup
Target Milestone: ---Keywords: EasyFix
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-12 10:45:37 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:

Description Kamil Dudka 2016-05-12 08:49:41 UTC
Version-Release number of selected component (if applicable):
pybugz-0.11-6.git3459d.fc25


Steps to Reproduce:
1. bugz search -C curl --show-status


Actual results:
$ bugz search -C curl --show-status | cut -b-72
 * Info: Using [RedHat] (https://bugzilla.redhat.com/xmlrpc.cgi)
 * Info: Searching for bugs meeting the following criteria:
 * Info:    status               = ['NEW', 'ASSIGNED', 'MODIFIED', 'ON_D
 * Info:    component            = ['curl']
1333004 ASSIGNED     kdudka               Curl negotiate does not work w
1204088 NEW          mvadkert             /CoreOS/curl/Regression/bz6785
1335182 NEW          kdudka               [RFE] curl should support NTLM
1305970 ASSIGNED     kdudka               --disable-epsv option ignored 
1107787 NEW          szidek               [RFE] improve test coverage of
697882 NEW          mvadkert             Automatize Bug 694294 - curl AN
878689 ASSIGNED     kdudka               [RFE] cURL should not use disal
1229149 NEW          szidek               Problems with anamon service i
1017131 ASSIGNED     ksrot                /CoreOS/curl/Regression/bz8872
1313924 NEW          szidek               /CoreOS/curl/Regression/bz6256
1313050 NEW          szidek               /CoreOS/curl/Regression/bz1092
 * Info: 11 bug(s) found.


Expected results:

$ bugz search -C curl --show-status | cut -b-72        
 * Info: Using [RedHat] (https://bugzilla.redhat.com/xmlrpc.cgi)
 * Info: Searching for bugs meeting the following criteria:
 * Info:    status               = ['NEW', 'ASSIGNED', 'MODIFIED', 'ON_D
 * Info:    component            = ['curl']
1333004  ASSIGNED     kdudka               Curl negotiate does not work 
1204088  NEW          mvadkert             /CoreOS/curl/Regression/bz678
1335182  NEW          kdudka               [RFE] curl should support NTL
1305970  ASSIGNED     kdudka               --disable-epsv option ignored
1107787  NEW          szidek               [RFE] improve test coverage o
697882   NEW          mvadkert             Automatize Bug 694294 - curl 
878689   ASSIGNED     kdudka               [RFE] cURL should not use dis
1229149  NEW          szidek               Problems with anamon service 
1017131  ASSIGNED     ksrot                /CoreOS/curl/Regression/bz887
1313924  NEW          szidek               /CoreOS/curl/Regression/bz625
1313050  NEW          szidek               /CoreOS/curl/Regression/bz109
 * Info: 11 bug(s) found.


Additional info:
The following trivial patch fixes it:

--- a/bugz/cli.py
+++ b/bugz/cli.py
@@ -20,17 +20,17 @@ from bugz.utils import block_edit, get_content_type
 def list_bugs(buglist, conn):
    for bug in buglist:
        bugid = bug['id']
        status = bug['status']
        priority = bug['priority']
        severity = bug['severity']
        assignee = bug['assigned_to'].split('@')[0]
        desc = bug['summary']
-       line = '%s' % (bugid)
+       line = '%-8s' % (bugid)
        if conn.show_status:
            line = '%s %-12s' % (line, status)
        if conn.show_priority:
            line = '%s %-12s' % (line, priority)
        if conn.show_severity:
            line = '%s %-12s' % (line, severity)
        line = '%s %-20s' % (line, assignee)
        line = '%s %s' % (line, desc)

Comment 1 Jan Kurik 2016-07-26 04:56:24 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 2 Fedora End Of Life 2017-11-16 19:40:58 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 3 Fedora End Of Life 2017-12-12 10:45:37 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 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 please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

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