If a user is unsubscribed after retrieving her options page and before submitting an unsub, an uncaught exception is thrown

Bug #1390653 reported by Mark Sapiro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
Low
Mark Sapiro

Bug Description

Scenario 1:

User logs in and retrieve her options page.
Another process unsubscribes the user.
User submits an unsub from the options page.
NotAMemberError is thrown and not caught.

Scenario 2

User logs in and retrieve her options page.
User unsubscribes.
User goes back a page in her browser and unsubscribes again.
NotAMemberError is thrown and not caught.

The options CGI should catch and ignore NotAMemberError.

Related branches

Revision history for this message
Mark Sapiro (msapiro) wrote :

Actually, this bug is much less likely to occur than the description indicates because the second unsub attempt will only throw the exception if the user has a list admin authentication cookie. If the user had originally authenticated only as the user, the second attempt will fail for lack of authentication.

But I fixed it anyway before realizing this.

Changed in mailman:
status: In Progress → Fix Committed
Mark Sapiro (msapiro)
Changed in mailman:
milestone: 2.1.19 → 2.1.19rc1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers