spiegel_podman/pkg/domain
Atishyy27 648f91e9c6
fix(remote): keep '=' in a prune filter value
ImageEngine.Prune split each --filter on every '=' and kept everything after the
first as separate values, so a filter whose value itself contains '=' was torn
apart. podman-image-prune.1.md documents label=key=value and gives
'--filter label=version=1.0' as an example, which produced

  filters["label"] = ["version", "1.0"]

instead of ["version=1.0"]. libimage turns every element into its own label
filter and MatchLabelFilters cuts each one on '=' itself, so the request became
'has a label key version' AND 'has a label key 1.0'. Nothing carries a key named
1.0, so the prune matched no images and silently removed nothing.

Local podman is unaffected: the abi path passes opts.Filter through untouched.
This is remote-only, and it diverges from both siblings -- List uses
SplitN(filter, "=", 2) and Events validates then rejoins with strings.Join.
Prune now mirrors List.

The existing e2e case only used 'label=abc', a bare key, which survives the old
split by accident; added one that uses a key=value label and checks the
non-matching image is still there afterwards.

Signed-off-by: Atishyy27 <sethatishayjain@gmail.com>
2026-08-26 22:21:58 +05:30
..
entities swagger: fix deprecated alias annotations and model name collisions 2026-08-10 22:14:47 +05:30
filters Performance: Replace strings.ToLower with strings.EqualFold 2026-08-15 02:17:47 +05:30
infra fix(remote): keep '=' in a prune filter value 2026-08-26 22:21:58 +05:30
utils image scp: preserve usernames containing an "@" 2026-06-12 15:23:25 +05:30