Activity log for bug #2024858

Date Who What changed Old value New value Message
2023-06-22 21:53:16 Mitch Burton bug added bug
2023-06-22 22:00:32 Mitch Burton description Making a POST request to the Snapd REST API with a snap name that it cannot find results in a 500 error and an uninformative message: # curl -sS --unix-socket /run/snapd.socket http://localhost/v2/snaps -X POST \ -d '{"action": "install", "snaps": ["spanandeggs", "hello"]}' -H "Content-Type: application/json" \ | jq { "type": "error", "status-code": 500, "status": "Internal Server Error", "result": { "message": "store.SnapNotFound with 2 snaps" } } 404 is probably a more valuable HTTP response code, but I'm more concerned that there's no indication of which snap was not found. Making a POST request to the Snapd REST API with a snap name that it cannot find results in a 500 error and an uninformative message: # curl -sS --unix-socket /run/snapd.socket http://localhost/v2/snaps -X POST \ -d '{"action": "install", "snaps": ["spamandeggs", "hello"]}' -H "Content-Type: application/json" \ | jq {   "type": "error",   "status-code": 500,   "status": "Internal Server Error",   "result": {     "message": "store.SnapNotFound with 2 snaps"   } } 404 is probably a more valuable HTTP response code, but I'm more concerned that there's no indication of which snap was not found.
2023-06-23 10:45:20 Miguel Pires snapd: status New Confirmed
2023-07-04 05:48:17 Zeyad Gouda snapd: assignee Zeyad Gouda (zeyadgouda)
2023-07-04 05:48:23 Zeyad Gouda snapd: status Confirmed In Progress
2023-07-31 06:05:34 Zeyad Gouda snapd: status In Progress Fix Committed