spiegel_podman/pkg/api/handlers/compat
Paul Holzinger df9344ac4b
compat container create: match duplicate mounts correctly
The logic which checks for duplicated volumes here did not work
correctly because it used filepath.Clean(). However the writes to the
volDestinations map did not thus the string no longer matched when you
included a final slash for example.

So we can either call Clean() on all or no paths. I decided to call it
on no path because this is what we do right now. Just the check did it.

Fixed #18454

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-05-04 11:57:02 +02:00
..
auth.go compat: /auth: parse server address correctly 2023-03-13 13:41:49 +01:00
changes.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
containers.go DB: make loading container states optional 2023-01-26 10:20:38 +01:00
containers_archive.go Fix typos. Improve language. 2023-02-09 21:56:27 +01:00
containers_attach.go Fix stutters 2022-09-10 07:52:00 -04:00
containers_create.go compat container create: match duplicate mounts correctly 2023-05-04 11:57:02 +02:00
containers_export.go export: use io.Writer instead of file 2022-12-20 14:38:41 +01:00
containers_logs.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
containers_pause.go bump go module to version 4 2022-01-18 12:47:07 +01:00
containers_prune.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
containers_restart.go libpod: switch to golang native error wrapping 2022-07-05 16:06:32 +02:00
containers_start.go bump go module to version 4 2022-01-18 12:47:07 +01:00
containers_stats.go stats compat API: return "id" lowercase 2023-03-22 14:36:35 +01:00
containers_stop.go Podman stop --filter flag 2022-07-14 13:18:53 -04:00
containers_top.go Return title fields as a list 2023-04-13 11:45:40 -04:00
containers_unpause.go bump go module to version 4 2022-01-18 12:47:07 +01:00
events.go Compat API image remove events now have 'delete' status 2022-08-25 16:59:26 -04:00
exec.go Fix stutters 2022-09-10 07:52:00 -04:00
images.go api: fix parsing filters 2023-05-02 11:45:36 +02:00
images_build.go system service: do not close Body 2023-04-04 15:47:10 +02:00
images_history.go Add sha256: to images history id for docker compatibility 2023-04-26 14:38:07 -04:00
images_prune.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
images_push.go support --digestfile for remote push 2023-04-21 10:28:40 +02:00
images_remove.go compat: Translate noprune into ImageRemoveOptions.NoPrune 2023-04-20 11:11:19 +02:00
images_save.go golangci-lint: enable nolintlint 2022-06-14 16:29:42 +02:00
images_search.go Add search --cert-dir, --creds 2023-03-15 15:01:26 +09:00
images_tag.go Fix stutters 2022-09-10 07:52:00 -04:00
info.go Add missing security options to /info response 2023-04-16 18:27:16 +02:00
networks.go compat API: network create return 409 for duplicate 2023-02-21 16:55:27 +01:00
ping.go Refacter API server emphasis on logging 2021-09-10 15:07:25 -07:00
resize.go use c/common code for resize and CopyDetachable 2022-07-06 16:57:07 +02:00
secrets.go Add labels to secrets 2022-09-20 16:28:00 -04:00
system.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
types.go stats compat API: return "id" lowercase 2023-03-22 14:36:35 +01:00
unsupported.go bump go module to version 4 2022-01-18 12:47:07 +01:00
version.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
volumes.go Fix typos. Improve language. 2023-02-09 21:56:27 +01:00