Skip to content

Author of comment no longer displayed  #56

@btlogy

Description

@btlogy

Observed using v2.1.0 (on CentOS 6 and 7). But likely still present in the current master (see link below).

Since a few weeks (not sure how long), bin/bugzilla is no longer showing author of comments when querying with '--outputformat "%{comments}"':

$ bugzilla --debug query --bug_id 1433987 --outputformat "%{comments}"
[13:11:05] DEBUG (bugzilla:1043) Launched with command line: /usr/bin/bugzilla --debug query --bug_id 1433987 --outputformat %{comments}
[13:11:05] INFO (bugzilla:1046) Connecting to https://bugzilla.redhat.com/xmlrpc.cgi
[13:11:05] DEBUG (base:313) Using tokenfile=/home/guess/.cache/python-bugzilla/bugzillatoken
[13:11:05] DEBUG (base:442) Using cookiefile=/home/guess/.bugzillacookies
[13:11:06] DEBUG (base:560) Bugzilla version string: 4.4.12074.2
[13:11:06] INFO (base:330) Using RHBugzilla for URL containing bugzilla.redhat.com
[13:11:06] DEBUG (base:1211) Calling Bug.search with: {'include_fields': ['comments', 'id'], 'id': ['1433987']}
[13:11:07] DEBUG (base:1227) Query returned 1 bugs
[13:11:07] DEBUG (bug:41) Bug(['comments', 'creation_time', 'id'])

* 20170320T13:55:36 - :
A vulnerability found in the NTP server makes it possible for an authenticated remote user to crash ntpd via a malformed mode configuration directive.
...

But it still shows up when using '--outputformat "%{longdescs}"':

$ bugzilla --debug query --bug_id 1433987 --outputformat "%{longdescs}"
[13:13:59] DEBUG (bugzilla:1043) Launched with command line: /usr/bin/bugzilla --debug query --bug_id 1433987 --outputformat %{longdescs}
[13:13:59] INFO (bugzilla:1046) Connecting to https://bugzilla.redhat.com/xmlrpc.cgi
[13:13:59] DEBUG (base:313) Using tokenfile=/home/guess/.cache/python-bugzilla/bugzillatoken
[13:13:59] DEBUG (base:442) Using cookiefile=/home/guess/.bugzillacookies
[13:14:00] DEBUG (base:560) Bugzilla version string: 4.4.12074.2
[13:14:00] INFO (base:330) Using RHBugzilla for URL containing bugzilla.redhat.com
[13:14:00] DEBUG (base:1211) Calling Bug.search with: {'include_fields': ['comments', 'id'], 'id': ['1433987']}
[13:14:01] DEBUG (base:1227) Query returned 1 bugs
[13:14:01] DEBUG (bug:41) Bug(['comments', 'creation_time', 'id'])
{'count': 0, 'author': u'Adam Mari\u0161', 'text': 'A vulnerability found in the NTP server makes it possible for an authenticated remote user to crash ntpd via a malformed mode configuration directive.\n\nMitigation:\n\nProperly monitor your ntpd instances, and auto-restart ntpd (without -g) if it stops running.', 'creation_time': <DateTime '20170320T13:55:36' at 1e86a28>, 'bug_id': 1433987, 'creator_id': 384315, 'time': <DateTime '20170320T13:55:36' at 1e86a70>, 'id': 10254406, 'is_private': False},
...

I've figured the attribute name may have changed from "creator" to "author" which can be easily fixed here.
However, I'm not sure how this change should be handled in terms of backward compatibility as other bugzilla instances may still use "creator"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions