[Bug 715166] [NEW] REST-API: HTTPError - unexpected parameters
Public bug reported: Sending list settings to the REST server (PATCH /lists/[fqdn_listname]/config) raised the following HTTPError: HTTPError: HTTP Error 400: Unexpected parameters: bounces_address, created_at, digest_last_sent_at, fqdn_listname, host_name, http_etag, join_address, last_post_at, leave_address, list_id, list_name, next_digest_number, no_reply_address, owner_address, post_id, posting_address, request_address, scheme, volume, web_host The HTTPError is thrown because these paramaters are not listed in ATTRIBUTES (src/mailman/rest/configuration.py:159). However all of these parameters were received via GET /lists/[fqdn_listsname]/config. Are the parameters simply missing in the ATTRIBUTES dict or is there any other reason they're not accepted? ** Affects: mailman Importance: Undecided Status: New ** Tags: mailman3 rest -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/715166 Title: REST-API: HTTPError - unexpected parameters
Are you sure you have an up-to-date configuration.py file? All those parameters are named in ATTRIBUTES except http_etag, which is an artifact of the GET. If you remove http_etag from the PATCH call, does it work for you? If that's the only offender then there might be a bug in the error message, since it should only complain about http_etag in the PATCH. -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/715166 Title: REST-API: HTTPError - unexpected parameters
Can you post some Python to reproduce the problem? ** Changed in: mailman Status: New => Incomplete -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/715166 Title: REST-API: HTTPError - unexpected parameters
What's the most decent way to take back a bug report? :-/ Trying to reproduce it again I found out the reason for the bug was just me messing up a test case. Sorry... ** Changed in: mailman Status: Incomplete => Invalid -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/715166 Title: REST-API: HTTPError - unexpected parameters
participants (2)
-
Barry Warsaw
-
Florian Fuchs