Bug 466839 - Hwcert Catalog should add the "unknown flagtype" error handle codes in case no hwcert flag types are defined in the database.
Summary: Hwcert Catalog should add the "unknown flagtype" error handle codes in case n...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Hardware Certification Program
Classification: Retired
Component: Hardware Catalog
Version: 5.2
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
: ---
Assignee: XINSUN
QA Contact:
URL: http://hardware.redhat.com
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-14 02:14 UTC by XINSUN
Modified: 2009-02-04 04:36 UTC (History)
4 users (show)

Fixed In Version: 5.3 (hwcert-3.2rh-20090129.0)
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-02-04 04:36:32 UTC
Embargoed:


Attachments (Terms of Use)

Description XINSUN 2008-10-14 02:14:20 UTC
If there are no hwcert flag types defined in the db, do the hwcert flags set/unset action, fails with this error:
 
 Software error:
 DBD::mysql::st execute failed: You have an error in your SQL syntax;
 check the manual that corresponds to your MySQL server version for the
 right syntax to use near 'AND bug_id = 452916 AND status = '+'' at
 line 1 [for Statement "SELECT id FROM flags WHERE type_id =  AND
 bug_id = 452916 AND status = '+'"] at Bugzilla/DB.pm line 65
 	Bugzilla::DB::SendSQL('SELECT id FROM flags WHERE type_id =  AND
 bug_id = 452916 AND...') called at hwcert.pl line 1804
 	main::ProcessSpecFlag(452916, 2455) called at hwcert.pl line 1995> 	   main::ProcessHwcertQueueFlag(452916, 2455) called at
  /var/www/html/hwcert/post.cgi line 1011


We should add the error codes to handle that.

Comment 7 XINSUN 2008-12-08 14:20:17 UTC
Test well and checked in.

Opened a new bug #475199 for correcting the group error message to include this
maintainer message.


Best Regards!
Nicho


Note You need to log in before you can comment on or make changes to this bug.