Closed Bug 1914141 Opened 3 months ago Closed 2 months ago

Services.io.isValidHostname("invalid.192.168.1.2"); claims it's is valid when it's not

Categories

(Core :: Networking, defect, P2)

defect

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: mkmelin, Assigned: edgul)

References

Details

(Whiteboard: [necko-triaged][necko-priority-queue])

Attachments

(1 file)

Bug 1723456 made hostnames like "invalid.192.168.1.2" invalid. Services.io.isValidHostname("invalid.192.168.1.2"); claims it's valid.
xref bug 1911951 comment 16.

See Also: → 1911951

FYI Sean

Severity: -- → S3
Flags: needinfo?(sekim)
Priority: -- → P2
Whiteboard: [necko-triaged][necko-priority-new]

Oops, meant to ping Ed

Flags: needinfo?(sekim) → needinfo?(edgul)

We will add a similar check to Services.io.isValidHostname and rename net_IsValidHostName

Assignee: nobody → edgul
Flags: needinfo?(edgul)
Whiteboard: [necko-triaged][necko-priority-new] → [necko-triaged][necko-priority-next]
Whiteboard: [necko-triaged][necko-priority-next] → [necko-triaged][necko-priority-queue]
See Also: → 1916515
Pushed by eguloien@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/975a09aa6dc9 Added an ending-in-number check for non-ipv4 domains for Services.io.isValidHostname. r=necko-reviewers,valentin
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: