Component lookup error wedges mail-in

Bug #378456 reported by Paul Everitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Fix Released
Medium
Chris Rossi

Bug Description

Mail-in got wedged on kdiab today with:

Traceback (most recent call last):
  File "bin/mailin", line 73, in <module>
    osi.scripts.mailin.main()
  File "/var/db/karl3/src/osi/osi/scripts/mailin.py", line 264, in main
    MailinRunner(sys.argv)()
  File "/var/db/karl3/src/osi/osi/scripts/mailin.py", line 248, in __call__
    if self.handleMessage(message_id):
  File "/var/db/karl3/src/osi/osi/scripts/mailin.py", line 227, in handleMessage
    self.processMessage(message, info, text, attachments)
  File "/var/db/karl3/src/osi/osi/scripts/mailin.py", line 211, in processMessage
    IMailinHandler(target).handle(message, info, text, attachments)
  File "/var/db/karl3/src/karl.content/karl/content/adapters/mailin.py", line 88, in handle
    _addAttachments(entry, info, attachments)
  File "/var/db/karl3/src/karl.content/karl/content/adapters/mailin.py", line 30, in _addAttachments
    target['attachments'] = att_folder = create_content(IFolder)
  File "/var/db/karl3/eggs/repoze.lemonade-0.7.5-py2.5.egg/repoze/lemonade/content.py", line 21, in create_content
    factory = getAdapter(provides(iface), IContentFactory)
  File "/var/db/karl3/eggs/zope.component-3.6.0-py2.5.egg/zope/component/_api.py", line 98, in getAdapter
    raise ComponentLookupError(object, interface, name)
zope.component.interfaces.ComponentLookupError: (<repoze.lemonade.content.provides instance at 0x495b560>, <InterfaceClass rep
oze.lemonade.interfaces.IContentFactory>, u'')

Changed in karl3:
status: New → In Progress
Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

Possible fix in svn. Just need to see how it works with actual mail ins before declaring this one done.

Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

Fixed first error, now have new one:

=================================================================
Processing mail-in content
=================================================================
Maildir root: /home/zope
Pending queue: /home/zope/Maildir/pending.db
ZODB URI: zeo://localhost:8884
=================================================================
Traceback (most recent call last):
  File "bin/mailin", line 73, in <module>
    osi.scripts.mailin.main()
  File "/var/db/karl3/src/osi/osi/scripts/mailin.py", line 264, in main
    MailinRunner(sys.argv)()
  File "/var/db/karl3/src/osi/osi/scripts/mailin.py", line 248, in __call__
    if self.handleMessage(message_id):
  File "/var/db/karl3/src/osi/osi/scripts/mailin.py", line 227, in handleMessage
    self.processMessage(message, info, text, attachments)
  File "/var/db/karl3/src/osi/osi/scripts/mailin.py", line 211, in processMessage
    IMailinHandler(target).handle(message, info, text, attachments)
  File "/var/db/karl3/src/karl.content/karl/content/adapters/mailin.py", line 72, in handle
    _addAttachments(reply, info, attachments)
  File "/var/db/karl3/src/karl.content/karl/content/adapters/mailin.py", line 44, in _addAttachments
    creator = info['author'],
  File "/var/db/karl3/eggs/repoze.lemonade-0.7.5-py2.5.egg/repoze/lemonade/content.py", line 22, in create_content
    return factory(*arg, **kw)
  File "/var/db/karl3/src/karl.content/karl/content/models/files.py", line 59, in __init__
    self.upload(stream)
  File "/var/db/karl3/src/karl.content/karl/content/models/files.py", line 63, in upload
    size = upload_stream(stream, f)
  File "/var/db/karl3/src/karl.content/karl/content/models/files.py", line 70, in upload_stream
    data = stream.read(1<<21)
AttributeError: 'str' object has no attribute 'read'

Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

Ok, most recent change unclogged the bottleneck on kdi-dev.

Changed in karl3:
status: In Progress → Fix Committed
Changed in karl3:
status: Fix Committed → Fix Released
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.