Bug 638496

Summary: Unable to raise bug using bugzilla cmd-line
Product: [Fedora] Fedora EPEL Reporter: Kedar Bidarkar <kbidarka>
Component: python-bugzillaAssignee: Will Woods <wwoods>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: el6CC: azelinka, crobinso, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-25 18:50:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kedar Bidarkar 2010-09-29 07:42:12 UTC
Description of problem:  Unable to log bugs using bugzilla command


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

python-bugzilla-0.6.0-1.el6.noarch.rpm
python-2.6.5-3.el6.i686  and x86_64

How reproducible: while using bugzilla cmd-line interface, throws the below error.

bugzilla new -p"xxxxxx" -v "1.0" -c "xxx" -l"initial bug opening" -s"xxxx"

Username: 
> Password:
> Logging in... Authorization cookie received.
> Traceback (most recent call last):
>   File "/usr/bin/bugzilla", line 655, in <module>
>     main()
>   File "/usr/bin/bugzilla", line 493, in main
>     data[a] = i.split(',')
> AttributeError: 'NoneType' object has no attribute 'split'
>

Steps to Reproduce:
1. bugzilla new -p"xxxxxx" -v "1.0" -c "xxx" -l"initial bug opening" -s"xxxx xxx xxx"
2.
3.
  
Actual results: Unable to create a bug


Expected results: should log/create a bug and provide the bug id.


Additional info:


( bugzilla new -p"xxxxxx" -v "1.0" -c "xxx" -l"initial bug opening" -s"xxxx" )

Error:

Username: 
> Password:
> Logging in... Authorization cookie received.
> Traceback (most recent call last):
>   File "/usr/bin/bugzilla", line 655, in <module>
>     main()
>   File "/usr/bin/bugzilla", line 493, in main
>     data[a] = i.split(',')
> AttributeError: 'NoneType' object has no attribute 'split'
>

Comment 1 Ales Zelinka 2011-11-22 15:44:31 UTC
I suspect missing hasattr() before the getattr() call (on line 491) is to blame for this. Adding (an optional) --cc=email can be used as an workaround.

Comment 2 Cole Robinson 2012-12-30 21:42:49 UTC
This is fixed in current python-bugzilla git FYI

Comment 3 Fedora Update System 2013-02-16 15:28:35 UTC
python-bugzilla-0.8.0-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/python-bugzilla-0.8.0-1.el6

Comment 4 Fedora Update System 2013-03-04 22:20:31 UTC
python-bugzilla-0.8.0-2.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/python-bugzilla-0.8.0-2.el6

Comment 5 Fedora Update System 2013-03-09 19:21:19 UTC
Package python-bugzilla-0.8.0-2.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing python-bugzilla-0.8.0-2.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2013-0578/python-bugzilla-0.8.0-2.el6
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-03-25 18:50:33 UTC
python-bugzilla-0.8.0-2.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.