Async REST API operations don't return 'Location' header
Bug #1654629 reported by
Tony Espy
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Triaged
|
Medium
|
Unassigned |
Bug Description
Per the snapd REST API documentation on the wiki [1], when an async operation returns the status code 202, a 'Location' reply header should be provided that specifies the URL ( /v2/changes/
This is being reported against snapd version 2.20, installed on a xenial desktop.
~$ sudo curl -D - -X POST -H "Content-Type: application/json" -d '{"action"
HTTP/1.1 202 Accepted
Content-Type: application/json
Date: Fri, 06 Jan 2017 18:36:05 GMT
Content-Length: 82
{"type"
Also note the "null" result that is returned. This seems like it should either be omitted or be {}.