Closed Bug 365241 Opened 19 years ago Closed 19 years ago

Changing the context of a patch fails

Categories

(Bugzilla :: Attachments & Requests, defect)

2.23.3
defect
Not set
major

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: LpSolit, Assigned: LpSolit)

References

()

Details

(Keywords: regression)

Attachments

(1 file)

When viewing a patch in the Diff mode, changing the context fails: Software error: Could not check out mozilla/webtools/bugzilla/template/en/default/admin/products/footer.html.tmpl r1.7 from :pserver:anonymous:anonymous@cvs-mirror.mozilla.org:/cvsroot at PatchReader/AddCVSContext.pm line 191. Probably a problem due to mod_perl.
QA Contact: myk → reed
Interestingly enough, we found out that bmo wasn't running mod_perl until just now. So this is probably something else.
bmo's attachment code is unmodified from CVS, and the installed PatchReader package is the same one as on landfill.
Assignee: justdave → attach-and-request
Component: Bugzilla: Other b.m.o Issues → Attachments & Requests
Product: mozilla.org → Bugzilla
QA Contact: reed → default-qa
Target Milestone: --- → Bugzilla 3.0
Version: other → 2.23.3
Attached patch patch, v1Splinter Review
The problem is that PatchReader::CVSClient needs $::cvsbin to be a global variable. When we removed global variables to use Bugzilla->params->{'cvsbin'}, it stopped working correctly. This patch fixes the problem on a non mod_perl installation. I haven't tested on mod_perl, though.
Assignee: attach-and-request → LpSolit
Status: NEW → ASSIGNED
Attachment #249967 - Flags: review?(mkanat)
Comment on attachment 249967 [details] [diff] [review] patch, v1 Okay, that works fine for now. We really should get PatchReader fixed, because it really shouldn't rely on global variables.
Attachment #249967 - Flags: review?(mkanat) → review+
Flags: approval?
Flags: approval? → approval+
Checking in Bugzilla/Attachment/PatchReader.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Attachment/PatchReader.pm,v <-- PatchReader.pm new revision: 1.4; previous revision: 1.3 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: