Bug 998256
| Summary: | raw output: ATTRIBUTE[_dowhiteboard]: <bound method _Bug._dowhiteboard of <Bug #871637 on https://bugzilla.redhat.com/xmlrpc.cgi at 0xda7dd0>> | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Steve Tyler <stephent98> | ||||
| Component: | python-bugzilla | Assignee: | Will Woods <wwoods> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 19 | CC: | bugs.michael, crobinso, dzickus, jskarvad, stephent98, wwoods | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | python-bugzilla-1.0.0-2.fc19 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-04-09 00:56:11 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
Steve Tyler
2013-08-18 16:29:55 UTC
Created attachment 787795 [details] [debugging] bz998256-raw-field-type-debugging-1.patch This debugging patch shows that the test in line 696 is incomplete. In particular, the test fails to detect attributes of <type 'instancemethod'>: ATTRIBUTE[_dowhiteboard]: (<type 'instancemethod'>) <bound method _Bug._dowhiteboard of <Bug #986069 on https://bugzilla.redhat.com/xmlrpc.cgi at 0x256fc10>> $ less -N python-bugzilla-0.9.0/bin/bugzilla ... 690 def _format_output(bz, opt, buglist): 691 if opt.output == 'raw': 692 buglist = bz.getbugs([b.bug_id for b in buglist]) 693 for b in buglist: 694 print "Bugzilla %s: " % b.bug_id 695 for a in dir(b): 696 if a.startswith("__") and a.endswith("__"): 697 continue 698 print to_encoding(u"ATTRIBUTE[%s]: %s" % (a, getattr(b, a))) 699 print "\n\n" 700 return ... Fixed upstream now:
commit 0fc2285690a96fdc9d04d6946af1c25ea5102ac5
Author: Cole Robinson <crobinso>
Date: Mon Oct 28 13:46:56 2013 -0400
bugzilla: Don't show methods in --raw output (bz 998256)
python-bugzilla-1.0.0-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/python-bugzilla-1.0.0-1.fc19 Package python-bugzilla-1.0.0-1.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing python-bugzilla-1.0.0-1.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-4391/python-bugzilla-1.0.0-1.fc19 then log in and leave karma (feedback). python-bugzilla-1.0.0-2.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/python-bugzilla-1.0.0-2.fc19 python-bugzilla-1.0.0-2.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. |