-
Notifications
You must be signed in to change notification settings - Fork 110
Closed
Description
I am testing python-bugzilla on bugzilla.suse.com, and I am confused by the results.
Simple login works:
~$ bugzilla --version
3.0.2
~$ bugzilla login
Logging into bugzilla.suse.com
Bugzilla Username: mcepl
Bugzilla Password:
Login successful. Token cache saved to /home/matej/.cache/python-bugzilla/bugzillatoken
Simple queries work as well:
~$ bugzilla --debug query -a mcepl@suse.com -s 'NEW'
[14:40:42] DEBUG (_cli:1237) Launched with command line: /usr/bin/bugzilla --debug query -a mcepl@suse.com -s NEW
[14:40:42] DEBUG (_cli:1238) Bugzilla module: <module 'bugzilla' from '/usr/lib/python3.8/site-packages/bugzilla/__init__.py'>
[14:40:42] DEBUG (_authfiles:211) Using cookiefile=/home/matej/.cache/python-bugzilla/bugzillacookies
[14:40:42] DEBUG (_authfiles:181) Using tokenfile=/home/matej/.cache/python-bugzilla/bugzillatoken
[14:40:42] INFO (_authfiles:67) Found bugzillarc files: ['/home/matej/.config/python-bugzilla/bugzillarc']
[14:40:43] DEBUG (_backendbase:28) Failed to probe url=https://bugzilla.suse.com/xmlrpc.cgi : 411 Client Error: Length Required for url: https://bugzilla.suse.com/xmlrpc.cgi
[14:40:44] DEBUG (_backendbase:28) Failed to probe url=https://bugzilla.suse.com/xmlrpc.cgi : 411 Client Error: Length Required for url: https://bugzilla.suse.com/xmlrpc.cgi
[14:40:44] DEBUG (base:510) Converted url=https://bugzilla.suse.com to fixed url=https://bugzilla.suse.com/xmlrpc.cgi
[14:40:44] DEBUG (base:512) Connecting with URL https://bugzilla.suse.com/xmlrpc.cgi
[14:40:44] DEBUG (_authfiles:89) bugzillarc: Searching for config section matching https://bugzilla.suse.com/xmlrpc.cgi
[14:40:44] DEBUG (_authfiles:105) bugzillarc: No section found
[14:40:44] DEBUG (_backendxmlrpc:120) XMLRPC call: Bugzilla.version({})
[14:40:45] DEBUG (base:534) Bugzilla version string: 4.4.12
[14:40:45] DEBUG (_backendxmlrpc:120) XMLRPC call: Bug.search({'bug_status': ['NEW'], 'assigned_to': 'mcepl@suse.com', 'include_fields': ['assigned_to', 'id', 'status', 'summary']})
[14:40:46] DEBUG (base:1318) bug_search returned:
{'bugs': [{'status': 'NEW', 'summary': 'python-lupa build failure test_coroutine_sets_callback_debug_hook_nowrap ppc64le segfault', 'assigned_to': 'mcepl@suse.com', 'id': 1167557}, {'status': 'NEW', 'summary': 'VUL-0: CVE-2013-7489: python-Beaker: Deserialization of Untrusted Data which can lead to Arbitrary code execution', 'assigned_to': 'mcepl@suse.com', 'id': 1173583}, {'status': 'NEW', 'summary': 'VUL-0: CVE-2020-25659: python-cryptography: bleichenbacher timing oracle attack against RSA decryption', 'assigned_to': 'mcepl@suse.com', 'id': 1178168}, {'status': 'NEW', 'summary': 'VUL-0: CVE-2020-25657: python-m2crypto,python-M2Crypto: Bleichenbacher timing attacks in the RSA decryption API', 'assigned_to': 'mcepl@suse.com', 'id': 1178829}, {'status': 'NEW', 'summary': 'python-SQLAlchemy: Deprecated syntax used for PostgreSQL check constraints: `consrc`', 'assigned_to': 'mcepl@suse.com', 'id': 1179325}, {'status': 'NEW', 'summary': 'L3: python update has new dependency ref:_00D1igLOd._5001iX9uE1:ref', 'assigned_to': 'mcepl@suse.com', 'id': 1180125}, {'status': 'NEW', 'summary': 'python3 virtualvenv cant be created', 'assigned_to': 'mcepl@suse.com', 'id': 1180198}, {'status': 'NEW', 'summary': 'python3-lxml reports undefined symbols', 'assigned_to': 'mcepl@suse.com', 'id': 1180331}, {'status': 'NEW', 'summary': 'Security Update for Python3 (3.6.12-lp151.6.30.1) breaks FreeCad 0.18.1 Workbench Path', 'assigned_to': 'mcepl@suse.com', 'id': 1180382}]}
[14:40:46] DEBUG (base:1330) Query returned 9 bugs
#1167557 NEW - mcepl@suse.com - python-lupa build failure test_coroutine_sets_callback_debug_hook_nowrap ppc64le segfault
#1173583 NEW - mcepl@suse.com - VUL-0: CVE-2013-7489: python-Beaker: Deserialization of Untrusted Data which can lead to Arbitrary code execution
#1178168 NEW - mcepl@suse.com - VUL-0: CVE-2020-25659: python-cryptography: bleichenbacher timing oracle attack against RSA decryption
#1178829 NEW - mcepl@suse.com - VUL-0: CVE-2020-25657: python-m2crypto,python-M2Crypto: Bleichenbacher timing attacks in the RSA decryption API
#1179325 NEW - mcepl@suse.com - python-SQLAlchemy: Deprecated syntax used for PostgreSQL check constraints: `consrc`
#1180125 NEW - mcepl@suse.com - L3: python update has new dependency ref:_00D1igLOd._5001iX9uE1:ref
#1180198 NEW - mcepl@suse.com - python3 virtualvenv cant be created
#1180331 NEW - mcepl@suse.com - python3-lxml reports undefined symbols
#1180382 NEW - mcepl@suse.com - Security Update for Python3 (3.6.12-lp151.6.30.1) breaks FreeCad 0.18.1 Workbench Path
~$ bugzilla query -a mcepl@suse.com -s 'REOPENED'
#1111151 REOPENED - mcepl@suse.com - VUL-0: CVE-2018-1000805: python-paramiko: python-paramiko: Authentication bypass in auth_handler.py
#1175234 REOPENED - mcepl@suse.com - python3: pip3 error: "cannot import name 'FormatControl' "
However, when I try combination, it doesn't work:
~$ bugzilla --debug query -a mcepl@suse.com -s 'NEW | CONFIRMED | REOPENED'
[14:40:00] DEBUG (_cli:1237) Launched with command line: /usr/bin/bugzilla --debug query -a mcepl@suse.com -s NEW | CONFIRMED | REOPENED
[14:40:00] DEBUG (_cli:1238) Bugzilla module: <module 'bugzilla' from '/usr/lib/python3.8/site-packages/bugzilla/__init__.py'>
[14:40:00] DEBUG (_authfiles:211) Using cookiefile=/home/matej/.cache/python-bugzilla/bugzillacookies
[14:40:00] DEBUG (_authfiles:181) Using tokenfile=/home/matej/.cache/python-bugzilla/bugzillatoken
[14:40:00] INFO (_authfiles:67) Found bugzillarc files: ['/home/matej/.config/python-bugzilla/bugzillarc']
[14:40:01] DEBUG (_backendbase:28) Failed to probe url=https://bugzilla.suse.com/xmlrpc.cgi : 411 Client Error: Length Required for url: https://bugzilla.suse.com/xmlrpc.cgi
[14:40:02] DEBUG (_backendbase:28) Failed to probe url=https://bugzilla.suse.com/xmlrpc.cgi : 411 Client Error: Length Required for url: https://bugzilla.suse.com/xmlrpc.cgi
[14:40:02] DEBUG (base:510) Converted url=https://bugzilla.suse.com to fixed url=https://bugzilla.suse.com/xmlrpc.cgi
[14:40:02] DEBUG (base:512) Connecting with URL https://bugzilla.suse.com/xmlrpc.cgi
[14:40:02] DEBUG (_authfiles:89) bugzillarc: Searching for config section matching https://bugzilla.suse.com/xmlrpc.cgi
[14:40:02] DEBUG (_authfiles:105) bugzillarc: No section found
[14:40:02] DEBUG (_backendxmlrpc:120) XMLRPC call: Bugzilla.version({})
[14:40:03] DEBUG (base:534) Bugzilla version string: 4.4.12
[14:40:03] DEBUG (_backendxmlrpc:120) XMLRPC call: Bug.search({'bug_status': ['NEW | CONFIRMED | REOPENED'], 'assigned_to': 'mcepl@suse.com', 'include_fields': ['assigned_to', 'id', 'status', 'summary']})
[14:40:04] DEBUG (base:1318) bug_search returned:
{'bugs': []}
[14:40:04] DEBUG (base:1330) Query returned 0 bugs
~@stitny$
~$
And trying to use saved query and --from-url
ends in the backtrace:
~$ bugzilla --debug query --from-url 'https://bugzilla.suse.com/buglist.cgi?bug_status=NEW&bug_status=CONFIRMED&bug_status=REOPENED&columnlist=product%2Ccomponent%2Cassigned_to%2Cbug_status%2Cshort_desc%2Cchangeddate%2Cpriority&email1=mcepl%40suse.com&emailassigned_to1=1&emailtype1=substring&known_name=TODO_list&list_id=13296775&query_based_on=TODO_list&query_format=advanced'
[14:35:35] DEBUG (_cli:1237) Launched with command line: /usr/bin/bugzilla --debug query --from-url https://bugzilla.suse.com/buglist.cgi?bug_status=NEW&bug_status=CONFIRMED&bug_status=REOPENED&columnlist=product%2Ccomponent%2Cassigned_to%2Cbug_status%2Cshort_desc%2Cchangeddate%2Cpriority&email1=mcepl%40suse.com&emailassigned_to1=1&emailtype1=substring&known_name=TODO_list&list_id=13296775&query_based_on=TODO_list&query_format=advanced
[14:35:35] DEBUG (_cli:1238) Bugzilla module: <module 'bugzilla' from '/usr/lib/python3.8/site-packages/bugzilla/__init__.py'>
[14:35:35] DEBUG (_authfiles:211) Using cookiefile=/home/matej/.cache/python-bugzilla/bugzillacookies
[14:35:35] DEBUG (_authfiles:181) Using tokenfile=/home/matej/.cache/python-bugzilla/bugzillatoken
[14:35:35] INFO (_authfiles:67) Found bugzillarc files: ['/home/matej/.config/python-bugzilla/bugzillarc']
[14:35:36] DEBUG (_backendbase:28) Failed to probe url=https://bugzilla.suse.com/xmlrpc.cgi : 411 Client Error: Length Required for url: https://bugzilla.suse.com/xmlrpc.cgi
[14:35:37] DEBUG (_backendbase:28) Failed to probe url=https://bugzilla.suse.com/xmlrpc.cgi : 411 Client Error: Length Required for url: https://bugzilla.suse.com/xmlrpc.cgi
[14:35:37] DEBUG (base:510) Converted url=https://bugzilla.suse.com to fixed url=https://bugzilla.suse.com/xmlrpc.cgi
[14:35:37] DEBUG (base:512) Connecting with URL https://bugzilla.suse.com/xmlrpc.cgi
[14:35:37] DEBUG (_authfiles:89) bugzillarc: Searching for config section matching https://bugzilla.suse.com/xmlrpc.cgi
[14:35:37] DEBUG (_authfiles:105) bugzillarc: No section found
[14:35:37] DEBUG (_backendxmlrpc:120) XMLRPC call: Bugzilla.version({})
[14:35:38] DEBUG (base:534) Bugzilla version string: 4.4.12
[14:35:38] DEBUG (_backendxmlrpc:120) XMLRPC call: Bug.search({'include_fields': ['assigned_to', 'id', 'status', 'summary'], 'bug_status': ['NEW', 'CONFIRMED', 'REOPENED'], 'columnlist': 'product,component,assigned_to,bug_status,short_desc,changeddate,priority', 'email1': 'mcepl@suse.com', 'emailassigned_to1': '1', 'emailtype1': 'substring', 'known_name': 'TODO_list', 'list_id': '13296775', 'query_based_on': 'TODO_list', 'query_format': 'advanced'})
[14:35:39] DEBUG (_cli:1291)
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/bugzilla/_cli.py", line 1289, in main
return _main(unittest_bz_instance)
File "/usr/lib/python3.8/site-packages/bugzilla/_cli.py", line 1262, in _main
buglist = _do_query(bz, opt, parser)
File "/usr/lib/python3.8/site-packages/bugzilla/_cli.py", line 610, in _do_query
return bz.query(q)
File "/usr/lib/python3.8/site-packages/bugzilla/base.py", line 1317, in query
r = self._backend.bug_search(query)
File "/usr/lib/python3.8/site-packages/bugzilla/_backendxmlrpc.py", line 193, in bug_search
return self._xmlrpc_proxy.Bug.search(paramdict)
File "/usr/lib64/python3.8/xmlrpc/client.py", line 1109, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python3.8/site-packages/bugzilla/_backendxmlrpc.py", line 132, in _ServerProxy__request
ret = ServerProxy._ServerProxy__request(self, methodname, (newparams,))
File "/usr/lib64/python3.8/xmlrpc/client.py", line 1450, in __request
response = self.__transport.request(
File "/usr/lib/python3.8/site-packages/bugzilla/_backendxmlrpc.py", line 100, in request
return self.__request_helper(url, request_body)
File "/usr/lib/python3.8/site-packages/bugzilla/_backendxmlrpc.py", line 47, in __request_helper
return self.parse_response(response)
File "/usr/lib/python3.8/site-packages/bugzilla/_backendxmlrpc.py", line 84, in parse_response
return unmarshaller.close()
File "/usr/lib64/python3.8/xmlrpc/client.py", line 655, in close
raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault 53: 'email1 is not a valid parameter for the Bugzilla::Bug::match function.'>
Server error: <Fault 53: 'email1 is not a valid parameter for the Bugzilla::Bug::match function.'>
~$ bugzilla --debug query --savedsearch TODO_list
[14:35:58] DEBUG (_cli:1237) Launched with command line: /usr/bin/bugzilla --debug query --savedsearch TODO_list
[14:35:58] DEBUG (_cli:1238) Bugzilla module: <module 'bugzilla' from '/usr/lib/python3.8/site-packages/bugzilla/__init__.py'>
[14:35:58] DEBUG (_authfiles:211) Using cookiefile=/home/matej/.cache/python-bugzilla/bugzillacookies
[14:35:58] DEBUG (_authfiles:181) Using tokenfile=/home/matej/.cache/python-bugzilla/bugzillatoken
[14:35:58] INFO (_authfiles:67) Found bugzillarc files: ['/home/matej/.config/python-bugzilla/bugzillarc']
[14:35:59] DEBUG (_backendbase:28) Failed to probe url=https://bugzilla.suse.com/xmlrpc.cgi : 411 Client Error: Length Required for url: https://bugzilla.suse.com/xmlrpc.cgi
[14:36:00] DEBUG (_backendbase:28) Failed to probe url=https://bugzilla.suse.com/xmlrpc.cgi : 411 Client Error: Length Required for url: https://bugzilla.suse.com/xmlrpc.cgi
[14:36:00] DEBUG (base:510) Converted url=https://bugzilla.suse.com to fixed url=https://bugzilla.suse.com/xmlrpc.cgi
[14:36:00] DEBUG (base:512) Connecting with URL https://bugzilla.suse.com/xmlrpc.cgi
[14:36:00] DEBUG (_authfiles:89) bugzillarc: Searching for config section matching https://bugzilla.suse.com/xmlrpc.cgi
[14:36:00] DEBUG (_authfiles:105) bugzillarc: No section found
[14:36:00] DEBUG (_backendxmlrpc:120) XMLRPC call: Bugzilla.version({})
[14:36:02] DEBUG (base:534) Bugzilla version string: 4.4.12
[14:36:02] DEBUG (_backendxmlrpc:120) XMLRPC call: Bug.search({'savedsearch': 'TODO_list', 'include_fields': ['assigned_to', 'id', 'status', 'summary']})
[14:36:03] DEBUG (_cli:1291)
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/bugzilla/_cli.py", line 1289, in main
return _main(unittest_bz_instance)
File "/usr/lib/python3.8/site-packages/bugzilla/_cli.py", line 1262, in _main
buglist = _do_query(bz, opt, parser)
File "/usr/lib/python3.8/site-packages/bugzilla/_cli.py", line 610, in _do_query
return bz.query(q)
File "/usr/lib/python3.8/site-packages/bugzilla/base.py", line 1317, in query
r = self._backend.bug_search(query)
File "/usr/lib/python3.8/site-packages/bugzilla/_backendxmlrpc.py", line 193, in bug_search
return self._xmlrpc_proxy.Bug.search(paramdict)
File "/usr/lib64/python3.8/xmlrpc/client.py", line 1109, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python3.8/site-packages/bugzilla/_backendxmlrpc.py", line 132, in _ServerProxy__request
ret = ServerProxy._ServerProxy__request(self, methodname, (newparams,))
File "/usr/lib64/python3.8/xmlrpc/client.py", line 1450, in __request
response = self.__transport.request(
File "/usr/lib/python3.8/site-packages/bugzilla/_backendxmlrpc.py", line 100, in request
return self.__request_helper(url, request_body)
File "/usr/lib/python3.8/site-packages/bugzilla/_backendxmlrpc.py", line 47, in __request_helper
return self.parse_response(response)
File "/usr/lib/python3.8/site-packages/bugzilla/_backendxmlrpc.py", line 84, in parse_response
return unmarshaller.close()
File "/usr/lib64/python3.8/xmlrpc/client.py", line 655, in close
raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault 53: 'savedsearch is not a valid parameter for the Bugzilla::Bug::match function.'>
Server error: <Fault 53: 'savedsearch is not a valid parameter for the Bugzilla::Bug::match function.'>
~$
Is there something wrong with our particular instance, or is this module too optimistic about things it is capable of?
Metadata
Metadata
Assignees
Labels
No labels