Get a 500 over the rest api during deletion of unkown containers #9675
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
With upgrade to podman 3.0.1 we will get a 500 if we try to delete forcefully a container that does not exists. Before it was a 204 (what also is not the best response code)
Steps to reproduce the issue:
Start the rest api
podman system service tcp:0.0.0.0:8099 -t0
Try to delete a container forcefully that does not exists
curl -s -vvv -X DELETE http://127.0.0.1:8099/v1.40.0/libpod/containers/unkown?force=true
Describe the results you received:
A 500 responsecode
Describe the results you expected:
A 404 responsecode
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of `podman info --debug:
podman-3.0.1-2.el8.3.2.x86_64
The text was updated successfully, but these errors were encountered: