500 error code shown by postorius instead of 409 error code

Bug #1425359 reported by Ankush Sharma on 2015-02-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
High
Ankush Sharma

Bug Description

Bug discussed in detail at : https://mail.python.org/pipermail/mailman-developers/2015-March/024474.html

When a new mailman subscriber is created with the email of an already existing mailman subscriber or user a `409` code with a message `user already exists` is returned by the Mailman REST API but when the same email but now case sensitive is used a `500` code with message `server error code` is returned.

The latter should also return a `409` instead of `500` as it is misleading.

Related branches

description: updated
description: updated
description: updated
description: updated
tags: added: postorius
Changed in mailman:
status: New → Confirmed
assignee: nobody → Ankush Sharma (black-perl)

This Bug was result of treating case sensitive and case insensitive addresses differently which in both cases mailman treats as identical. So always comparing the strings by making the cases identical (lower case here) , will solve the bug. The solution thus provided to make the cases similar seems apt.

Barry Warsaw (barry) on 2015-03-13
Changed in mailman:
importance: Undecided → High
milestone: none → 3.0.0b6
status: Confirmed → Fix Committed
Barry Warsaw (barry) on 2015-04-28
Changed in mailman:
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