Open Bug 1818943 Opened 1 year ago Updated 9 months ago

TypeError: can't access property Symbol.iterator, tokens[3] is undefinedImapResponse.jsm:136:40 [imap-js]

Categories

(MailNews Core :: Networking: IMAP, defect)

defect

Tracking

(Not tracked)

People

(Reporter: standard8, Unassigned)

References

(Blocks 2 open bugs)

Details

(Keywords: regression, Whiteboard: [imap-js])

When starting up Thunderbird with imap-js enabled, I'm getting errors occasionally when selecting folders:

TypeError: can't access property Symbol.iterator, tokens[3] is undefinedImapResponse.jsm:136:40

Keywords: regression
See Also: → 1818945

Having a quick glance at the error failure point, it seems risky that there's no error checking on the length of the array in various places:

https://searchfox.org/comm-central/rev/b5a65f08fb047f577fad04f472bcaebaf63c443e/mailnews/imap/src/ImapResponse.jsm#85,98,102,109-110,136,155

The code seems to assume that the server will return valid/expected/well formatted responses in all cases.

Blocks: 1818945
See Also: 1818945
Summary: TypeError: can't access property Symbol.iterator, tokens[3] is undefinedImapResponse.jsm:136:40 → TypeError: can't access property Symbol.iterator, tokens[3] is undefinedImapResponse.jsm:136:40 [imap-js]
You need to log in before you can comment on or make changes to this bug.