Comment 3 for bug 1776263

Revision history for this message
David Ward (dpward) wrote :

Two observations here — perhaps the second is more important.

First, bugzilla.kernel.org seems to truncate the response only if the XML-RPC request is unauthenticated:

  $ python
  >>> import xmlrpclib
  >>> kernel = xmlrpclib.ServerProxy('https://bugzilla.kernel.org/xmlrpc.cgi')
  >>> kernel.Bug.comments({'comment_ids': [1052651]})['comments']['1052651']['creator']
  'david.ward'
  >>>
  >>> # API method added in Bugzilla 3.6
  ...
  >>> kernel_login = '<redacted>'
  >>> kernel_password = '<redacted>'
  >>> kernel.Bug.comments({'Bugzilla_login': kernel_login, 'Bugzilla_password': kernel_password, 'comment_ids': [1052651]})['comments']['1052651']['creator']
  'david.ward@<domain redacted>'
  >>>
  >>> # API method added in Bugzilla 5.0 (and backported to Bugzilla 4.4.3)
  ...
  >>> kernel_token = kernel.User.login({'login': kernel_login, 'password': kernel_password})['token']
  >>> kernel.Bug.comments({'Bugzilla_token': kernel_token, 'comment_ids': [1052651]})['comments']['1052651']['creator']
  'david.ward@<domain redacted>'

Second, the truncated login name returned by bugzilla.kernel.org is *not* unique to a single user:

  >>> # Comment from Dave Chinner: https://bugzilla.kernel.org/show_bug.cgi?id=109291#c1
  ...
  >>> kernel.Bug.comments({'comment_ids': [954481]})['comments']['954481']['creator']
  'david'
  >>>
  >>> # Comment from David Hildenbrand: https://bugzilla.kernel.org/show_bug.cgi?id=198621#c1
  ...
  >>> kernel.Bug.comments({'comment_ids': [1279013]})['comments']['1279013']['creator']
  'david'

As a result, if both of these bugs were watched by Launchpad, they would both appear here as if they involved the same person: https://bugs.launchpad.net/~david-linux-kernel-bugs
(Currently, neither of these bugs are being watched.)