Closed
Bug 524603
Opened 16 years ago
Closed 16 years ago
Non-root jobqueue.pl cannot write to data/mailer.testfile
Categories
(Bugzilla :: Email Notifications, defect)
Bugzilla
Email Notifications
Tracking
()
RESOLVED
FIXED
Bugzilla 3.4
People
(Reporter: mkanat, Assigned: mkanat)
References
Details
(Whiteboard: [es-ita])
Attachments
(3 files)
|
2.29 KB,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
|
2.24 KB,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
|
838 bytes,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
data/mailer.testfile is created as being owned by Apache, and writeable only to the owner. This means that if jobqueue.pl is not running as root, it cannot write to data/mailer.testfile (meaning that the Test email delivery method does not work with jobqueue.pl when it is not running as root).
| Assignee | ||
Comment 1•16 years ago
|
||
And then checksetup.pl tries to change the file's permissions, but if you're not root, it can't because you're not the file's owner.
| Assignee | ||
Comment 2•16 years ago
|
||
This fixes it. We don't just delete the old mailer.testfile, because it contains data, and there's a vague chance that (since it's a valid mbox) people are using it for something.
Assignee: email-notifications → mkanat
Status: NEW → ASSIGNED
Attachment #408523 -
Flags: review?(LpSolit)
Comment 3•16 years ago
|
||
Does this also fix bug 348102?
| Assignee | ||
Comment 5•16 years ago
|
||
(In reply to comment #3)
> Does this also fix bug 348102?
Ah yeah, it absolutely does.
| Assignee | ||
Updated•16 years ago
|
Whiteboard: [es-ita]
Updated•16 years ago
|
Attachment #408523 -
Attachment description: v1 → v1, for the 3.4 branch
Attachment #408523 -
Flags: review?(LpSolit) → review+
Comment 6•16 years ago
|
||
Comment on attachment 408523 [details] [diff] [review]
v1, for the 3.4 branch
Works fine, but only applies cleanly on the 3.4 branch. It's bitrotten on HEAD.
r=LpSolit for 3.4.
Comment 7•16 years ago
|
||
Needs a new patch for 3.6.
Flags: approval3.4?
Whiteboard: [es-ita] → [es-ita][needs new patch asap]
| Assignee | ||
Comment 8•16 years ago
|
||
Okay, this one applies on HEAD.
Attachment #417398 -
Flags: review?(LpSolit)
| Assignee | ||
Updated•16 years ago
|
Whiteboard: [es-ita][needs new patch asap] → [es-ita]
Comment 9•16 years ago
|
||
Comment on attachment 417398 [details] [diff] [review]
v1 for HEAD
r=LpSolit
Attachment #417398 -
Flags: review?(LpSolit) → review+
Updated•16 years ago
|
Flags: approval3.4?
Flags: approval3.4+
Flags: approval+
| Assignee | ||
Comment 10•16 years ago
|
||
tip:
Checking in Bugzilla/Install/Filesystem.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Install/Filesystem.pm,v <-- Filesystem.pm
new revision: 1.43; previous revision: 1.42
done
3.4:
Checking in Bugzilla/Install/Filesystem.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Install/Filesystem.pm,v <-- Filesystem.pm
new revision: 1.34.2.1; previous revision: 1.34
done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 11•16 years ago
|
||
Tinderbox is currently saying: No such file or directory at Bugzilla/Install/Filesystem.pm line 465.
But it only says it once, in the checksetup tinderbox, so I'd assume that the problem happens when the testfile was never created in the first place.
Attachment #417576 -
Flags: review?(LpSolit)
Comment 12•16 years ago
|
||
Comment on attachment 417576 [details] [diff] [review]
Fix Tinderbox Warning
Yes, looks good to me. r=LpSolit
Attachment #417576 -
Flags: review?(LpSolit) → review+
| Assignee | ||
Comment 13•16 years ago
|
||
Checked in the fix:
tip:
Checking in Bugzilla/Install/Filesystem.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Install/Filesystem.pm,v <-- Filesystem.pm
new revision: 1.44; previous revision: 1.43
done
3.4:
Checking in Bugzilla/Install/Filesystem.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Install/Filesystem.pm,v <-- Filesystem.pm
new revision: 1.34.2.2; previous revision: 1.34.2.1
done
You need to log in
before you can comment on or make changes to this bug.
Description
•