Bug 580711 - bugzilla cli falls down if bug does not contain a cc list
Summary: bugzilla cli falls down if bug does not contain a cc list
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-bugzilla
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Will Woods
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-08 20:25 UTC by Neil Horman
Modified: 2010-04-22 22:37 UTC (History)
0 users

Fixed In Version: python-bugzilla-0.6.1-1.fc13
Clone Of:
Environment:
Last Closed: 2010-04-22 22:37:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch to not fail if a bug doesn't have some optional attributes (896 bytes, patch)
2010-04-08 20:25 UTC, Neil Horman
no flags Details | Diff

Description Neil Horman 2010-04-08 20:25:21 UTC
Created attachment 405400 [details]
patch to not fail if a bug doesn't have some optional attributes

Description of problem:
The latest bugzilla install at Red Hat apparently doesn't always return a cc list in the xmlrpc response for a full query of a bug, resulting in a traceback and exit.  

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


How reproducible:
often

Steps to Reproduce:
1.find a bug with no cc list item in bugzilla
2.bugzilla --user=X --pass=Y query -f --bug_id=<bz number from 1>

  
Actual results:
traceback

Expected results:
successful dump of bug

Additional info:
I've attached a patch below which fixes the issue

Comment 1 Will Woods 2010-04-08 20:30:14 UTC
As is my tradition, I'm using this bug to test the problem - hence my removing
myself from the CC list.

Anyone else reading this: Kindly do not add yourself to the CC list of this
bug, so it will stay empty.

Comment 2 Will Woods 2010-04-08 20:47:36 UTC
Probably the best solution here is to fix up the Bug object so bug.cc is always guaranteed to exist, even if it's an empty list. I'll have a patch that does this.. soonish.

P.S.: I'm sure you know this, but just for the record: "except: pass" is a great temporary workaround for the problem, but in general OH MAN NEVER DO THAT.

Comment 3 Fedora Update System 2010-04-16 19:26:54 UTC
python-bugzilla-0.6.1-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/python-bugzilla-0.6.1-1.fc13

Comment 4 Fedora Update System 2010-04-20 13:29:53 UTC
python-bugzilla-0.6.1-1.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update python-bugzilla'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/python-bugzilla-0.6.1-1.fc13

Comment 5 Fedora Update System 2010-04-22 22:35:18 UTC
python-bugzilla-0.6.1-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.