[Bug 820660] [NEW] Attempting to DELETE a user through REST API returns '405 Method Not Allowed'

Stephen A. Goss steveth45 at gmail.com
Thu Aug 4 01:04:43 CEST 2011


Public bug reported:

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 /3.0/users/foo at example.org, I get a '405 Method
Not Allowed' response.

$ curl -u restadmin:restpass -I http://localhost:8001/3.0/users/bar@foo.com
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:8001/3.0/users/bar@foo.com
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

** Affects: mailman
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Mailman
Coders, which is subscribed to GNU Mailman.
https://bugs.launchpad.net/bugs/820660

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/mailman/+bug/820660/+subscriptions


More information about the Mailman-coders mailing list