[Bug 821020] Re: Attempting to GET a nonexistent members object results in a 500 instead of a 404.
Stephen A. Goss
steveth45 at gmail.com
Tue Aug 9 23:45:24 CEST 2011
It's a simple omission in the REST code. Here's the fix:
=== modified file 'src/mailman/rest/members.py'
--- src/mailman/rest/members.py 2011-04-26 02:23:05 +0000
+++ src/mailman/rest/members.py 2011-08-09 21:39:07 +0000
@@ -75,6 +75,8 @@
@resource.GET()
def member(self, request):
"""Return a single member end-point."""
+ if self._member is None:
+ return http.not_found()
return http.ok([], self._resource_as_json(self._member))
@resource.DELETE()
--
You received this bug notification because you are a member of Mailman
Coders, which is subscribed to GNU Mailman.
https://bugs.launchpad.net/bugs/821020
Title:
Attempting to GET a nonexistent members object results in a 500
instead of a 404.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mailman/+bug/821020/+subscriptions
More information about the Mailman-coders
mailing list