Ticket #1227 (assigned defect)

Opened 14 years ago

Last modified 13 years ago

'list' object has no attribute 'has_key'

Reported by: mihamina Owned by: tziade
Priority: P2 Milestone: CPS 3.5.7
Component: CPSMailAccess Version: TRUNK
Severity: normal Keywords:
Cc: mihamina.rakotomandimby@…

Description

I run a ~ December 20 trunk because of problems with z2.9 switch

After configuring his webmail, an user (any user) gets this.

I use dovecot imap server.

Traceback (innermost last):

    * Module ZPublisher.Publish, line 113, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 40, in call_object
    * Module Products.CPSMailAccess.mailbox, line 1463, in background_synchronisation
    * Module Products.CPSMailAccess.mailbox, line 355, in synchronize
    * Module Products.CPSMailAccess.mailbox, line 517, in _syncdirs
    * Module Products.CPSMailAccess.mailfolder, line 740, in _synchronizeFolder

AttributeError: 'list' object has no attribute 'has_key'

Attachments

Screenshot.png Download (117.1 KB) - added by mihamina 14 years ago.
My INBOX is this
event.txt.bz2 Download (3.1 KB) - added by mihamina 14 years ago.

Change History

comment:1 Changed 14 years ago by mihamina

when cliquing on the "synchonize the whole box", I get this:

Traceback (innermost last):

    * Module ZPublisher.Publish, line 113, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 40, in call_object
    * Module Products.CPSMailAccess.mailbox, line 1463, in background_synchronisation
    * Module Products.CPSMailAccess.mailbox, line 355, in synchronize
    * Module Products.CPSMailAccess.mailbox, line 517, in _syncdirs
    * Module Products.CPSMailAccess.mailfolder, line 718, in _synchronizeFolder
    * Module Products.CPSMailAccess.imapconnection, line 426, in fetch
    * Module Products.CPSMailAccess.imapconnection, line 292, in _extractResult

AttributeError: 'NoneType' object has no attribute 'find'

I did not change versions.

Changed 14 years ago by mihamina

My INBOX is this

comment:2 Changed 14 years ago by tziade

  • Status changed from new to assigned

that's probably a dovecot issue, if you can reproduce the first traceback, can you try this:

add this line, after line 739 in mailfolder.py

  LOG('_synchronizeFolder', DEBUG, str(fetched))

and tell me what comes out in log/events

make sure the DEBUG mode is on in zope.conf. If you don't know how, just raise an error instead of a log:

  raise(str(fetched))

thx

comment:3 Changed 14 years ago by tziade

  • Milestone changed from CPS 3.4.0 to CPS 3.4.1

Changed 14 years ago by mihamina

comment:4 Changed 14 years ago by mihamina

Here you are

comment:5 Changed 13 years ago by sfermigier

  • Milestone changed from CPS 3.4.1 to CPS 3.4.2
Note: See TracTickets for help on using tickets.