Closed
Bug 1248305
Opened 10 years ago
Closed 10 years ago
HTTP PUT on action that doesn't exist 404s instead of creating it
Categories
(Shield :: General, defect)
Shield
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: osmose, Assigned: osmose)
Details
If you send a PUT request to the action API for an action that doesn't exist, instead of creating the action as you'd expect, it instead returns a 404 Not Found. This is some new behavior in Django Rest Framework since 3.0, apparently: http://www.django-rest-framework.org/api-guide/generic-views/#put-as-create
I think we'd prefer to have it create the action, which is how we wanted to use it in the normandy-actions upload script.
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → mkelly
Comment 1•10 years ago
|
||
Commit pushed to master at https://github.com/mozilla/normandy
https://github.com/mozilla/normandy/commit/1d4b4bf15cfb0beb3a3fec403b36031b941fa577
Allow PUT requests to create objects in the action API.
Fixes bug 1248305.
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Component: SHIELD → General
Product: Websites → Normandy
You need to log in
before you can comment on or make changes to this bug.
Description
•