Bug 823313
Summary: | 'bugzilla query --assigned_to $USER' broken with latest RH bugzilla 4 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Cole Robinson <crobinso> |
Component: | python-bugzilla | Assignee: | Will Woods <wwoods> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 16 | CC: | crobinso, dallan, dcantrell, jskarvad, sgreen, wwoods |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-12-27 22:24:09 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
Cole Robinson
2012-05-20 19:58:13 UTC
Pulled python-bugzilla from git, which has some specific bugzilla4 handling, But still the same issue: $ bugzilla --debug query --assigned_to crobinso INFO:bugzilla:Connecting to https://bugzilla.redhat.com/xmlrpc.cgi INFO:bugzilla:Autodetecting Bugzilla type INFO:bugzilla:Using RHBugzilla4 for URL containing bugzilla.redhat.com INFO:bugzilla:Using cookies in /home/crobinso/.bugzillacookies for authentication DEBUG:bugzilla:bz.query: {'emailtype1': 'substring', 'emailassigned_to1': True, 'email1': 'crobinso'} DEBUG:bugzilla:request_url is https://bugzilla.redhat.com/xmlrpc.cgi DEBUG:bugzilla:send_cookies(): using existing cookiejar DEBUG:bugzilla:cookie_request headers currently: [] DEBUG:bugzilla:cookie_request headers now: [('Cookie', 'Bugzilla_logincookie=gNmqgZYCT6; Bugzilla_login=199727')] DEBUG:bugzilla:sending cookie: Cookie=Bugzilla_logincookie=gNmqgZYCT6; Bugzilla_login=199727 DEBUG:bugzilla:cookiejar now contains: {'.bugzilla.redhat.com': {'/': {'Bugzilla_logincookie': Cookie(version=0, name='Bugzilla_logincookie', value='gNmqgZYCT6', port=None, port_specified=False, domain='.bugzilla.redhat.com', domain_specified=True, domain_initial_dot=False, path='/', path_specified=True, secure=True, expires=2145916800, discard=False, comment=None, comment_url=None, rest={'HttpOnly': 'None'}, rfc2109=False), 'Bugzilla_login': Cookie(version=0, name='Bugzilla_login', value='199727', port=None, port_specified=False, domain='.bugzilla.redhat.com', domain_specified=True, domain_initial_dot=False, path='/', path_specified=True, secure=True, expires=2145916800, discard=False, comment=None, comment_url=None, rest={'HttpOnly': 'None'}, rfc2109=False)}}} Server error: <Fault 53: 'emailassigned_to1 is not a valid parameter for the Bugzilla::Bug::match function.'> (In reply to comment #1) > Pulled python-bugzilla from git, which has some specific bugzilla4 handling, > But still the same issue: > > Server error: <Fault 53: 'emailassigned_to1 is not a valid parameter for the > Bugzilla::Bug::match function.'> As per https://partner-bugzilla.redhat.com/docs/en/html/api/Bugzilla/WebService/Bug.html#search the value you are looking for is 'assigned_to', not 'emailassigned_to1' -- simon Hmm, okay, the simpler thing is probably for python-bugzilla to add query_format='advanced' to the queries which preserves the old query format (which is also the same format the web search is using). Reassigning this bug to python-bugzilla I'm seeing this problem as well. It's kind of a big deal for me as I use python-bugzilla to query for various bugs assigned to people on my team. Is there any workaround? I feel like an idiot, but I grepped the entire sourcetree for emailassigned_to1, and I cannot find where it's coming from. This has been fixed for a while |