51Testing软件测试论坛

标题: 关于bugzilla新建product的问题! [打印本页]

作者: tinnagl    时间: 2006-4-14 16:49
标题: 关于bugzilla新建product的问题!
今天给别人演示bugzilla的使用,结果特别没面子,add一个新的product的时候,出错了:

DBD::mysql::st execute failed: Field 'userregexp' doesn't have a default value [for Statement "INSERT INTO groups (name, description, isbuggroup, last_changed) VALUES ('test', 'Access to bugs in the test product', 1, NOW())"] at Bugzilla/DB.pm line 84
Bugzilla::DB::SendSQL('INSERT INTO groups (name, description, isbuggroup, last_chang...') called at d:\Bugzilla\editproducts.cgi line 559

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.

[Fri Apr 14 15:14:52 2006] editproducts.cgi: DBD::mysql::st execute failed: Field 'userregexp' doesn't have a default value [for Statement "INSERT INTO groups (name, description, isbuggroup, last_changed) VALUES ('test', 'Access to bugs in the test product', 1, NOW())"] at Bugzilla/DB.pm line 84 [Fri Apr 14 15:14:52 2006] editproducts.cgi: Bugzilla::DB::SendSQL('INSERT INTO groups (name, description, isbuggroup, last_chang...') called at d:\Bugzilla\editproducts.cgi line 559

但是其它的功能都没有问题,可以修改product,可以提交/修改bug,用户管理、权限管理等等都可以正常操作。

看上面的错误,是对groups表添加的时候出错,可是我明明是添加一个product,他怎么还去操作groups表呢????
作者: tinnagl    时间: 2006-4-17 10:17
标题: 自己来回复!
今天去看bugzilla的源代码了,发现操作groups表的原因是:
# If we're using bug groups, then we need to create a group for this
# product as well.  -JMR, 2/16/00
这是代码中的注释,也就是说,因为我把makeproductgroups这个参数on了,我在bugzilla的错误报告中找到了一个相同的错误,这个错误是在2.20中有的,已经fixed了,我这就打patch去了~~~
作者: wfr    时间: 2006-4-18 09:05
多谢搂主,是个好问题,呵呵。
想请问下楼主,我个人觉得group用处不大,不知楼主怎么看?
作者: xiaoyaogls    时间: 2010-12-19 19:54
问个问题,在bugzilla中可以删除一个产品吗? 为什么我的会提示:
Sorry, there are 3 bugs outstanding for this product. You must reassign those bugs to another product before you can delete this one.

请帮帮忙吧!谢谢了!




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2