Closed Bug 281733 Opened 21 years ago Closed 21 years ago

testfile mail transport cannot write to testfile

Categories

(Bugzilla :: Email Notifications, defect, P2)

2.19.2
defect

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: bugreport, Assigned: LpSolit)

Details

Attachments

(1 file, 1 obsolete file)

If the "testfile" method is selected for email delivery, it attempts to write to the Bugzilla program directory which is not normally writable by the webserver user. This needs to be in the data/ directory.
fefe
Assignee: email-notifications → bugreport
Priority: -- → P2
Target Milestone: --- → Bugzilla 2.20
Attached patch use $datadir/mailer.testfile (obsolete) — Splinter Review
Attachment #174120 - Flags: review?
Comment on attachment 174120 [details] [diff] [review] use $datadir/mailer.testfile Does not fix the problem. Adding a print command in testfile.pm shows that this line has no effect.
Attachment #174120 - Flags: review? → review-
Colin found the right solution: my $mailer = new Mail::Mailer Param("maildeliverymethod"), @args; if (Param("maildeliverymethod") eq "testfile") { $Mail::Mailer::testfile::config{outfile} = "$datadir/mailer.testfile"; } This works with version 1.62.
I implemented what I suggested in my previous comment.
Attachment #174120 - Attachment is obsolete: true
Attachment #174437 - Flags: review?
Flags: blocking2.20?
Attachment #174437 - Flags: review? → review+
One note.... On checkin, please add a comment ... # Outfile is set to correct location AFTER $mailer is created for compatibility # with Mail::Mailer version 1.62.
Flags: approval?
Flags: blocking2.20?
Flags: approval?
Flags: approval+
(In reply to comment #6) > On checkin, please add a comment ... > # Outfile is set to correct location AFTER $mailer is created for compatibility > # with Mail::Mailer version 1.62. That comment is technically inaccurate - from tests, even with Mail::Mailer 1.66 (at least on Windows) the line needs to be after $mailer creation.
Joel: There seems to be quite a bit of contention over whether the comment is needed. Colin and LpSolit say that the way it's done is necessary even in 1.66. So I'm not going to add the comment on checkin. If we later determine that it's necessary, then we can maybe check it in without a patch, if we ask justdave in IRC.
Assignee: bugreport → LpSolit
Checking in Bugzilla/BugMail.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/BugMail.pm,v <-- BugMail.pm new revision: 1.32; previous revision: 1.31 done
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
WRT comment 8 OK By me
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: