Bug 2232127 - Podman's `/build` Docker compatibility API endpoint does not accept "1" as a valid pull parameter. [NEEDINFO]
Summary: Podman's `/build` Docker compatibility API endpoint does not accept "1" as a ...
Keywords:
Status: MODIFIED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: podman
Version: 8.9
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Jindrich Novy
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-15 13:35 UTC by Matej Vašek
Modified: 2023-08-16 09:46 UTC (History)
10 users (show)

Fixed In Version: podman-4.6.1-2.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:
jnovy: needinfo? (ajia)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github containers podman pull 19633 0 None Merged [v4.6.1-rhel] fix: pull param parsing for the /build compat ep 2023-08-16 07:57:44 UTC
Red Hat Issue Tracker RHELPLAN-165841 0 None None None 2023-08-15 13:45:11 UTC
Red Hat Issue Tracker SRVOCF-550 0 None None None 2023-08-15 13:41:23 UTC

Description Matej Vašek 2023-08-15 13:35:40 UTC
Description of problem:
The `/build` Docker compatibility API endpoint does not accept "1" as a valid pull parameter.

How reproducible:
Always.
Use standard Docker CLI or Golang client against podman implementation of Docker API.

Steps to Reproduce:
```
podman system service unix:///tmp/docker.sock --log-level=debug --time 0 &
export DOCKER_HOST="unix:///tmp/docker.sock"
echo "FROM alpine" >> Dockerfile
docker build . -t my-alpine --pull
```

Actual results:
```
Error response from daemon: failed to parse query parameter 'pull': "1": invalid pull policy: "1"
```

Expected results:
Build proceeds without error.


Additional info:
This affects versions podman 4.6.x
Related issue: https://issues.redhat.com/browse/SRVOCF-550

FIX:
https://github.com/containers/podman/pull/19631/commits/888a52ded8c1ef9ed32b9525b95ee879add411ea

Comment 2 Paul Holzinger 2023-08-15 16:39:27 UTC
https://github.com/containers/podman/pull/19633 is merged, assigning to Jindrich for packaging work


Note You need to log in before you can comment on or make changes to this bug.