Firefox cannot handle IPv6 addresses well

Bug #1775926 reported by psl
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Firefox 60.0.1 (64-bit), Ubuntu 16.04.4 amd64

Link addresses for IPv6 are tricky. IPv6 address has to be extended with network interface (zone id), to signal OS what network interface to use.

When I try to connect with Firefox to following URL

http://[fe80::87f4:81fa:b481:d781]/test.html

it is confused. It even doesn't report an error that it cannot do that.

When I enter URL with zone information, Firefox returns "search" results, in means, it doesn't understand this syntax of IPv6 address...

http://[fe80::87f4:81fa:b481:d781%enp4s0]/test.html

Here is RFC describing zones, https://tools.ietf.org/html/rfc4007

Demo with CURL, that can handle such URLs without any problem:

user@test:~$ curl http://[fe80::87f4:81fa:b481:d781]/test.html
curl: (7) Couldn't connect to server

user@test:~$ curl http://[fe80::87f4:81fa:b481:d781%enp4s0]/test.html
<html><body>TEST</body></html>

user@test:~$ curl http://[fe80::87f4:81fa:b481:d781%2]/test.html
<html><body>TEST</body></html>

user@test:~$ curl http://[::1]/test.html
<html><body>TEST</body></html>

user@test:~$ curl http://[::1%lo]/test.html
<html><body>TEST</body></html>

psl (slansky)
description: updated
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in firefox (Ubuntu):
status: New → Confirmed
Revision history for this message
David F. (malteworld) wrote :

The upstream bug report (https://bugzilla.mozilla.org/show_bug.cgi?id=700999) was closed as RESOLVED WONTFIX because they want to follow the proposal for URLs by WhatWG which doesn’t mention link-local IPv6 address specifiers.

Revision history for this message
David F. (malteworld) wrote :

…and neither WhatWG nor its governing body, IETF, seemed interested in drafts for an amendment.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.