Closed Bug 55753 Opened 24 years ago Closed 22 years ago

if order is the first param to buglist.cgi, can't resort

Categories

(Bugzilla :: Query/Bug List, defect, P2)

2.10
x86
Windows 98

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: jruderman, Assigned: gerv)

References

()

Details

Attachments

(1 file)

Steps to reproduce:
1. go to url above (http://bugzilla.mozilla.org/buglist.cgi?
order=bugs.bug_id&short_desc_type=substring&short_desc=new%20window)
2. try to resort by clicking on one of the column headers

Result: end up at
http://bugzilla.mozilla.org/buglist.cgi?
order=bugs.bug_id&short_desc_type=substring&short_desc=new%
20window&order=bugs.resolution%2C%20bugs.bug_id 

(notice that the order at the beginning hasn't been removed)


this creates an sql error when it tries to
ORDER BY bugs.bug_idbugs.resolution, bugs.bug_id
This strikes me as being in the "trivial category".  AFAICS, this is a hand
entered query, or doesn't come from other cgis?
Severity: normal → trivial
Whiteboard: Future-Target
Target Milestone: --- → Future
moving to real milestones...
verified this bug still exists.  It produces a nice "Software Error" for the 
user.  I hate Software Errors.  If we don't like it at least spew a user-friendly 
error message.  Probably changecolumns is attempting to scan the query string for 
"?order" but since it's first in this case, it's "?order=" instead, so it's 
missing it.  Should be an easy fix.
Severity: trivial → major
Priority: P3 → P2
Target Milestone: Future → Bugzilla 2.16
moving
Assignee: tara → endico
Component: Bugzilla → Query/Bug List
Product: Webtools → Bugzilla
Version: other → 2.10
Having looked at colchange.cgi, that doesn't seem to be the problem.

Gerv
We are currently trying to wrap up Bugzilla 2.16.  We are now close enough to
release time that anything that wasn't already ranked at P1 isn't going to make
the cut.  Thus this is being retargetted at 2.18.  If you strongly disagree with
this retargetting, please comment, however, be aware that we only have about 2
weeks left to review and test anything at this point, and we intend to devote
this time to the remaining bugs that were designated as release blockers.
Target Milestone: Bugzilla 2.16 → Bugzilla 2.18
I've figured this one out.

Gerv
Assignee: endico → gerv
Whiteboard: Future-Target
Attached patch Patch v.1Splinter Review
Correct dodgy regexp. Bug probably due to a misunderstanding of the nature of
$::buffer.

Gerv
Comment on attachment 92146 [details] [diff] [review]
Patch v.1

r=bbaetz
Attachment #92146 - Flags: review+
Attachment #92146 - Flags: review+
Fixed.

Checking in buglist.cgi;
/cvsroot/mozilla/webtools/bugzilla/buglist.cgi,v  <--  buglist.cgi
new revision: 1.186; previous revision: 1.185
done

Gerv
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
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: