Bug 1075844 - curl do not support ipv6 on RHEL6.5
Summary: curl do not support ipv6 on RHEL6.5
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: curl
Version: 6.6
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Kamil Dudka
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: 1076277
TreeView+ depends on / blocked
 
Reported: 2014-03-13 01:47 UTC by Hangbin Liu
Modified: 2015-07-16 12:21 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
The rpm utility was unable to download and install packages the remote locations of which were specified with an IPv6 address and a specific path format. Now, rpm automatically uses the "--globoff" option with IPv6 addresses, which turns off cURL globbing, and allows packages to be properly downloaded and installed in the described scenario.
Clone Of:
: 1076277 (view as bug list)
Environment:
Last Closed: 2014-03-13 11:59:56 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Hangbin Liu 2014-03-13 01:47:18 UTC
Description of problem:
curl do not support ipv6 on RHEL6.5

Version-Release number of selected component (if applicable):
# curl -V
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.3.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz


How reproducible:


Steps to Reproduce:
1. # curl -v -6 http://[2001::1]/
2.
3.

Actual results:
curl: (3) [globbing] error: bad range specification after pos 9

Expected results:
get the html from ipv6 host

Additional info:

rpm use curl to get packages from server, so it will fail if we usr "rpm -ivh http://[$ipv6_addr]/pakcage_name.rpm".

BTW, wget works well.
# wget http://[2001::1]/packages/
--2014-03-13 17:38:19--  http://[2001::1]/packages/
Connecting to 2001::1:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 951 [text/html]
Saving to: ?index.html?

100%[=====================================================================================================================================================================================================>] 951         --.-K/s   in 0s

2014-03-13 17:38:19 (220 MB/s) - ?index.html? saved [951/951]

Comment 1 Kamil Dudka 2014-03-13 11:59:56 UTC
You need to use the -g/--globoff option.  Please read the FAQ:

http://curl.haxx.se/docs/faq.html#How_can_I_use_or_to_sp


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