RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2112217 - Can not Add url with podman build
Summary: Can not Add url with podman build
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: podman
Version: 7.9
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Jindrich Novy
QA Contact: Joy Pu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-29 05:59 UTC by Joy Pu
Modified: 2022-08-22 09:18 UTC (History)
9 users (show)

Fixed In Version: podman-1.6.4-36.el7_9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-22 09:17:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github containers buildah pull 4173 0 None Merged [release-1.11-rhel] Fix ADD with URL 2022-08-11 06:36:14 UTC
Red Hat Issue Tracker RHELPLAN-129594 0 None None None 2022-07-29 06:11:51 UTC

Description Joy Pu 2022-07-29 05:59:54 UTC
Description of problem:

In the last build of podman for 7.9 the url is not allowed to used with ADD any more. It will report error:
 STEP 2: ADD https://github.com/containers/podman/blob/master/README.md /tmp/
 Error: error building at STEP "ADD https://github.com/containers/podman/blob/master/README.md /tmp/": source can't be a URL for COPY



Version-Release number of selected component (if applicable):
podman-1.6.4-35.el7_9.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Build a image and use ADD in the Dockerfile:
# cat Dockerfile
FROM quay.io/libpod/testimage:20200929
ADD https://github.com/containers/podman/blob/master/README.md /tmp/
# podman build -t add_url .
STEP 1: FROM quay.io/libpod/testimage:20200929
STEP 2: ADD https://github.com/containers/podman/blob/master/README.md /tmp/
Error: error building at STEP "ADD https://github.com/containers/podman/blob/master/README.md /tmp/": source can't be a URL for COPY


Actual results:
command report error can not ADD file from url

Expected results:
Command finished as expected.


Additional info:

This is a known issue in upstream and already fixed: https://github.com/containers/podman/issues/4686

Comment 7 Tom Sweeney 2022-08-10 20:37:59 UTC
PR merged.  We, however, have a couple of CVEs that need to be tended to and will be adding those in before spinning a new Buildah.  The PR is here:  https://github.com/containers/buildah/pull/4173

Comment 14 Joy Pu 2022-08-17 08:41:42 UTC
Test with podman-1.6.4-36.el7_9.x86_64 it is fixed:
# podman build -t add_url .
STEP 1: FROM quay.io/libpod/testimage:20200929
STEP 2: ADD https://github.com/containers/podman/blob/master/README.md /tmp/
STEP 3: COMMIT add_url
caf0a6a66339875bf98f434d156388276d4426bbb4c8eac27cfdd782de46941f
caf0a6a66339875bf98f434d156388276d4426bbb4c8eac27cfdd782de46941f


So move this to verified.

Comment 16 errata-xmlrpc 2022-08-22 09:17:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: podman security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:6119


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