bugGNU Wget - Bugs: bug #65007, wget uses non-standard way to...

 
 

bug #65007: wget uses non-standard way to print IPv6 addresses

Submitter:  Bruno Haible <haible>
Submitted:  Sun 10 Dec 2023 05:39:30 AM UTC
   
 
Category:  User Interface Severity:  3 - Normal
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Bruno Haible Open/Closed:  Open
Release:  None Operating System:  GNU/Linux
Reproducibility:  None Fixed Release:  None
Planned Release:  None Regression:  None
Work Required:  None Patch Included:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 10 Mar 2024 09:54:39 AM UTC, comment #3: 

I think we can leave the IPv4 syntax in Wget's output as-is, but switch the output for IPv6 to be more compliant. Unlike IPv4, there is a strong standardization on how IPv6 is often printed and we should try to be consistent with it.

The issue with the output changing shouldn't be so bad. We can test it out and see if someone complains about it.

Darshit Shah <darnir>
Group administrator
Sun 10 Dec 2023 11:47:43 AM UTC, comment #2: 


> I see that in wget2 the output is also not quite correct in the debug logs.

Indeed, wget2's debug output contains

10.124503.288 has 2a02:6ea0:c700::18:443
10.124503.288 trying 2a02:6ea0:c700::18:443...


Bruno Haible <haible>
Sun 10 Dec 2023 11:11:19 AM UTC, comment #1: 

I get your point.

The output line has the same format for IPv6 and IPv4 where the IP address representation and the port number are printed as two fields separated by `|:`.

E.g. for an IPv4 address, the string is also not as "usually done":


Connecting to example.com (example.com)|93.184.216.34|:443... connected.


I hesitate to change this because the format exists since a long time and we can be sure that changing it will break many scripts.

Rather, I'd like to modernize this in wget2. I see that in wget2 the output is also not quite correct in the debug logs. Currently it is `2a02:6ea0:c700::11:443` and it should be `[2a02:6ea0:c700::11]:443`.

Tim Ruehsen <rockdaboot>
Group administrator
Sun 10 Dec 2023 05:39:30 AM UTC, original submission:  

1) GNU Wget 1.21.2
2) wget https://download.qemu.org/qemu-8.2.0-rc3.tar.xz
3) I expected wget to show the combination of an IPv6 and a port like it is usually done in URLs, namely in the syntax [address]:port (cf. https://en.wikipedia.org/wiki/URL#Syntax ).
4) wget shows the combination of an IPv6 and a port in the syntax |address|:port

--2023-12-10 06:29:58--  https://download.qemu.org/qemu-8.2.0-rc3.tar.xz
Resolving download.qemu.org (download.qemu.org)... 2a02:6ea0:c700::19, 2a02:6ea0:c700::18, 2a02:6ea0:c700::10, ...
Connecting to download.qemu.org (download.qemu.org)|2a02:6ea0:c700::19|:443... connected.


Bruno Haible <haible>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by darnir (Posted a comment)
  • -email is unavailable- added by rockdaboot (Posted a comment)
  • -email is unavailable- added by haible (Submitted the item)
  •  

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code