Attempting to DELETE a user through REST API returns '405 Method Not Allowed'

Reported by Stephen A. Goss on 2011-08-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
Wishlist
Barry Warsaw

Bug Description

src/mailman/rest/docs/users.txt clearly states "The REST API can be used to add and remove users, add and remove user addresses, and change their preferred address, password, or name." When I send a DELETE request to either /3.0/users/1 or /<email address hidden>, I get a '405 Method Not Allowed' response.

$ curl -u restadmin:restpass -I http://localhost:<email address hidden>
HTTP/1.0 200 OK
Date: Wed, 03 Aug 2011 22:36:37 GMT
Server: WSGIServer/0.1 Python/2.6.5
content-length: 311

$ curl -X DELETE -u restadmin:restpass -I http://localhost:<email address hidden>
HTTP/1.0 405 Method Not Allowed
Date: Wed, 03 Aug 2011 22:34:16 GMT
Server: WSGIServer/0.1 Python/2.6.5
Content-Type: text/plain
Allow: HEAD, GET
Content-Length: 22

Barry Warsaw (barry) on 2011-08-12
tags: added: mailman3
Barry Warsaw (barry) on 2011-08-14
Changed in mailman:
importance: Undecided → Wishlist
status: New → Confirmed
assignee: nobody → Barry Warsaw (barry)
milestone: none → 3.0.0a8
Barry Warsaw (barry) on 2011-08-14
Changed in mailman:
status: Confirmed → Fix Committed
Barry Warsaw (barry) on 2011-09-25
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