Closed
Bug 281733
Opened 21 years ago
Closed 21 years ago
testfile mail transport cannot write to testfile
Categories
(Bugzilla :: Email Notifications, defect, P2)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: bugreport, Assigned: LpSolit)
Details
Attachments
(1 file, 1 obsolete file)
|
816 bytes,
patch
|
bugreport
:
review+
|
Details | Diff | Splinter Review |
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.
| Reporter | ||
Comment 1•21 years ago
|
||
fefe
| Reporter | ||
Updated•21 years ago
|
Assignee: email-notifications → bugreport
Priority: -- → P2
Target Milestone: --- → Bugzilla 2.20
| Reporter | ||
Comment 2•21 years ago
|
||
Attachment #174120 -
Flags: review?
| Assignee | ||
Comment 3•21 years ago
|
||
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-
| Assignee | ||
Comment 4•21 years ago
|
||
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.
| Assignee | ||
Comment 5•21 years ago
|
||
I implemented what I suggested in my previous comment.
| Assignee | ||
Updated•21 years ago
|
Attachment #174120 -
Attachment is obsolete: true
Attachment #174437 -
Flags: review?
| Assignee | ||
Updated•21 years ago
|
Flags: blocking2.20?
| Reporter | ||
Updated•21 years ago
|
Attachment #174437 -
Flags: review? → review+
| Reporter | ||
Comment 6•21 years ago
|
||
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?
Updated•21 years ago
|
Flags: blocking2.20?
Flags: approval?
Flags: approval+
Comment 7•21 years ago
|
||
(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.
Comment 8•21 years ago
|
||
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
Comment 9•21 years ago
|
||
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
| Reporter | ||
Comment 10•21 years ago
|
||
WRT comment 8
OK By me
You need to log in
before you can comment on or make changes to this bug.
Description
•