Errno 36: filename too long -- stops mail delivery

Bug #266274 reported by Ariebs
2
Affects Status Importance Assigned to Milestone
GNU Mailman
New
Medium
Unassigned

Bug Description

A user sent a Bugzilla page with an auto-generated
filename (basically, the query used to generate the
page) as an attachment.

Unfortunately, this filename is long enough to
overwhelm the pathname limit on Linux ext3 file
systems. (See below.) This, in turn, prevents
subsequent mail from being delivered.

Version info:
mailman-2.1.4-2.3.100mdk as distributed with
Mandrake Linux release 10.0 (Official) for i586

For example,

$ /usr/bin/python -S /usr/lib/mailman/cron/senddigests
Traceback (most recent call last):
  File "/usr/lib/mailman/cron/senddigests", line 94, in ?
    main()
  File "/usr/lib/mailman/cron/senddigests", line 86, in
main
    mlist.send_digest_now()
  File "/usr/lib/mailman/Mailman/Digester.py", line 60,
in send_digest_now
    ToDigest.send_digests(self, mboxfp)
  File "/usr/lib/mailman/Mailman/Handlers/ToDigest.py",
line 132, in send_digests
    send_i18n_digests(mlist, mboxfp)
  File "/usr/lib/mailman/Mailman/Handlers/ToDigest.py",
line 306, in send_i18n_digests
    msg = scrubber(mlist, msg)
  File "/usr/lib/mailman/Mailman/Handlers/Scrubber.py",
line 227, in process
    url = save_attachment(mlist, part, dir,
filter_html=False)
  File "/usr/lib/mailman/Mailman/Handlers/Scrubber.py",
line 445, in save_attachment
    fp = open(path, 'w')
IOError: [Errno 36] File name too long:
'/var/lib/mailman/archives/private/xx/attachments/20050915/6cfa4267/buglist
.cgiquery_formatadvancedshort_desc_typeallwordssubstrshort_desccomponentXXl
ong_desc_typesubstringlong_descbug_file_loc_typeallwordssubstrbug_file_locb
ug_statusNEWbug_statusASSIGNEDbug_statusREOPENEDemailtype1substringemail1em
ailassigned_to21emailreporter21emailcc21emailtype2substringemail2bugidtypei
ncludebug_idvoteschfieldfromchfieldtoNowchfieldvaluefield0-0-0nooptype0-0-0
noopvalue0-0-0orderbugs.html'

[http://sourceforge.net/tracker/index.php?func=detail&aid=1293267&group_id=103&atid=100103]

Revision history for this message
Ppsys (ppsys) wrote :

Upgrading to MM 2.1.6 and setting the configuration variable
mm_cfg.SCRUBBER_DONT_USE_ATTACHMENT_FILENAME = True
might avoid this problem

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.