Closed Bug 172284 Opened 22 years ago Closed 19 years ago

checksetup assumes that there are < 99999 bugs

Categories

(Bugzilla :: Installation & Upgrading, defect, P4)

2.17
defect

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: bugreport, Assigned: Wurblzap)

Details

Attachments

(1 file)

By inspection.....

In checksetup.pl, the regexp appears to presume bug numbers are between 1 and 5
digits

        $sth = $dbh->prepare("SELECT longdescs.bug_id, thetext FROM longdescs le
ft JOIN bugs using(bug_id) WHERE (thetext " .
                "regexp '[.*.]{3,3} This bug has been marked as a duplicate of [
[:digit:]]{1,5} [.*.]{3,3}') AND (resolution = 'DUPLICATE') ORDER" .
                        " BY longdescs.bug_when");
        $sth->execute();
Yes, it does (For that conversion).

Bleh, I fixed this for bug 151619 the next page down..

Anyway, this only affecst people who have more than 100000 bugs in a bugzilla
version before July 2000 (ie bz 2.12)

What is [.*.]{3,3} meant to match against? Is that just [.*]{3} ?

This should be changed to match what is a few lines later, using whatever mysql
3.22 syntax is, and then we should put this onto the 2.16 branch.
Assignee: zach → travis
Assignee: travis → mkanat
Priority: -- → P4
Attached patch PatchSplinter Review
Can't test though -- I don't have a 2.12 installation handy :)
Assignee: mkanat → wurblzap
Status: NEW → ASSIGNED
Attachment #176877 - Flags: review?
Comment on attachment 176877 [details] [diff] [review]
Patch

I have a 2.12 install on landfill, and checksetup runs without dying with this
patch. :-) It looks correct, also.
Attachment #176877 - Flags: review? → review+
Flags: approval?
OS: other → All
Hardware: PC → All
Target Milestone: --- → Bugzilla 2.20
Flags: approval? → approval+
Checking in checksetup.pl;
/cvsroot/mozilla/webtools/bugzilla/checksetup.pl,v  <--  checksetup.pl
new revision: 1.367; previous revision: 1.366
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
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

Created:
Updated:
Size: