Closed
Bug 121741
Opened 23 years ago
Closed 23 years ago
using quicksearch while bugzilla is shut down for backup gets "can't use xxx as a field name" error
Categories
(Bugzilla :: Query/Bug List, defect, P1)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.16
People
(Reporter: justdave, Assigned: endico)
References
Details
Attachments
(1 file, 2 obsolete files)
1.07 KB,
patch
|
Details | Diff | Splinter Review |
If you visit http://bugzilla.mozilla.org/ and enter something in the quicksearch box and submit it while Bugzilla is down for it's nightly backup, you get the following error: Can't use short_desc as a field name. If you think you're getting this in error, please copy the entire URL out of the address bar at the top of your browser window and email it to <109679@bugzilla.org> Replace "short_desc" with the field of your choice, it varies depending on what you put in the quicksearch box. This situation should cause the value of shutdownhtml to be displayed instead. This means buglist.cgi is actually processing the form before it checks for shutdownhtml, which is a bad thing. :)
Reporter | ||
Updated•23 years ago
|
Severity: normal → blocker
Priority: -- → P1
Target Milestone: --- → Bugzilla 2.16
Reporter | ||
Comment 1•23 years ago
|
||
Myk: I will respectfully request that once this is fixed, you apply the patch on b.m.o if you're not prepared to update yet at that point. I'm getting 3 to 4 emails every night from people following the directions in the error message. :)
Reporter | ||
Comment 2•23 years ago
|
||
Comment 3•23 years ago
|
||
Comment on attachment 66406 [details] [diff] [review] Patch Needs a print "Content-type: text/html\n\n"; within the code block.
Attachment #66406 -
Flags: review-
Reporter | ||
Comment 4•23 years ago
|
||
I thought PutHeader() did that for you? Mozilla displays it. :)
Reporter | ||
Comment 5•23 years ago
|
||
hmm, guess it doesn't.
Attachment #66406 -
Attachment is obsolete: true
Comment 6•23 years ago
|
||
Comment on attachment 66412 [details] [diff] [review] Patch v2 Works as expected. r=dkl
Attachment #66412 -
Flags: review+
Reporter | ||
Comment 7•23 years ago
|
||
Additional changes based on comments from bbaetz in IRC.
Attachment #66412 -
Attachment is obsolete: true
Comment 8•23 years ago
|
||
Actually, see bug 121747. I think we need a global routine for this, if we don't just wrap it up into ConnectToDatabase()
Comment 9•23 years ago
|
||
This is a band-aid, right? When we have index.cgi, you won't be able to access Quick Search when Bugzilla is down. Gerv
Reporter | ||
Comment 10•23 years ago
|
||
You won't be able to access quicksearch, but you'll still be able to load buglist.cgi directly, and it's actually buglist.cgi that has the problem, not quicksearch. I duplicated it on a local install by doing this: 1) Load query.cgi, put in some arbitrary query, don't hit submit yet. 2) Open a new window and go into editparams.cgi 3) enter something in shutdownhtml and submit. 4) go back to your query.cgi window and hit the submit button 5) you get the above-mentioned error message.
Comment 11•23 years ago
|
||
I've got a solution for this that works across all CGIs in bug 121747.
Depends on: 121747
Reporter | ||
Comment 12•23 years ago
|
||
The patch checked in from bug 121747 has fixed this.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•