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)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 3.4

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

(Whiteboard: [es-ita])

Attachments

(3 files)

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).
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.
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)
Does this also fix bug 348102?
(In reply to comment #3) > Does this also fix bug 348102? Ah yeah, it absolutely does.
Whiteboard: [es-ita]
Attachment #408523 - Attachment description: v1 → v1, for the 3.4 branch
Attachment #408523 - Flags: review?(LpSolit) → review+
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.
Needs a new patch for 3.6.
Flags: approval3.4?
Whiteboard: [es-ita] → [es-ita][needs new patch asap]
Attached patch v1 for HEADSplinter Review
Okay, this one applies on HEAD.
Attachment #417398 - Flags: review?(LpSolit)
Whiteboard: [es-ita][needs new patch asap] → [es-ita]
Comment on attachment 417398 [details] [diff] [review] v1 for HEAD r=LpSolit
Attachment #417398 - Flags: review?(LpSolit) → review+
Flags: approval3.4?
Flags: approval3.4+
Flags: approval+
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
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 on attachment 417576 [details] [diff] [review] Fix Tinderbox Warning Yes, looks good to me. r=LpSolit
Attachment #417576 - Flags: review?(LpSolit) → review+
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.

Attachment

General

Created:
Updated:
Size: