Debian Bug report logs - #815166
preseed/url: correctly handle IPv6 addresses

version graph

Package: preseed; Maintainer for preseed is Debian Install System Team <debian-boot@lists.debian.org>;

Reported by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>

Date: Fri, 19 Feb 2016 16:09:01 UTC

Severity: normal

Tags: d-i, patch

Found in version 1.70

Fixed in version preseed/1.71

Done: Dimitri John Ledkov <xnox@ubuntu.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, brueckner@linux.vnet.ibm.com, mihajlov@linux.vnet.ibm.com, kate@de.ibm.com, diehl@de.ibm.com, pkern@debian.org, dimitri.ledkov@canonical.com, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#815166; Package preseed. (Fri, 19 Feb 2016 16:09:05 GMT) (full text, mbox, link).


Acknowledgement sent to Hendrik Brueckner <brueckner@linux.vnet.ibm.com>:
New Bug report received and forwarded. Copy sent to brueckner@linux.vnet.ibm.com, mihajlov@linux.vnet.ibm.com, kate@de.ibm.com, diehl@de.ibm.com, pkern@debian.org, dimitri.ledkov@canonical.com, Debian Install System Team <debian-boot@lists.debian.org>. (Fri, 19 Feb 2016 16:09:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: preseed/url: correctly handle IPv6 addresses
Date: Fri, 19 Feb 2016 17:05:42 +0100
[Message part 1 (text/plain, inline)]
Package: preseed
Version: 1.70
Severity: normal
Tags: d-i patch

Dear maintainer,

trying to fetch a preseed URL using an IPv6 address fails.  For example,
consider the preseed/url setting:
	http://[fd00:9:152:48:1822:ffff:162:199]/dir/preseed.cfg
which becomes
        http://[fd00.example.org:9:152:48:1822:ffff:162:199]/dir/preseed.cfg

The problem is that "fd00" is treated as hostname without domain and, thus,
the domain name is appended resulting in "fd00.example.org".  Of course,
this is no longer a valid IPv6 address.

To solve this problem, I added a patch that enhances the auto-install.sh
to detect IPv6 addresses.  I also added few more unit test cases to cover
different URLs with IPv6 addresses with user, password, and port variations:

	[...]
	ok 11 - ftp with user/password, IPv4, and domain
	ok 12 - ftp with user/password, IPv4, and domain and port
	ok 13 - http with short IPv6 and domain
	ok 14 - http with simple IPv6 and domain
	ok 15 - http with IPv6 and domain
	ok 16 - http with IPv6, port, and domain
	ok 17 - http with user/password, IPv6 and domain
	ok 18 - http with user/password, IPv6, port, and domain

Thanks and kind regards,
  Hendrik
[0001-auto-install-correctly-handle-IPv6-addresses.patch (text/plain, attachment)]

Reply sent to Dimitri John Ledkov <xnox@ubuntu.com>:
You have taken responsibility. (Tue, 23 Feb 2016 23:09:15 GMT) (full text, mbox, link).


Notification sent to Hendrik Brueckner <brueckner@linux.vnet.ibm.com>:
Bug acknowledged by developer. (Tue, 23 Feb 2016 23:09:15 GMT) (full text, mbox, link).


Message #10 received at 815166-close@bugs.debian.org (full text, mbox, reply):

From: Dimitri John Ledkov <xnox@ubuntu.com>
To: 815166-close@bugs.debian.org
Subject: Bug#815166: fixed in preseed 1.71
Date: Tue, 23 Feb 2016 23:05:53 +0000
Source: preseed
Source-Version: 1.71

We believe that the bug you reported is fixed in the latest version of
preseed, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 815166@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dimitri John Ledkov <xnox@ubuntu.com> (supplier of updated preseed package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 23 Feb 2016 22:35:55 +0000
Source: preseed
Binary: preseed-common network-preseed file-preseed initrd-preseed env-preseed
Architecture: source
Version: 1.71
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Dimitri John Ledkov <xnox@ubuntu.com>
Description:
 env-preseed - debconf preseeding via environment variables (udeb)
 file-preseed - load debconf preseed file (udeb)
 initrd-preseed - load debconf preseed file from /preseed.cfg on the initrd (udeb)
 network-preseed - download debconf preseed file (udeb)
 preseed-common - common files for preseeding (udeb)
Closes: 815166
Launchpad-Bugs-Fixed: 1547629
Changes:
 preseed (1.71) unstable; urgency=medium
 .
   [ Hendrik Brueckner ]
   * auto-install: correctly handle IPv6 addresses Closes: #815166, LP:
     #1547629
Checksums-Sha1:
 d1903c28d0caa1ed31a79c96fa741bba0dfe6213 1521 preseed_1.71.dsc
 ea01f885220fff3e62259e4a1d4ceab1d7a562e2 74932 preseed_1.71.tar.xz
Checksums-Sha256:
 9433b3e7202dde2323e8143a81f08a17679e10723a03d8e4dbbc9768717547ee 1521 preseed_1.71.dsc
 b2368edc86eff21718a87d956512eab19d43e08bb3a9df05f3c47b6a3c9c54f7 74932 preseed_1.71.tar.xz
Files:
 c581613aa3928700c77e3b19bfc1607e 1521 debian-installer optional preseed_1.71.dsc
 a06115596b8d9237d705275ff68aff50 74932 debian-installer optional preseed_1.71.tar.xz

-----BEGIN PGP SIGNATURE-----

iQEcBAEBCgAGBQJWzOBjAAoJEMrC2LnNLKX5N2sIAIyqgrxmBQ2JnRUvPdTKz4pb
C5ox1Zz9kOHtuFnrE4vhaUaOd8as8nA9Zigy2N+DiA7nOoE2MlGM/UsMCttHgJg4
3w8xrHXQp1ebtGM5dJ6njafC2PcVFOeWmOfNYC2zs8UolXueT1RqIcUgAO3G2Ub+
mdagbGk5UiVkEiJFx+jxQX5965DlE83YtlNcU80PG1bzVlInQTyBQDxZCQS+OWXi
eJ7ahGUEnPtu8BHmFaDArcU9eXeAqQG/5Bg7PAC7glR1MR3D0WH0NqPyazHYQgEx
3vNL/aTIQIdf0fH84P5232Y+ugFpMXCD+y5hPm9uGfKnZNQMWVjlD6pByLwBUcM=
=FiDn
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 28 Mar 2016 07:33:34 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Aug 8 02:56:45 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.