Bug 598988
| Summary: | Download through httpproxy will fail if package is not cached | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Šimon Lukašík <slukasik> |
| Component: | rpm | Assignee: | Panu Matilainen <pmatilai> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Miroslav Vadkerti <mvadkert> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 6.0 | CC: | mvadkert, notting, psklenar, tao |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | rpm-4.8.0-10.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-11-10 21:32:16 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 519840, 582655, 599016 | ||
|
Description
Šimon Lukašík
2010-06-02 13:43:02 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux major release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Major release. This request is not yet committed for inclusion. rpm 4.4.x didn't use curl but rpm's internal networking code. And rpm >= 4.6.x simply calls out to curl, so if "curl <something>" from command line works, it should work with rpm too. If it doesn't... Rpm by default calls curl with the following opts: --silent --show-error --fail --location One of those (--fail looks likely) causes curl to give up where it doesn't when you call it from the command line. Notice the "curl: (52) Empty reply from server" error from curl, maybe the proxy is reporting something funny here when referring to an internal address. Hi Panu, I understand, but weird thing is: If I try to add these options to curl in command line, it will download that file. While rpm is failing to do that. Even If I force curl to use http/1.0 while talking to proxy, it will download desired file. Another thing I do not understand, is while it's ok for rpm to communicate with EPEL repo. But it gives up communication with download.devel.redhat.com. Are you running curl as root? Differing environment, such as no_proxy for .redhat.com in your normal account but for root, can affect things... Yes, I am running curl as root. tcpdump verified that curl and rpm are communicating only with proxy. A fair amount of head-scratching later... the bug was as silly as it seemed mysterious: it's an extra trailing \n in the command line which rpm passes down to exec(), with the \n ending up as a part of the url. Which apparently some servers dont mind, some servers do. Doh :) Fixed in rpm-4.8.0-10.el6 *** Bug 612727 has been marked as a duplicate of this bug. *** VERIFIED as fixed in rpm-4.8.0-12.el6 Red Hat Enterprise Linux 6.0 is now available and should resolve the problem described in this bug report. This report is therefore being closed with a resolution of CURRENTRELEASE. You may reopen this bug report if the solution does not work for you. |