Closed Bug 217071 Opened 21 years ago Closed 21 years ago

can't search for two cc list members - Software Error

Categories

(Bugzilla :: Query/Bug List, defect)

2.17.1
x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 180980

People

(Reporter: Biesinger, Assigned: justdave)

References

()

Details

Attachments

(1 file)

On http://bugzilla.mozilla.org/query.cgi:
Search for "CC list member is" "cbiesinger@web.de", and also search for "CC list
member is" "BradleyJunk@cinci.rr.com".
(or click the url in this url field)

You get:

Please stand by ...
Content-type: text/html
Software error:

SELECT bugs.bug_id, bugs.bug_severity, bugs.priority, bugs.rep_platform,
map_assigned_to.login_name, bugs.bug_status, bugs.resolution,
bugs.target_milestone, bugs.short_desc FROM bugs, profiles AS map_assigned_to
LEFT JOIN cc cc_ ON bugs.bug_id = cc_.bug_id AND cc_.who IN(15661) LEFT JOIN cc
cc_ ON bugs.bug_id = cc_.bug_id AND cc_.who IN(27539) LEFT JOIN bug_group_map 
ON bug_group_map.bug_id = bugs.bug_id  AND bug_group_map.group_id NOT IN
(2,9,10)  LEFT JOIN cc ON cc.bug_id = bugs.bug_id AND cc.who = 15661  WHERE
bugs.assigned_to = map_assigned_to.userid AND (bugs.bug_status IN
('NEW','ASSIGNED','REOPENED')) AND (cc_.who IS NOT NULL) AND (cc_.who IS NOT
NULL) AND ((bug_group_map.group_id IS NULL)    OR (bugs.reporter_accessible = 1
AND bugs.reporter = 15661)     OR (bugs.cclist_accessible = 1 AND cc.who IS NOT
NULL)     OR (bugs.assigned_to = 15661) OR (bugs.qa_contact = 15661) ) GROUP BY
bugs.bug_id ORDER BY bugs.priority,bugs.bug_id : Not unique table/alias: 'cc_'
at globals.pl line 284.

For help, please send mail to the webmaster (webmaster@mozilla.org), giving this
error message and the time and date of the error.
Mine.

Zippy's QA folks found this one and we fixed it already in theirs.  I'll see if
I can port the patch out.
Status: NEW → ASSIGNED
Attached patch PatchSplinter Review
Patch applies to Bugzilla without modification. :)

The basic idea here is that @supptables gets screened for duplicates when it's
compiled into the final query.	By including the data we were searching for in
the join condition, this made the two different @supptable entries appear to be
unique, even though they were part of the same "chart" (the upper part of the
form in this case).  By moving the search data to the @wherepart the @supptable
entries for both look the same, and the second one is properly removed during
the duplicate screening.
Attachment #130318 - Flags: review?(bbaetz)
Comment on attachment 130318 [details] [diff] [review]
Patch

Nope, this doesn't work. consider a query with OR and a cc query. If its in
@wherepart, then we'll fail to match even though we really could.

This patch effectively reverts the patch in bug 139759.
Attachment #130318 - Flags: review?(bbaetz) → review-
The primary change in bug 139759 was to change the implicit inner join to a left
join.  The left join will still produce a null if there's no matches, even if
the data comparison isn't part of the join, so the OR should still work...
The steps to reproduce given here fail to reproduce the error, either with or
without this patch, on landfill.

All iterations of AND, OR, and extra chart in the boolean chart area with CC is
equal to, as well as the two email boxes on the form, provide the expected
results, both with and without this patch.

So apparently something else somewhere along the line has fixed this as a side
effect.

b.m.o will get it in a couple weeks when the upgrade.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
OK, this was specifically fixed.  Found the original bug.  Will re-resolve as a
dupe shortly.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---

*** This bug has been marked as a duplicate of 180980 ***
Status: REOPENED → RESOLVED
Closed: 21 years ago21 years ago
Resolution: --- → DUPLICATE
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: