Bug 1126163

Summary: python-bugzilla: saved search doesn't work
Product: [Fedora] Fedora Reporter: Need Real Name <steve>
Component: python-bugzillaAssignee: Cole Robinson <crobinso>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bugs.michael, crobinso, dzickus, jskarvad, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-05 09:55:15 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:

Description Need Real Name 2014-08-02 22:39:44 UTC
Description of problem:

% bugzilla --nosslverify query --savedsearch=ruby
Traceback (most recent call last):
  File "/usr/local/bin/bugzilla", line 1250, in <module>
    main()
  File "/usr/local/bin/bugzilla", line 1215, in main
    buglist = _do_query(bz, opt, parser)
  File "/usr/local/bin/bugzilla", line 683, in _do_query
    tags=getattr(opt, "tags", None))
  File "/usr/local/lib/python2.7/site-packages/bugzilla/bugzilla4.py", line 24, in build_query
    query = Bugzilla36.build_query(self, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/bugzilla/base.py", line 1100, in build_query
    "bugzilla" % key)
RuntimeError: 'savedsearch' search not supported by this bugzilla

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

How reproducible:

Install version 1.1.0 and patch default bugzilla:
-default_bz = 'https://bugzilla.redhat.com/xmlrpc.cgi'
+default_bz = 'https://bugs.FreeBSD.org/bugzilla/xmlrpc.cgi'

Steps to Reproduce:

See above

Actual results:

See above

Expected results:

search results

Additional info:

Comment 1 Cole Robinson 2014-08-05 09:55:15 UTC
Thanks for the report, but indeed the freebsd bugzilla instance does not support invoking saved searches over the XMLRPC interface, that's a bugzilla.redhat.com extension. I clarified the error message with this commit:

commit 4490dbc626cb6f26f69110c051e236f2b05e8262
Author: Cole Robinson <crobinso>
Date:   Tue Aug 5 11:16:11 2014 +0200

    base: Clarify that unsupported searches are talking about XMLRPC (bz 1126163

But otherwise it's NOTABUG