Closed Bug 312009 Opened 19 years ago Closed 19 years ago

IMAP capability flags remembered across capability responses

Categories

(MailNews Core :: Networking: IMAP, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: psyc+moz, Assigned: Bienvenu)

References

Details

(Keywords: fixed1.8.0.4, fixed1.8.1)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051011 SeaMonkey/1.1a
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051011 SeaMonkey/1.1a

An IMAP server that I (would like to) connect to requires STARTTLS before login
so advertises logindisabled on connect (CAPABILITY IMAP4REV1 <stuff> STARTTLS
LOGINDISABLED), but after STARTTLS it doesn't advertise logindisabled and gives
some login types (CAPABILITY IMAP4REV1 <morestuff> AUTH=PLAIN AUTH=LOGIN).
Mozilla remembers the logindisabled so fails auth thinking that it's denied.

Reproducible: Always

Steps to Reproduce:
1. Connect to IMAP server that requires starttls.

Actual Results:  
Login failed.

Expected Results:  
Logged in.
capability_data() is called on every CAPABILITY response to parse flags out of
the capability so forget flags we know about and start afresh.
Comment on attachment 199140 [details] [diff] [review]
Forget capability flags.

thx, I thought I'd fixed this, but apparently not.
Attachment #199140 - Flags: superreview+
Attachment #199140 - Flags: review+
I'm not a committer, could someone check this in for me?
fixed on trunk, thx.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
*** Bug 317540 has been marked as a duplicate of this bug. ***
Comment on attachment 199140 [details] [diff] [review]
Forget capability flags.

we want this for the branch
Attachment #199140 - Flags: branch-1.8.1+
Keywords: fixed1.8.1
OS: Windows XP → All
Comment on attachment 199140 [details] [diff] [review]
Forget capability flags.

hmm, please consider to add this fix to 1.8.0 branch.
It bakes long enough on 1.8 and trunk, is simple and is kind of security related since it blocks using some secure methods of authentication.
Attachment #199140 - Flags: approval1.8.0.3?
Comment on attachment 199140 [details] [diff] [review]
Forget capability flags.

approved for 1.8.0 branch, a=dveditz for drivers
Attachment #199140 - Flags: approval1.8.0.4? → approval1.8.0.4+
checked in for 1.8.0 branch
Keywords: fixed1.8.0.4
*** Bug 324138 has been marked as a duplicate of this bug. ***
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: