williamh/pybugz — Issue #13: searching in comments does not work
Author: infrabit
Created: 2012-01-09 10:18:06+00:00
State: open

Hi,

I'm new to GitHub so apologies if this is not the correct way to do things.

It appears that searching in comments does not work, here's how to reproduce:

~ $ which bugz
/usr/bin/bugz
~ $
~ $
~ $ bugz --version
bugz 0.9.3
~ $
~ $
~ $ bugz search -c milw0rm | tail -n 2
248819 robbat2 Willikins should forward replies to the targeted per
* 5000 bug(s) found.

Note "5000" and then look at bug 248819 there isn't a string "milw0rm" anywhere
in it:

~ $ bugz get 248819
* Using https://bugs.gentoo.org
* Getting bug 248819 ..
* Already logged in.
Title : Willikins should forward replies to the targeted person
Assignee : robbat2@gentoo.org
Reported : 2008-11-25 20:28:00 +0000
Updated : 2010-12-17 04:04:32 +0000
Status : CONFIRMED
Severity : enhancement
Priority : High
Reporter : michael@smith-li.com
Product : Gentoo Infrastructure
Component : Other
CC : spatz@gentoo.org
Comments : 2
Attachments : 0

[Comment #0] michael@smith-li.com : 2008-11-25 20:28:36 +0000
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
When I trigger a response from Willikins, he always highlights me in the reply. However, often I am triggering that response for someone else. It would make sense for Willikins to
highlight the person to whom I am directing the message, rather than me.

Reproducible: Always

Steps to Reproduce:
1. On IRC, enter a channel where Willikins is present and has voice.
2. Tell another person in that channel about a specific, existing bug.
3. Note Willikins' reply
Actual Results:
15:18 < kojiro> tom_unaff: bug 227303
15:18 < Willikins> kojiro: https://bugs.gentoo.org/227303 "app-emulation/vmware-modules 1.0.0.15-r1 fail to build under 2.6.26+ (and RC) kernels"; Gentoo Linux, Ebuilds; NEW;
nysander@quanteam.pl:vmware@g.o

Expected Results:
15:18 < kojiro> tom_unaff: bug 227303
15:18 < Willikins> tom_unaff: https://bugs.gentoo.org/227303 app-emulation/vmware-modules 1.0.0.15-r1 fail to build under 2.6.26+ (and RC) kernels"; Gentoo Linux, Ebuilds; NEW;
nysander@quanteam.pl:vmware@g.o

Alternatively, many bots have a specific redirection pattern, such as
bug 12345 > otheruser.

[Comment #1] robbat2@gentoo.org : 2009-08-31 17:20:19 +0000
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Patches welcome.

The code is here:
http://git.overlays.gentoo.org/gitweb/?p=proj/rbot-bugzilla.git;a=summary

I've updated the code and it seems to be working correctly:

~ $ ~/work/gentoo/pybugz/git/bin/bugz search -c milw0rm
* Using https://bugs.gentoo.org
* Searching for 'milw0rm' with the following options:
* comments = True
* Already logged in.
135645 security games-fps/rtcw, enemy-territory, maybe more: Quake 3 Engine CL_ParseDownload Buffer Overflow (client-side only) (CVE-2006-2875)
209460 security kernel 2.6.17 - 2.6.24.1 splice: missing user pointer access verification (CVE-2008-{0009,0010,0600})
241112 security kde-base/konqueror-3.5.9 HTML parser DOS (CVE-2008-{4514,5712})
246001 security www-client/mozilla-firefox<=3.? Buffer Overflow (CVE-2008-2786)
262704 security cred_exec_mutex (CVE-2009-1527)
271865 security