Closed Bug 179309 Opened 22 years ago Closed 17 years ago

basic search for <comma> fails

Categories

(Bugzilla :: Query/Bug List, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 67036

People

(Reporter: timeless, Assigned: nobody)

References

()

Details

Here's the problem:

Search.pm, sub GetByWordList(Substr)?:
    foreach my $w (split(/[\s,]+/, $strs)) {

We allow both space-separated and comma-separated lists of words or strings. If
the string is just a comma, then it bypasses our checks for no-value, but we
don't have any words, so you get nothing out of the sub which constructs the
SQL, and this error message.

We don't have this problem with just spaces, because the value gets trimmed.

Options:
- disallow comma-separated lists, and make them separable only by whitespace
  Pro: can search for only commas (but why)
  Con: some people may use commas as separators
- Check for a string containing only commas and treat it as empty
  Pro: Keep current split behaviour
  Con: can't search for commas; unexpected behaviour (condition ignored) when
       you try.

Gerv
i'd prefer dwim behavior. if i enter just whitespace or just a comma, search for it.

also, i'm guessing i can't do csv style searches: "the,", "something", we might
want to consider allowing them. i suppose most people don't want to search for
commas, but considering all of the wonderful bugs that our CSV support
introduced, i'm much more likely to want to search for commas and csv strings
today than i was a week ago.
This isn't a regression; 2.16 does the same (except that the internal error is
printed to the error_log, not the screen, giving a 500 error) This also doesnt'
work in 2.14, which just stops teh script outpu after printing the 'please wait'
screen
No longer blocks: 179176
See also bug 67036.
*** Bug 204854 has been marked as a duplicate of this bug. ***
Yeah, I want to search for all bugs where I've addressed a remark to somebody. 
In all of those I wrote something like:
Somebody,
Please get off your butt and ...

So, yes, I want to search for "Somebody,"
Assignee: endico → nobody
Depends on: 67036
*** Bug 340892 has been marked as a duplicate of this bug. ***
QA Contact: mattyt-bugzilla → default-qa
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.