Closed Bug 191043 Opened 23 years ago Closed 23 years ago

Trying to create a bug without selecting a component results in internal server error

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 191080

People

(Reporter: jussi, Assigned: myk)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030125 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030125 Creating a bug without selecting a component for it results in an internal server error with the following information in the servers logs: DBD::mysql::st execute failed: You have an error in your SQL syntax near '' at line 1 at Bugzilla/DB.pm line 64 Bugzilla::DB::SendSQL('SELECT id FROM components WHERE product_id = 3 AND name = ') called at globals.pl line 897 main::get_component_id(3, undef) called at /usr/local/bugzilla/post_bug.cgi line 110 [Wed Jan 29 02:30:46 2003] [error] [client 192.168.3.220] Premature end of script headers: /usr/local/bugzilla/post_bug.cgi I'm using the latest CVS version of bugzilla. Reproducible: Always Steps to Reproduce:
Attached patch caller side fixSplinter Review
A fix. Someone should verify that the other check for $component_id is not needed anymore with this fix.
Attachment #112927 - Flags: review?
Duping to the bug with a fix. This patch is probbly good, too, but its not sufficient by itsself. *** This bug has been marked as a duplicate of 191080 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Attachment #112927 - Flags: review?
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

Creator:
Created:
Updated:
Size: