Trying to make a private team public crashes if it has a mailing list

Bug #299106 reported by Ursula Junque
12
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Barry Warsaw

Bug Description

It's not possible to make a team public if it has a mailing list. When trying to do that, as seen in OOPS-1048EB219, the exception is not caught, and it crashes with:

Steps to reproduce (using launchpad.dev):
1. Open https://launchpad.dev/~name21/+edit
2. Make it a private team (change visibility to Private Membership)
3. Request a mailing list for the team (https://launchpad.dev/~name21/+mailinglist)
4. Approve the mailing list (https://launchpad.dev/+mailinglists)
5. Change the visibility to Public (https://launchpad.dev/~name21/+edit)
6. OOPS-1048EB216 (ValueError: This team cannot be made public since it has a mailing list)

What should happen: A nice error message displayed to the user explaining why the team can't be made public

Revision history for this message
Curtis Hovey (sinzui) wrote :

This may be a cherry pickable items; its status may be critical.

Changed in launchpad-registry:
assignee: nobody → barry
importance: Undecided → High
milestone: none → 2.1.11
status: New → Triaged
Revision history for this message
Curtis Hovey (sinzui) wrote :

Bug 298224 may be a duplicate.

Revision history for this message
Christian Reis (kiko) wrote :

I'm not sure. The thing is, I get a proper error message in bug 298224 -- not an OOPS. Barry could probably fix both together though.

Revision history for this message
Barry Warsaw (barry) wrote :

I am.

description: updated
Barry Warsaw (barry)
Changed in launchpad-registry:
status: Triaged → Fix Committed
Barry Warsaw (barry)
Changed in launchpad-registry:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.