Bug 577327 - Traceback when attempting to assign a bug to a user
Summary: Traceback when attempting to assign a bug to a user
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-03-26 17:35 UTC by Neil Horman
Modified: 2010-04-22 22:35 UTC (History)
1 user (show)

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


Attachments (Terms of Use)

Description Neil Horman 2010-03-26 17:35:20 UTC
Description of problem:

Got the follwoing trying to assign a bug to a user

[nhorman@shamino scripts]$ bugzilla --user=nhorman --password=YYYYY modify --assignee=jolsa 565560
Traceback (most recent call last):
  File "/usr/bin/bugzilla", line 595, in <module>
    main()
  File "/usr/bin/bugzilla", line 496, in main
    bug.setassignee(assigned_to=opt.assignee,comment=opt.comment)
  File "/usr/lib/python2.6/site-packages/bugzilla/base.py", line 1143, in setassignee
    reporter=reporter,qa_contact=qa_contact,comment=comment)
  File "/usr/lib/python2.6/site-packages/bugzilla/rhbugzilla.py", line 472, in _setassignee
    return self._update_bug(id,update)
  File "/usr/lib/python2.6/site-packages/bugzilla/rhbugzilla.py", line 432, in _update_bug
    return self._update_bugs(ids=[id],updates=updates)
  File "/usr/lib/python2.6/site-packages/bugzilla/rhbugzilla.py", line 427, in _update_bugs
    return self._proxy.Bug.update({'ids':ids,'updates':updates})
  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1483, in __request
    allow_none=self.__allow_none)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1132, in dumps
    data = m.dumps(params)
  File "/usr/lib/python2.6/xmlrpclib.py", line 677, in dumps
    dump(v, write)
  File "/usr/lib/python2.6/xmlrpclib.py", line 699, in __dump
    f(self, value, write)
  File "/usr/lib/python2.6/xmlrpclib.py", line 780, in dump_struct
    dump(v, write)
  File "/usr/lib/python2.6/xmlrpclib.py", line 699, in __dump
    f(self, value, write)
  File "/usr/lib/python2.6/xmlrpclib.py", line 780, in dump_struct
    dump(v, write)
  File "/usr/lib/python2.6/xmlrpclib.py", line 699, in __dump
    f(self, value, write)
  File "/usr/lib/python2.6/xmlrpclib.py", line 703, in dump_nil
    raise TypeError, "cannot marshal None unless allow_none is enabled"
TypeError: cannot marshal None unless allow_none is enabled


Version-Release number of selected component (if applicable):
0.5.1-3.fc12

How reproducible:
always

Steps to Reproduce:
1.attempt to assign a bug to a user on the RH bugzilla site

  
Actual results:
traceback above

Expected results:
successful assignment

Additional info:

Comment 1 Will Woods 2010-04-01 18:23:48 UTC
Found it - the bugzilla CLI sets comment=None if there's no comment, and RHBugzilla3's _setassignee was trying to pass that None along to Bugzilla, which rejected it.

Git commit 62cbb8c changes _setassignee to skip keyword values which are set to None.

In the meantime you can work around this by explicitly setting "--comment=''" when using the CLI.

Comment 2 Neil Horman 2010-04-01 18:47:07 UTC
cool, thanks will!

Comment 3 Fedora Update System 2010-04-16 19:26:50 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:49 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:10 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.