From 6f3e5c8018709ef5a43427c5259e24372eefe7c3 Mon Sep 17 00:00:00 2001 From: "terry%netscape.com" <> Date: Fri, 12 Mar 1999 00:30:51 +0000 Subject: Added 'groups' stuff, where we have different group bits that we can put on a person or on a bug. Some of the group bits control access to bugzilla features. And a person can't access a bug unless he has every group bit set that is also set on the bug. --- sanitycheck.cgi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'sanitycheck.cgi') diff --git a/sanitycheck.cgi b/sanitycheck.cgi index 0d2f4072f..969cfd3c4 100755 --- a/sanitycheck.cgi +++ b/sanitycheck.cgi @@ -53,6 +53,22 @@ print "OK, now running sanity checks.

\n"; my @row; my @checklist; +Status("Checking groups"); +SendSQL("select bit from groups where bit != pow(2, round(log(bit) / log(2)))"); +while (my $bit = FetchOneColumn()) { + Alert("Illegal bit number found in group table: $bit"); +} + +SendSQL("select sum(bit) from groups where isbuggroup != 0"); +my $buggroupset = FetchOneColumn(); +SendSQL("select bug_id, groupset from bugs where groupset & $buggroupset != groupset"); +while (@row = FetchSQLData()) { + Alert("Bad groupset $row[1] found in bug " . BugLink($row[0])); +} + + + + Status("Checking version/products"); SendSQL("select distinct product, version from bugs"); -- cgit v1.2.3-24-g4f1b