Closed
Bug 288170
Opened 20 years ago
Closed 19 years ago
importxml.pl, move.pl should not write to $datadir/maillog
Categories
(Bugzilla :: Bug Import/Export & Moving, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: bugzilla-mozilla, Assigned: bugzilla-mozilla)
References
Details
(Whiteboard: [wanted for 2.20])
Attachments
(1 file)
2.94 KB,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
(I emailed this also to the developers mailinglist where gerv responded that he
had no objections that this should be commented out / removed)
The files importxml.pl and move.pl write to $datadir/maillog. The only thing
written to those files are:
(importxml.pl)
Log($subject . " sent to: $to");
(move.pl)
"XML: bugs $buglist sent to $to"
There is also code in BugMail.pm to write to this file but it has been commented
out (even in the initial commit).
I think this code should be removed. It isn't used by BugMail.pm, so why is it
in above files? It is only used to log email activity, but BugMail.pm has it
commented out.
Some background:
At bugzilla.gnome.org we use a forked importxml.pl containing the logging. The
importxml.pl is activated by an email message delivered using Postfix. Postfix
sets the 'file size' ulimit to 50MB (I think it sets it to 5 times the
configured max email message size).
Importxml.pl writes to the log after doing everything else (creating the bug). A
few days ago $datadir/maillog hit that 50MB and importxml.pl aborted. At b.g.o
this causes the message to be forwarded for investigation. This problem is
probably specific, but as the logging does not serve a useful purpose
(BugMail.pm is excluded), I think it should be removed.
As b.g.o will be upgraded to 2.20 I'll also ask this to block 2.20.
Assignee | ||
Comment 1•20 years ago
|
||
Removes the Log,Lock,Unlock subroutine from importxml.pl and move.pl, Lock and
Unlock are only used by Log.
Assignee: import-export → bugzilla-mozilla
Status: NEW → ASSIGNED
Attachment #178940 -
Flags: review?
Assignee | ||
Updated•20 years ago
|
Flags: blocking2.20?
Assignee | ||
Comment 2•20 years ago
|
||
Comment on attachment 178940 [details] [diff] [review]
Patch v1 against Bugzilla HEAD 29 March 2005
Patch removes the Log,Lock,Unlock subroutines from importxml.pl and move.pl,
Lock and Unlock are only used by Log.
Attachment #178940 -
Flags: review? → review?(justdave)
Comment 3•20 years ago
|
||
"If it's not a regression from 2.18 and it's not a critical problem with
something that's already landed, let's push it off." - Dave
Flags: blocking2.20?
Updated•20 years ago
|
Whiteboard: [wanted for 2.20]
Updated•20 years ago
|
Flags: blocking2.20-
Comment 4•19 years ago
|
||
Comment on attachment 178940 [details] [diff] [review]
Patch v1 against Bugzilla HEAD 29 March 2005
bkor asked me to review his patch.
Attachment #178940 -
Flags: review?(LpSolit)
Comment 5•19 years ago
|
||
Comment on attachment 178940 [details] [diff] [review]
Patch v1 against Bugzilla HEAD 29 March 2005
looks good. r=LpSolit
Attachment #178940 -
Flags: review?(LpSolit) → review+
Updated•19 years ago
|
Flags: approval?
Flags: approval2.20?
Target Milestone: --- → Bugzilla 2.20
Comment 6•19 years ago
|
||
we may want this kind of logging at some point, but if we do it we should do it
right and use syslog or something.
Flags: approval?
Flags: approval2.20?
Flags: approval2.20+
Flags: approval+
Comment 7•19 years ago
|
||
tip:
Checking in importxml.pl;
/cvsroot/mozilla/webtools/bugzilla/importxml.pl,v <-- importxml.pl
new revision: 1.45; previous revision: 1.44
done
Checking in move.pl;
/cvsroot/mozilla/webtools/bugzilla/move.pl,v <-- move.pl
new revision: 1.33; previous revision: 1.32
done
2.20rc1:
Checking in importxml.pl;
/cvsroot/mozilla/webtools/bugzilla/importxml.pl,v <-- importxml.pl
new revision: 1.44.2.1; previous revision: 1.44
done
Checking in move.pl;
/cvsroot/mozilla/webtools/bugzilla/move.pl,v <-- move.pl
new revision: 1.31.4.1; previous revision: 1.31
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•19 years ago
|
Attachment #178940 -
Flags: review?(justdave)
You need to log in
before you can comment on or make changes to this bug.
Description
•