spiegel_podman/pkg/api/handlers/libpod
crawfordxx e5fe3fdf69
api: fix missing return after error in SystemCheck handler
In the SystemCheck HTTP handler, when parsing the
unreferenced_layer_max_age query parameter fails, the error response is
sent but execution continues to `unreferencedLayerMaximumAge = &duration`
where `duration` is the zero value. This causes the system check to run
with a zero duration instead of returning the 400 error to the client.

Add the missing `return` after the error response.

Fixes #28350

Signed-off-by: crawfordxx <crawfordxx@users.noreply.github.com>
(cherry picked from commit 29d80a26af)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-04-09 14:23:51 +02:00
..
artifacts.go Fixes #27421 aritfact push and pull with authfile 2026-02-06 15:36:47 -05:00
containers.go Add ulimits to podman update API 2026-02-06 15:36:47 -05:00
containers_create.go Add ulimits to podman update API 2026-02-06 15:36:47 -05:00
containers_stats.go fix: set header fields before response status code to prevent missing fields 2025-09-08 09:06:36 +02:00
generate.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
healthcheck.go Add stopped status for HealthCheck 2025-03-03 17:09:30 +01:00
images.go [v5.8] Require absolute path for local API 2026-02-05 19:33:51 +01:00
images_pull.go fix: set header fields before response status code to prevent missing fields 2025-09-08 09:06:36 +02:00
images_push.go fix: set header fields before response status code to prevent missing fields 2025-09-08 09:06:36 +02:00
info.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
kube.go fix remote command parameters 2025-10-18 02:08:51 +03:00
kube_test.go feat(libpod): support kube play tar content-type (#24015) 2024-09-27 15:40:55 +02:00
manifests.go fix: set header fields before response status code to prevent missing fields 2025-09-08 09:06:36 +02:00
networks.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
play.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
pods.go update golangci-lint to v2.1.1 2025-04-14 19:33:42 +02:00
quadlets.go Add GET /quadlets/{name}/exists 2026-02-05 14:56:03 +01:00
secrets.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
swagger_spec.go Switch common, storage and image to monorepo. 2025-09-01 12:33:04 +02:00
system.go api: fix missing return after error in SystemCheck handler 2026-04-09 14:23:51 +02:00
volumes.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00