Bug 1222078

Summary: [abrt] python-bugzilla: models.py:851:raise_for_status:HTTPError: 404 Client Error: Not Found
Product: [Fedora] Fedora Reporter: Dr. David Alan Gilbert <dgilbert>
Component: python-bugzillaAssignee: Cole Robinson <crobinso>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: crobinso, dzickus, jskarvad, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/43a44d68e8b0b8cad80c2e5bc6e79992ee4f0373
Whiteboard: abrt_hash:1d29e7edc31511178bde8ec893cbe09b4ba8418f
Fixed In Version: python-bugzilla-1.2.1-1.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-07 15:58:15 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:
Attachments:
Description Flags
File: backtrace
none
File: dso_list
none
File: environ none

Description Dr. David Alan Gilbert 2015-05-15 17:14:03 UTC
Description of problem:
I was experimenting with a local bugzilla server and I think I just gave it
a bad URL (It seems to want http://host/bugzilla/xmlrpc.cgi for me);
it seems excessive that passing a bad URL triggers abrt!

Version-Release number of selected component:
python-bugzilla-1.2.0-1.fc22

Additional info:
reporter:       libreport-2.5.1
cmdline:        /usr/bin/python2 -tt /usr/bin/bugzilla --bugzilla http://10.19.159.216/xmlrpc.cgi info
executable:     /usr/bin/bugzilla
kernel:         4.0.2-300.fc22.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
models.py:851:raise_for_status:HTTPError: 404 Client Error: Not Found

Traceback (most recent call last):
  File "/usr/bin/bugzilla", line 1260, in <module>
    main()
  File "/usr/bin/bugzilla", line 1172, in main
    sslverify=global_opt.sslverify)
  File "/usr/lib/python2.7/site-packages/bugzilla/base.py", line 389, in __init__
    if self._init_class_from_url(url, sslverify):
  File "/usr/lib/python2.7/site-packages/bugzilla/__init__.py", line 108, in _init_class_from_url
    c = _getBugzillaClassForURL(url, sslverify)
  File "/usr/lib/python2.7/site-packages/bugzilla/__init__.py", line 58, in _getBugzillaClassForURL
    extensions = s.Bugzilla.extensions()
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1591, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/site-packages/bugzilla/base.py", line 263, in request
    return self._request_helper(url, request_body)
  File "/usr/lib/python2.7/site-packages/bugzilla/base.py", line 236, in _request_helper
    response.raise_for_status()
  File "/usr/lib/python2.7/site-packages/requests/models.py", line 851, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
HTTPError: 404 Client Error: Not Found

Local variables in innermost frame:
self: <Response [404]>
http_error_msg: '404 Client Error: Not Found'

Comment 1 Dr. David Alan Gilbert 2015-05-15 17:14:06 UTC
Created attachment 1025971 [details]
File: backtrace

Comment 2 Dr. David Alan Gilbert 2015-05-15 17:14:08 UTC
Created attachment 1025972 [details]
File: dso_list

Comment 3 Dr. David Alan Gilbert 2015-05-15 17:14:09 UTC
Created attachment 1025973 [details]
File: environ

Comment 4 Cole Robinson 2015-05-19 15:53:28 UTC
Thanks for the report, fixed upstream now:

commit cddd94a8610793dfc7fb96c959a00ba315bf416c
Author: Cole Robinson <crobinso>
Date:   Tue May 19 11:37:29 2015 -0400

    bin/bugzilla: Don't raise exception for connection failure (bz 1222078)

Comment 5 Fedora Update System 2015-05-22 17:37:59 UTC
python-bugzilla-1.2.1-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/python-bugzilla-1.2.1-1.fc21

Comment 6 Fedora Update System 2015-05-22 17:38:23 UTC
python-bugzilla-1.2.1-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/python-bugzilla-1.2.1-1.fc22

Comment 7 Fedora Update System 2015-05-22 17:38:27 UTC
python-bugzilla-1.2.1-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-bugzilla-1.2.1-1.fc20

Comment 8 Fedora Update System 2015-05-26 03:17:19 UTC
Package python-bugzilla-1.2.1-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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.2.1-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-8746/python-bugzilla-1.2.1-1.fc20
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2015-06-07 15:58:15 UTC
python-bugzilla-1.2.1-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2015-06-07 16:06:11 UTC
python-bugzilla-1.2.1-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2015-06-09 15:20:47 UTC
python-bugzilla-1.2.1-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.