Menu

#127 Wput fails to parse URL with IPV6 address

0.6.1
open
nobody
wput (1) ipv6 (1)
2
2022-01-03
2022-01-03
Ningaraj
No

wput fails to parse ipv6 URL in ftp://username:password@[address]/path form whereas wget is able to parse this URL and it is able to attempt to connect to the remote host.

Wput run log:
$ wput -v -d ftp://testuser:Testpa55@[2001::1]//home/testuser/test_s
Added URL ftp://testuser:Testpa55@[2001::1]//home/testuser/test_s' to queue. processing queue: File:'
URL : ftp://testuser:Testpa55@[2001::1]//home/testuser/test_s' processing queue: File:'
URL : ftp://testuser:Testpa55@[2001::1]//home/testuser/test_s' Error:[2001' could not be resolved. Skipping this URL.
Error: the url `ftp://testuser:Testpa55@[2001::1]//home/testuser/test_s' could not be parsed
fsession free()d
ignoring unbuild fsession
FINISHED --15:05:08--
Transmission of 1 file failed.

$ wput -V
wput version: 0.6.1

Wget run log:
$wget -v -d ftp://testuser:Testpa55@[2001::1]//home/testuser/test_s
DEBUG output created by Wget 1.20.3 on linux-gnu.

Reading HSTS entries from /home/root/.wget-hsts
Converted file name 'test_s' (UTF-8) -> 'test_s' (ANSI_X3.4-1968)
--2022-01-03 15:05:17-- ftp://testuser:password@[2001::1]//home/testuser/test_s
=> 'test_s'
Connecting to [2001::1]:21... Closed fd 3
failed: No route to host.
Releasing 0x000055777d08e220 (new refcount 0).
Deleting unused 0x000055777d08e220.

$ wget -V
GNU Wget 1.20.3 built on linux-gnu.

-cares +digest -gpgme +https +ipv6 -iri +large-file -metalink +nls
+ntlm +opie -psl +ssl/gnutls

Wgetrc:
/etc/wgetrc (system)
Locale:
/usr/share/locale
Compile:
x86_64-poky-linux-gcc -m64 -march=core2 -mtune=core2 -msse3
-mfpmath=sse -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat
-Wformat-security -Werror=format-security -DHAVE_CONFIG_H
-DSYSTEM_WGETRC="/etc/wgetrc" -DLOCALEDIR="/usr/share/locale" -I.
-I../../wget-1.20.3/src -I../lib -I../../wget-1.20.3/lib -DNDEBUG
-O2 -pipe -g -feliminate-unused-debug-types
-fmacro-prefix-map=/b/workspace/.jenkins/workspace/Yocto/production/lts19/lts19-build/daily/tmp/work/core2-64-poky-linux/wget/1.20.3-
r0=/usr/src/debug/wget/1.20.3-r0
-fdebug-prefix-map=/b/workspace/.jenkins/workspace/Yocto/production/lts19/lts19-build/daily/tmp/work/core2-64-poky-linux/wget/1.20.3-
r0=/usr/src/debug/wget/1.20.3-r0
-fdebug-prefix-map=/b/workspace/.jenkins/workspace/Yocto/production/lts19/lts19-build/daily/tmp/work/core2-64-poky-linux/wget/1.20.3-
r0/recipe-sysroot=
-fdebug-prefix-map=/b/workspace/.jenkins/workspace/Yocto/production/lts19/lts19-build/daily/tmp/work/core2-64-poky-linux/wget/1.20.3-
r0/recipe-sysroot-native=
-fno-omit-frame-pointer
Link:
x86_64-poky-linux-gcc -m64 -march=core2 -mtune=core2 -msse3
-mfpmath=sse -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat
-Wformat-security -Werror=format-security -DNDEBUG -O2 -pipe -g
-feliminate-unused-debug-types
-fmacro-prefix-map=/b/workspace/.jenkins/workspace/Yocto/production/lts19/lts19-build/daily/tmp/work/core2-64-poky-linux/wget/1.20.3-r0=/usr/src/debug/wget/1.20.3-r0
-fdebug-prefix-map=/b/workspace/.jenkins/workspace/Yocto/production/lts19/lts19-build/daily/tmp/work/core2-64-poky-linux/wget/1.20.3-r0=/usr/src/debug/wget/1.20.3-r0
-fdebug-prefix-map=/b/workspace/.jenkins/workspace/Yocto/production/lts19/lts19-build/daily/tmp/work/core2-64-poky-linux/wget/1.20.3-r0/recipe-sysroot=
-fdebug-prefix-map=/b/workspace/.jenkins/workspace/Yocto/production/lts19/lts19-build/daily/tmp/work/core2-64-poky-linux/wget/1.20.3-r0/recipe-sysroot-native=
-fno-omit-frame-pointer -Wl,-O1 -Wl,--hash-style=gnu
-Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now -lpcre
-lnettle -lgnutls -lz ftp-opie.o gnutls.o http-ntlm.o
../lib/libgnu.a -lunistring

Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
http://www.gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic hniksic@xemacs.org.
Please send bug reports and questions to bug-wget@gnu.org.
$

Discussion


Log in to post a comment.

MongoDB Logo MongoDB